@itwin/appui-react 4.0.0-dev.3 → 4.0.0-dev.6
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 +119 -1
- package/lib/cjs/appui-react/UiFramework.d.ts +33 -2
- package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/cjs/appui-react/UiFramework.js +30 -5
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/_variables.scss +2 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +4 -9
- package/lib/cjs/appui-react/backstage/Backstage.d.ts +62 -0
- package/lib/cjs/appui-react/backstage/Backstage.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/Backstage.js +89 -0
- package/lib/cjs/appui-react/backstage/Backstage.js.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.js +2 -2
- package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +3 -3
- package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageItem.d.ts +43 -0
- package/lib/cjs/appui-react/backstage/BackstageItem.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageItem.js +37 -0
- package/lib/cjs/appui-react/backstage/BackstageItem.js.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts +49 -0
- package/lib/cjs/appui-react/backstage/BackstageItemProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageItemProps.js +22 -0
- package/lib/cjs/appui-react/backstage/BackstageItemProps.js.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts +19 -0
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js +59 -0
- package/lib/cjs/appui-react/backstage/BackstageItemUtilities.js.map +1 -0
- package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageManager.js +2 -0
- package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
- package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts +32 -0
- package/lib/cjs/appui-react/backstage/CommandLaunch.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/CommandLaunch.js +87 -0
- package/lib/cjs/appui-react/backstage/CommandLaunch.js.map +1 -0
- package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts +34 -0
- package/lib/cjs/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/FrontstageLaunch.js +93 -0
- package/lib/cjs/appui-react/backstage/FrontstageLaunch.js.map +1 -0
- package/lib/cjs/appui-react/backstage/Separator.d.ts +16 -0
- package/lib/cjs/appui-react/backstage/Separator.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/Separator.js +28 -0
- package/lib/cjs/appui-react/backstage/Separator.js.map +1 -0
- package/lib/cjs/appui-react/backstage/TaskLaunch.d.ts +35 -0
- package/lib/cjs/appui-react/backstage/TaskLaunch.d.ts.map +1 -0
- package/lib/cjs/appui-react/backstage/TaskLaunch.js +101 -0
- package/lib/cjs/appui-react/backstage/TaskLaunch.js.map +1 -0
- package/lib/cjs/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.js +9 -6
- package/lib/cjs/appui-react/childwindow/ChildWindowManager.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +4 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts +21 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js +28 -2
- package/lib/cjs/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/configurableui.scss +7 -5
- package/lib/cjs/appui-react/configurableui/state.d.ts +7 -0
- package/lib/cjs/appui-react/configurableui/state.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/state.js +9 -0
- package/lib/cjs/appui-react/configurableui/state.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentGroup.d.ts +9 -2
- 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 +4 -0
- package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +2 -2
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +5 -4
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +0 -2
- package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
- package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts +22 -0
- package/lib/cjs/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -0
- package/lib/cjs/appui-react/dragdrop/ZoneTargets.js +33 -0
- package/lib/cjs/appui-react/dragdrop/ZoneTargets.js.map +1 -0
- package/lib/cjs/appui-react/feedback/ElementTooltip.js +2 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts +0 -2
- package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
- package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
- package/lib/cjs/appui-react/feedback/ValidationTextbox.scss +4 -4
- package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +159 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.js +470 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts +147 -0
- package/lib/cjs/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageComposer.js +668 -0
- package/lib/cjs/appui-react/frontstage/FrontstageComposer.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +74 -19
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +305 -91
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts +10 -4
- package/lib/cjs/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js +47 -21
- package/lib/cjs/appui-react/frontstage/FrontstageManager.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +11 -3
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +0 -2
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.js +1 -2
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +4 -1
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +4 -2
- package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/StageUsage.d.ts +15 -0
- package/lib/cjs/appui-react/frontstage/StageUsage.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/StageUsage.js +17 -0
- package/lib/cjs/appui-react/frontstage/StageUsage.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +15 -4
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +27 -44
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
- package/lib/cjs/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts +38 -0
- package/lib/cjs/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -0
- package/lib/cjs/appui-react/hooks/useFrameworkVersion.js +57 -0
- package/lib/cjs/appui-react/hooks/useFrameworkVersion.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/Common.d.ts +26 -0
- package/lib/cjs/appui-react/imodel-components/Common.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/Common.js +25 -0
- package/lib/cjs/appui-react/imodel-components/Common.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeBase.scss +53 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +72 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js +149 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +52 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js +71 -0
- package/lib/cjs/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/Categories.json +102 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +72 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js +109 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoriesTree.scss +9 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +64 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +201 -0
- package/lib/cjs/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Hierarchy.GroupedByClass.json +392 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Hierarchy.json +387 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts +85 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js +130 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTree.scss +9 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +239 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +104 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +482 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Utils.d.ts +10 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Utils.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Utils.js +23 -0
- package/lib/cjs/appui-react/imodel-components/models-tree/Utils.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialBreakdown.GroupedByClass.json +79 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialBreakdown.json +79 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +36 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +44 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -0
- package/lib/cjs/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.scss +9 -0
- package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts +80 -0
- package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -0
- package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js +239 -0
- package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -0
- package/lib/cjs/appui-react/keyinbrowser/KeyinBrowser.scss +11 -0
- package/lib/cjs/appui-react/messages/ActivityMessage.d.ts +36 -1
- package/lib/cjs/appui-react/messages/ActivityMessage.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/ActivityMessage.js +38 -25
- package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
- package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts +20 -0
- package/lib/cjs/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -0
- package/lib/cjs/appui-react/messages/ActivityMessagePopup.js +44 -0
- package/lib/cjs/appui-react/messages/ActivityMessagePopup.js.map +1 -0
- package/lib/cjs/appui-react/messages/ActivityMessagePopup.scss +15 -0
- package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.js +3 -2
- package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.js +2 -1
- package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
- package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts +22 -0
- package/lib/cjs/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -0
- package/lib/cjs/appui-react/messages/StatusMessageRenderer.js +76 -0
- package/lib/cjs/appui-react/messages/StatusMessageRenderer.js.map +1 -0
- package/lib/cjs/appui-react/messages/StatusMessageRenderer.scss +28 -0
- package/lib/cjs/appui-react/messages/StatusMessagesContainer.d.ts +25 -0
- package/lib/cjs/appui-react/messages/StatusMessagesContainer.d.ts.map +1 -0
- package/lib/cjs/appui-react/messages/StatusMessagesContainer.js +68 -0
- package/lib/cjs/appui-react/messages/StatusMessagesContainer.js.map +1 -0
- package/lib/cjs/appui-react/messages/StatusMessagesContainer.scss +53 -0
- package/lib/cjs/appui-react/messages/StickyMessage.d.ts +23 -0
- package/lib/cjs/appui-react/messages/StickyMessage.d.ts.map +1 -0
- package/lib/cjs/appui-react/messages/StickyMessage.js +39 -0
- package/lib/cjs/appui-react/messages/StickyMessage.js.map +1 -0
- package/lib/cjs/appui-react/messages/StickyMessage.scss +22 -0
- package/lib/cjs/appui-react/messages/ToastMessage.d.ts +23 -0
- package/lib/cjs/appui-react/messages/ToastMessage.d.ts.map +1 -0
- package/lib/cjs/appui-react/messages/ToastMessage.js +31 -0
- package/lib/cjs/appui-react/messages/ToastMessage.js.map +1 -0
- package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js +0 -1
- package/lib/cjs/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js +0 -1
- package/lib/cjs/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js +0 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +9 -13
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js +7 -6
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.d.ts +35 -3
- package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.js +143 -9
- package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.scss +17 -15
- package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.js +1 -0
- package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts +0 -2
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/cjs/appui-react/redux/FrameworkState.d.ts +1 -1
- package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts +65 -3
- package/lib/cjs/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
- package/lib/cjs/appui-react/safearea/SafeAreaContext.js +20 -3
- package/lib/cjs/appui-react/safearea/SafeAreaContext.js.map +1 -1
- package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts +7 -8
- package/lib/cjs/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
- package/lib/cjs/appui-react/safearea/SafeAreaInsets.js +3 -9
- package/lib/cjs/appui-react/safearea/SafeAreaInsets.js.map +1 -1
- package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.d.ts +18 -0
- package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.d.ts.map +1 -0
- package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js +57 -0
- package/lib/cjs/appui-react/selection/ClearEmphasisStatusField.js.map +1 -0
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +12 -0
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +13 -6
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +12 -0
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +26 -26
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.scss +9 -8
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +7 -0
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +19 -0
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +2 -0
- package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemDef.js +18 -0
- package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -0
- package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
- package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +3 -0
- package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
- package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +8 -0
- package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ItemDefBase.js +16 -2
- package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
- package/lib/cjs/appui-react/shared/ItemProps.d.ts +17 -0
- package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts +62 -0
- package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -0
- package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js +122 -0
- package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -0
- package/lib/cjs/appui-react/stagepanels/FrameworkStagePanel.scss +42 -0
- package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts +142 -0
- package/lib/cjs/appui-react/stagepanels/StagePanel.d.ts.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanel.js +155 -0
- package/lib/cjs/appui-react/stagepanels/StagePanel.js.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -10
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +30 -10
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +112 -53
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts +28 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js +46 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelHeader.js.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelHeader.scss +26 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js +16 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelSection.js +16 -0
- package/lib/cjs/appui-react/stagepanels/StagePanelSection.js.map +1 -0
- package/lib/cjs/appui-react/statusbar/Indicator.js +4 -2
- package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.js +2 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.d.ts +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.js +3 -2
- package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.d.ts +0 -1
- package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.js +3 -4
- package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +17 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.js +55 -6
- package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +17 -12
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts +52 -2
- package/lib/cjs/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItem.js +33 -2
- package/lib/cjs/appui-react/statusbar/StatusBarItem.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts +11 -0
- package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js +19 -0
- package/lib/cjs/appui-react/statusbar/StatusBarItemsManager.js.map +1 -0
- package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts +20 -1
- package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.js +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -1
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.d.ts +10 -0
- package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js +26 -0
- package/lib/cjs/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -0
- package/lib/cjs/appui-react/statusbar/withStatusFieldProps.d.ts +11 -0
- package/lib/cjs/appui-react/statusbar/withStatusFieldProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js +27 -0
- package/lib/cjs/appui-react/statusbar/withStatusFieldProps.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts +21 -3
- package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/ActivityCenter.js +47 -39
- package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/ConditionalField.d.ts +45 -0
- package/lib/cjs/appui-react/statusfields/ConditionalField.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusfields/ConditionalField.js +57 -0
- package/lib/cjs/appui-react/statusfields/ConditionalField.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/FooterModeField.d.ts +19 -0
- package/lib/cjs/appui-react/statusfields/FooterModeField.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusfields/FooterModeField.js +28 -0
- package/lib/cjs/appui-react/statusfields/FooterModeField.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/Indicator.d.ts +44 -0
- package/lib/cjs/appui-react/statusfields/Indicator.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusfields/Indicator.js +46 -0
- package/lib/cjs/appui-react/statusfields/Indicator.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/Indicator.scss +183 -0
- package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts +16 -5
- package/lib/cjs/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/MessageCenter.js +38 -10
- package/lib/cjs/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/PromptField.d.ts +31 -0
- package/lib/cjs/appui-react/statusfields/PromptField.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusfields/PromptField.js +52 -0
- package/lib/cjs/appui-react/statusfields/PromptField.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/PromptField.scss +42 -0
- package/lib/cjs/appui-react/statusfields/SectionsField.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.js +13 -10
- package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.scss +6 -5
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionInfo.js +5 -1
- package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.js +9 -4
- package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.scss +7 -5
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -2
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.js +3 -2
- package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/StatusFieldProps.d.ts +23 -0
- package/lib/cjs/appui-react/statusfields/StatusFieldProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/statusfields/StatusFieldProps.js +3 -0
- package/lib/cjs/appui-react/statusfields/StatusFieldProps.js.map +1 -0
- package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +4 -3
- package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/ViewAttributes.js +10 -2
- package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +3 -3
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +4 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +22 -9
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +6 -5
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +38 -22
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +22 -10
- package/lib/cjs/appui-react/syncui/BooleanListener.d.ts +44 -0
- package/lib/cjs/appui-react/syncui/BooleanListener.d.ts.map +1 -0
- package/lib/cjs/appui-react/syncui/BooleanListener.js +70 -0
- package/lib/cjs/appui-react/syncui/BooleanListener.js.map +1 -0
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts +27 -4
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +38 -4
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ActionButtonItem.d.ts +18 -0
- package/lib/cjs/appui-react/toolbar/ActionButtonItem.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/ActionButtonItem.js +31 -0
- package/lib/cjs/appui-react/toolbar/ActionButtonItem.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts +40 -0
- package/lib/cjs/appui-react/toolbar/ActionItemButton.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/ActionItemButton.js +104 -0
- package/lib/cjs/appui-react/toolbar/ActionItemButton.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts +79 -0
- package/lib/cjs/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/GroupButtonItem.js +329 -0
- package/lib/cjs/appui-react/toolbar/GroupButtonItem.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +93 -2
- package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/GroupItem.js +393 -2
- package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/PopupButton.d.ts +58 -0
- package/lib/cjs/appui-react/toolbar/PopupButton.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/PopupButton.js +154 -0
- package/lib/cjs/appui-react/toolbar/PopupButton.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/PopupButton.scss +9 -0
- package/lib/cjs/appui-react/toolbar/ToolButton.d.ts +31 -0
- package/lib/cjs/appui-react/toolbar/ToolButton.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolButton.js +100 -0
- package/lib/cjs/appui-react/toolbar/ToolButton.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +55 -0
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/Toolbar.js +240 -0
- package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +27 -3
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +2 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +16 -2
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +53 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItem.js +41 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +28 -0
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -1
- package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +7 -0
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +43 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts +22 -0
- package/lib/cjs/appui-react/tools/MarkupToolDefinitions.d.ts.map +1 -0
- package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js +54 -0
- package/lib/cjs/appui-react/tools/MarkupToolDefinitions.js.map +1 -0
- package/lib/cjs/appui-react/tools/ToolSettingsTools.js +1 -1
- package/lib/cjs/appui-react/tools/ToolSettingsTools.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js +20 -0
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
- package/lib/cjs/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
- package/lib/{esm/appui-react/safearea/SafeAreaHelpers.js → cjs/appui-react/ui-items-provider/ProviderItem.js} +4 -6
- package/lib/cjs/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
- 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 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +1 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +11 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +21 -6
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +0 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +20 -6
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +19 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
- package/lib/cjs/appui-react/{safearea/SafeAreaHelpers.js → ui-items-provider/UiItemsProvider.js} +2 -8
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js +3 -1
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
- package/lib/cjs/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
- package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +5 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.js +6 -0
- package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
- package/lib/cjs/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
- package/lib/cjs/appui-react/uistate/UserSettingsStorage.js +62 -0
- package/lib/cjs/appui-react/uistate/UserSettingsStorage.js.map +1 -0
- package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
- package/lib/cjs/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/utils/UiShowHideManager.js +8 -7
- package/lib/cjs/appui-react/utils/UiShowHideManager.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Content.js +4 -6
- package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +19 -20
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.js +217 -108
- package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/FrontstageContent.js +3 -3
- package/lib/cjs/appui-react/widget-panels/FrontstageContent.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/StatusBar.js +9 -6
- package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js +7 -7
- package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/ToolSettings.scss +2 -3
- package/lib/cjs/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Toolbars.js +12 -5
- package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js +8 -6
- package/lib/cjs/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js +5 -3
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.d.ts +35 -0
- package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js +65 -0
- package/lib/cjs/appui-react/widgets/DefaultNavigationWidget.js.map +1 -0
- package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts +56 -0
- package/lib/cjs/appui-react/widgets/NavigationWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/NavigationWidget.js +155 -0
- package/lib/cjs/appui-react/widgets/NavigationWidget.js.map +1 -0
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ReviewToolWidget.d.ts +33 -0
- package/lib/cjs/appui-react/widgets/ReviewToolWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/ReviewToolWidget.js +74 -0
- package/lib/cjs/appui-react/widgets/ReviewToolWidget.js.map +1 -0
- package/lib/cjs/appui-react/widgets/StableWidgetDef.d.ts +1 -1
- package/lib/cjs/appui-react/widgets/StableWidgetDef.js +1 -1
- package/lib/cjs/appui-react/widgets/StableWidgetDef.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolSettingsContent.d.ts +19 -0
- package/lib/cjs/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolSettingsContent.js +40 -1
- package/lib/cjs/appui-react/widgets/ToolSettingsContent.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolSettingsContent.scss +61 -0
- package/lib/cjs/appui-react/widgets/ToolWidget.d.ts +47 -0
- package/lib/cjs/appui-react/widgets/ToolWidget.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/ToolWidget.js +90 -0
- package/lib/cjs/appui-react/widgets/ToolWidget.js.map +1 -0
- package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts +26 -0
- package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js +55 -0
- package/lib/cjs/appui-react/widgets/ToolbarWidgetBase.js.map +1 -0
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/Widget.d.ts +15 -0
- package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/Widget.js +26 -0
- package/lib/cjs/appui-react/widgets/Widget.js.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts +4 -19
- package/lib/cjs/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetConfig.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetControl.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +70 -11
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +117 -59
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetHost.d.ts +2 -1
- package/lib/cjs/appui-react/widgets/WidgetHost.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetHost.js +94 -4
- package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetManager.d.ts +5 -3
- package/lib/cjs/appui-react/widgets/WidgetManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetManager.js +54 -17
- package/lib/cjs/appui-react/widgets/WidgetManager.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetProps.d.ts +33 -0
- package/lib/cjs/appui-react/widgets/WidgetProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetProps.js +10 -0
- package/lib/cjs/appui-react/widgets/WidgetProps.js.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetStack.d.ts +135 -0
- package/lib/cjs/appui-react/widgets/WidgetStack.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetStack.js +138 -0
- package/lib/cjs/appui-react/widgets/WidgetStack.js.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetState.d.ts +13 -0
- package/lib/cjs/appui-react/widgets/WidgetState.d.ts.map +1 -0
- package/lib/cjs/appui-react/widgets/WidgetState.js +16 -0
- package/lib/cjs/appui-react/widgets/WidgetState.js.map +1 -0
- package/lib/cjs/appui-react/workflow/Task.d.ts +48 -0
- package/lib/cjs/appui-react/workflow/Task.d.ts.map +1 -0
- package/lib/cjs/appui-react/workflow/Task.js +73 -0
- package/lib/cjs/appui-react/workflow/Task.js.map +1 -0
- package/lib/cjs/appui-react/workflow/Workflow.d.ts +153 -0
- package/lib/cjs/appui-react/workflow/Workflow.d.ts.map +1 -0
- package/lib/cjs/appui-react/workflow/Workflow.js +238 -0
- package/lib/cjs/appui-react/workflow/Workflow.js.map +1 -0
- package/lib/cjs/appui-react/zones/FrameworkZone.d.ts +44 -0
- package/lib/cjs/appui-react/zones/FrameworkZone.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/FrameworkZone.js +53 -0
- package/lib/cjs/appui-react/zones/FrameworkZone.js.map +1 -0
- package/lib/cjs/appui-react/zones/Outline.d.ts +14 -0
- package/lib/cjs/appui-react/zones/Outline.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/Outline.js +22 -0
- package/lib/cjs/appui-react/zones/Outline.js.map +1 -0
- package/lib/cjs/appui-react/zones/StatusBarZone.d.ts +28 -0
- package/lib/cjs/appui-react/zones/StatusBarZone.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/StatusBarZone.js +33 -0
- package/lib/cjs/appui-react/zones/StatusBarZone.js.map +1 -0
- package/lib/cjs/appui-react/zones/Zone.d.ts +88 -0
- package/lib/cjs/appui-react/zones/Zone.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/Zone.js +158 -0
- package/lib/cjs/appui-react/zones/Zone.js.map +1 -0
- package/lib/cjs/appui-react/zones/ZoneDef.d.ts +57 -0
- package/lib/cjs/appui-react/zones/ZoneDef.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/ZoneDef.js +92 -0
- package/lib/cjs/appui-react/zones/ZoneDef.js.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.d.ts +1 -1
- package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.js +6 -5
- package/lib/cjs/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.d.ts +0 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.js +3 -3
- package/lib/cjs/appui-react/zones/toolsettings/ToolInformation.js.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.d.ts +0 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.js +1 -1
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.d.ts +54 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js +96 -0
- package/lib/cjs/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -0
- package/lib/{esm/appui-react → cjs/appui-react/zones}/toolsettings/ToolUiProvider.d.ts +2 -2
- package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -0
- package/lib/cjs/appui-react/{toolsettings → zones/toolsettings}/ToolUiProvider.js +1 -1
- package/lib/cjs/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -0
- package/lib/cjs/appui-react.d.ts +84 -9
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +84 -9
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.d.ts +33 -2
- package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +28 -4
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/_variables.scss +2 -2
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -2
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +4 -9
- package/lib/esm/appui-react/backstage/Backstage.d.ts +62 -0
- package/lib/esm/appui-react/backstage/Backstage.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/Backstage.js +84 -0
- package/lib/esm/appui-react/backstage/Backstage.js.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.js +2 -2
- package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -2
- package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageItem.d.ts +43 -0
- package/lib/esm/appui-react/backstage/BackstageItem.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageItem.js +32 -0
- package/lib/esm/appui-react/backstage/BackstageItem.js.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts +49 -0
- package/lib/esm/appui-react/backstage/BackstageItemProps.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageItemProps.js +18 -0
- package/lib/esm/appui-react/backstage/BackstageItemProps.js.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts +19 -0
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.js +55 -0
- package/lib/esm/appui-react/backstage/BackstageItemUtilities.js.map +1 -0
- package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageManager.js +2 -0
- package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
- package/lib/esm/appui-react/backstage/CommandLaunch.d.ts +32 -0
- package/lib/esm/appui-react/backstage/CommandLaunch.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/CommandLaunch.js +83 -0
- package/lib/esm/appui-react/backstage/CommandLaunch.js.map +1 -0
- package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts +34 -0
- package/lib/esm/appui-react/backstage/FrontstageLaunch.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/FrontstageLaunch.js +89 -0
- package/lib/esm/appui-react/backstage/FrontstageLaunch.js.map +1 -0
- package/lib/esm/appui-react/backstage/Separator.d.ts +16 -0
- package/lib/esm/appui-react/backstage/Separator.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/Separator.js +24 -0
- package/lib/esm/appui-react/backstage/Separator.js.map +1 -0
- package/lib/esm/appui-react/backstage/TaskLaunch.d.ts +35 -0
- package/lib/esm/appui-react/backstage/TaskLaunch.d.ts.map +1 -0
- package/lib/esm/appui-react/backstage/TaskLaunch.js +97 -0
- package/lib/esm/appui-react/backstage/TaskLaunch.js.map +1 -0
- package/lib/esm/appui-react/backstage/useDefaultBackstageItems.js.map +1 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js +3 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
- package/lib/esm/appui-react/childwindow/ChildWindowManager.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/ChildWindowManager.js +9 -6
- package/lib/esm/appui-react/childwindow/ChildWindowManager.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +4 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts +21 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js +28 -2
- package/lib/esm/appui-react/configurableui/ConfigurableUiManager.js.map +1 -1
- package/lib/esm/appui-react/configurableui/configurableui.scss +7 -5
- package/lib/esm/appui-react/configurableui/state.d.ts +7 -0
- package/lib/esm/appui-react/configurableui/state.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/state.js +9 -0
- package/lib/esm/appui-react/configurableui/state.js.map +1 -1
- package/lib/esm/appui-react/content/ContentGroup.d.ts +9 -2
- 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 +4 -0
- package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/DefaultViewOverlay.scss +5 -4
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +2 -2
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +0 -2
- package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
- package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts +22 -0
- package/lib/esm/appui-react/dragdrop/ZoneTargets.d.ts.map +1 -0
- package/lib/esm/appui-react/dragdrop/ZoneTargets.js +29 -0
- package/lib/esm/appui-react/dragdrop/ZoneTargets.js.map +1 -0
- package/lib/esm/appui-react/feedback/ElementTooltip.js +2 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
- package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts +0 -2
- package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
- package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
- package/lib/esm/appui-react/feedback/ValidationTextbox.scss +4 -4
- package/lib/esm/appui-react/frontstage/Frontstage.d.ts +159 -0
- package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/Frontstage.js +462 -0
- package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts +147 -0
- package/lib/esm/appui-react/frontstage/FrontstageComposer.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageComposer.js +662 -0
- package/lib/esm/appui-react/frontstage/FrontstageComposer.js.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +74 -19
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +302 -85
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts +10 -4
- package/lib/esm/appui-react/frontstage/FrontstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageManager.js +31 -5
- package/lib/esm/appui-react/frontstage/FrontstageManager.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +11 -3
- package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +0 -2
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.js +1 -2
- package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +4 -1
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +4 -2
- package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/StageUsage.d.ts +15 -0
- package/lib/esm/appui-react/frontstage/StageUsage.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/StageUsage.js +14 -0
- package/lib/esm/appui-react/frontstage/StageUsage.js.map +1 -0
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +15 -4
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +27 -44
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js +4 -4
- package/lib/esm/appui-react/hooks/useAvailableUiItemsProviders.js.map +1 -1
- package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts +38 -0
- package/lib/esm/appui-react/hooks/useFrameworkVersion.d.ts.map +1 -0
- package/lib/esm/appui-react/hooks/useFrameworkVersion.js +51 -0
- package/lib/esm/appui-react/hooks/useFrameworkVersion.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/Common.d.ts +26 -0
- package/lib/esm/appui-react/imodel-components/Common.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/Common.js +22 -0
- package/lib/esm/appui-react/imodel-components/Common.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeBase.scss +53 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts +72 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js +145 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeEventHandler.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts +52 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js +63 -0
- package/lib/esm/appui-react/imodel-components/VisibilityTreeRenderer.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/category-tree/Categories.json +102 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts +72 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js +103 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoriesTree.scss +9 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts +64 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js +195 -0
- package/lib/esm/appui-react/imodel-components/category-tree/CategoryVisibilityHandler.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Hierarchy.GroupedByClass.json +392 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Hierarchy.json +387 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts +85 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js +126 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTree.scss +9 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsTreeSearch.json +239 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts +104 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js +477 -0
- package/lib/esm/appui-react/imodel-components/models-tree/ModelsVisibilityHandler.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Utils.d.ts +10 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Utils.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Utils.js +19 -0
- package/lib/esm/appui-react/imodel-components/models-tree/Utils.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialBreakdown.GroupedByClass.json +79 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialBreakdown.json +79 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts +36 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.d.ts.map +1 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js +40 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.js.map +1 -0
- package/lib/esm/appui-react/imodel-components/spatial-tree/SpatialContainmentTree.scss +9 -0
- package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts +80 -0
- package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.d.ts.map +1 -0
- package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js +235 -0
- package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.js.map +1 -0
- package/lib/esm/appui-react/keyinbrowser/KeyinBrowser.scss +11 -0
- package/lib/esm/appui-react/messages/ActivityMessage.d.ts +36 -1
- package/lib/esm/appui-react/messages/ActivityMessage.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/ActivityMessage.js +34 -24
- package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
- package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts +20 -0
- package/lib/esm/appui-react/messages/ActivityMessagePopup.d.ts.map +1 -0
- package/lib/esm/appui-react/messages/ActivityMessagePopup.js +40 -0
- package/lib/esm/appui-react/messages/ActivityMessagePopup.js.map +1 -0
- package/lib/esm/appui-react/messages/ActivityMessagePopup.scss +15 -0
- package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.js +3 -2
- package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.js +2 -1
- package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
- package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts +22 -0
- package/lib/esm/appui-react/messages/StatusMessageRenderer.d.ts.map +1 -0
- package/lib/esm/appui-react/messages/StatusMessageRenderer.js +72 -0
- package/lib/esm/appui-react/messages/StatusMessageRenderer.js.map +1 -0
- package/lib/esm/appui-react/messages/StatusMessageRenderer.scss +28 -0
- package/lib/esm/appui-react/messages/StatusMessagesContainer.d.ts +25 -0
- package/lib/esm/appui-react/messages/StatusMessagesContainer.d.ts.map +1 -0
- package/lib/esm/appui-react/messages/StatusMessagesContainer.js +64 -0
- package/lib/esm/appui-react/messages/StatusMessagesContainer.js.map +1 -0
- package/lib/esm/appui-react/messages/StatusMessagesContainer.scss +53 -0
- package/lib/esm/appui-react/messages/StickyMessage.d.ts +23 -0
- package/lib/esm/appui-react/messages/StickyMessage.d.ts.map +1 -0
- package/lib/esm/appui-react/messages/StickyMessage.js +35 -0
- package/lib/esm/appui-react/messages/StickyMessage.js.map +1 -0
- package/lib/esm/appui-react/messages/StickyMessage.scss +22 -0
- package/lib/esm/appui-react/messages/ToastMessage.d.ts +23 -0
- package/lib/esm/appui-react/messages/ToastMessage.d.ts.map +1 -0
- package/lib/esm/appui-react/messages/ToastMessage.js +27 -0
- package/lib/esm/appui-react/messages/ToastMessage.js.map +1 -0
- package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js +0 -1
- package/lib/esm/appui-react/navigationaids/CubeNavigationAidControl.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js +0 -1
- package/lib/esm/appui-react/navigationaids/DrawingNavigationAidControl.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js +0 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +9 -13
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js +9 -8
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.d.ts +35 -3
- package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.js +142 -9
- package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.scss +17 -15
- package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.js +1 -0
- package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.d.ts +0 -2
- package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/esm/appui-react/redux/FrameworkState.d.ts +1 -1
- package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts +65 -3
- package/lib/esm/appui-react/safearea/SafeAreaContext.d.ts.map +1 -1
- package/lib/esm/appui-react/safearea/SafeAreaContext.js +18 -2
- package/lib/esm/appui-react/safearea/SafeAreaContext.js.map +1 -1
- package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts +7 -8
- package/lib/esm/appui-react/safearea/SafeAreaInsets.d.ts.map +1 -1
- package/lib/esm/appui-react/safearea/SafeAreaInsets.js +3 -9
- package/lib/esm/appui-react/safearea/SafeAreaInsets.js.map +1 -1
- package/lib/esm/appui-react/selection/ClearEmphasisStatusField.d.ts +18 -0
- package/lib/esm/appui-react/selection/ClearEmphasisStatusField.d.ts.map +1 -0
- package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js +53 -0
- package/lib/esm/appui-react/selection/ClearEmphasisStatusField.js.map +1 -0
- package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js +12 -0
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +13 -6
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +12 -0
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +26 -26
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.scss +9 -8
- package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +7 -0
- package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ActionButtonItemDef.js +19 -0
- package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemDef.d.ts +2 -0
- package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemDef.js +18 -0
- package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -0
- package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
- package/lib/esm/appui-react/shared/GroupItemProps.d.ts +3 -0
- package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
- package/lib/esm/appui-react/shared/ItemDefBase.d.ts +8 -0
- package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ItemDefBase.js +16 -2
- package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
- package/lib/esm/appui-react/shared/ItemProps.d.ts +17 -0
- package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts +62 -0
- package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.d.ts.map +1 -0
- package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js +117 -0
- package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.js.map +1 -0
- package/lib/esm/appui-react/stagepanels/FrameworkStagePanel.scss +42 -0
- package/lib/esm/appui-react/stagepanels/StagePanel.d.ts +142 -0
- package/lib/esm/appui-react/stagepanels/StagePanel.d.ts.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanel.js +149 -0
- package/lib/esm/appui-react/stagepanels/StagePanel.js.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -10
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.js +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +30 -10
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js +108 -50
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts +28 -0
- package/lib/esm/appui-react/stagepanels/StagePanelHeader.d.ts.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelHeader.js +42 -0
- package/lib/esm/appui-react/stagepanels/StagePanelHeader.js.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelHeader.scss +26 -0
- package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts +13 -0
- package/lib/esm/appui-react/stagepanels/StagePanelLocation.d.ts.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelLocation.js +13 -0
- package/lib/esm/appui-react/stagepanels/StagePanelLocation.js.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts +13 -0
- package/lib/esm/appui-react/stagepanels/StagePanelSection.d.ts.map +1 -0
- package/lib/esm/appui-react/stagepanels/StagePanelSection.js +13 -0
- package/lib/esm/appui-react/stagepanels/StagePanelSection.js.map +1 -0
- package/lib/esm/appui-react/statusbar/Indicator.js +4 -2
- package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.js +2 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.d.ts +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.js +3 -2
- package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.d.ts +0 -1
- package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.js +3 -4
- package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts +17 -1
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.js +55 -6
- package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js +21 -16
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts +52 -2
- package/lib/esm/appui-react/statusbar/StatusBarItem.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItem.js +29 -1
- package/lib/esm/appui-react/statusbar/StatusBarItem.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts +23 -4
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js +31 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemUtilities.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts +11 -0
- package/lib/esm/appui-react/statusbar/StatusBarItemsManager.d.ts.map +1 -0
- package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js +15 -0
- package/lib/esm/appui-react/statusbar/StatusBarItemsManager.js.map +1 -0
- package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts +20 -1
- package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarWidgetControl.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.js +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.js +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +2 -1
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
- package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.d.ts +10 -0
- package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.d.ts.map +1 -0
- package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js +22 -0
- package/lib/esm/appui-react/statusbar/withMessageCenterFieldProps.js.map +1 -0
- package/lib/esm/appui-react/statusbar/withStatusFieldProps.d.ts +11 -0
- package/lib/esm/appui-react/statusbar/withStatusFieldProps.d.ts.map +1 -0
- package/lib/esm/appui-react/statusbar/withStatusFieldProps.js +23 -0
- package/lib/esm/appui-react/statusbar/withStatusFieldProps.js.map +1 -0
- package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts +21 -3
- package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/ActivityCenter.js +47 -39
- package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
- package/lib/esm/appui-react/statusfields/ConditionalField.d.ts +45 -0
- package/lib/esm/appui-react/statusfields/ConditionalField.d.ts.map +1 -0
- package/lib/esm/appui-react/statusfields/ConditionalField.js +53 -0
- package/lib/esm/appui-react/statusfields/ConditionalField.js.map +1 -0
- package/lib/esm/appui-react/statusfields/FooterModeField.d.ts +19 -0
- package/lib/esm/appui-react/statusfields/FooterModeField.d.ts.map +1 -0
- package/lib/esm/appui-react/statusfields/FooterModeField.js +24 -0
- package/lib/esm/appui-react/statusfields/FooterModeField.js.map +1 -0
- package/lib/esm/appui-react/statusfields/Indicator.d.ts +44 -0
- package/lib/esm/appui-react/statusfields/Indicator.d.ts.map +1 -0
- package/lib/esm/appui-react/statusfields/Indicator.js +42 -0
- package/lib/esm/appui-react/statusfields/Indicator.js.map +1 -0
- package/lib/esm/appui-react/statusfields/Indicator.scss +183 -0
- package/lib/esm/appui-react/statusfields/MessageCenter.d.ts +16 -5
- package/lib/esm/appui-react/statusfields/MessageCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/MessageCenter.js +38 -10
- package/lib/esm/appui-react/statusfields/MessageCenter.js.map +1 -1
- package/lib/esm/appui-react/statusfields/PromptField.d.ts +31 -0
- package/lib/esm/appui-react/statusfields/PromptField.d.ts.map +1 -0
- package/lib/esm/appui-react/statusfields/PromptField.js +49 -0
- package/lib/esm/appui-react/statusfields/PromptField.js.map +1 -0
- package/lib/esm/appui-react/statusfields/PromptField.scss +42 -0
- package/lib/esm/appui-react/statusfields/SectionsField.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.js +13 -10
- package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.scss +6 -5
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionInfo.js +5 -1
- package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.js +9 -4
- package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.scss +7 -5
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -2
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.js +3 -2
- package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/esm/appui-react/statusfields/StatusFieldProps.d.ts +23 -0
- package/lib/esm/appui-react/statusfields/StatusFieldProps.d.ts.map +1 -0
- package/lib/esm/appui-react/statusfields/StatusFieldProps.js +2 -0
- package/lib/esm/appui-react/statusfields/StatusFieldProps.js.map +1 -0
- package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +4 -3
- package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/ViewAttributes.js +10 -2
- package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +3 -3
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +4 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +22 -9
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts +6 -5
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +39 -23
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +22 -10
- package/lib/esm/appui-react/syncui/BooleanListener.d.ts +44 -0
- package/lib/esm/appui-react/syncui/BooleanListener.d.ts.map +1 -0
- package/lib/esm/appui-react/syncui/BooleanListener.js +66 -0
- package/lib/esm/appui-react/syncui/BooleanListener.js.map +1 -0
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts +27 -4
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +38 -4
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ActionButtonItem.d.ts +18 -0
- package/lib/esm/appui-react/toolbar/ActionButtonItem.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/ActionButtonItem.js +27 -0
- package/lib/esm/appui-react/toolbar/ActionButtonItem.js.map +1 -0
- package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts +40 -0
- package/lib/esm/appui-react/toolbar/ActionItemButton.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/ActionItemButton.js +100 -0
- package/lib/esm/appui-react/toolbar/ActionItemButton.js.map +1 -0
- package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts +79 -0
- package/lib/esm/appui-react/toolbar/GroupButtonItem.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/GroupButtonItem.js +324 -0
- package/lib/esm/appui-react/toolbar/GroupButtonItem.js.map +1 -0
- package/lib/esm/appui-react/toolbar/GroupItem.d.ts +93 -2
- package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/GroupItem.js +388 -1
- package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
- package/lib/esm/appui-react/toolbar/PopupButton.d.ts +58 -0
- package/lib/esm/appui-react/toolbar/PopupButton.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/PopupButton.js +150 -0
- package/lib/esm/appui-react/toolbar/PopupButton.js.map +1 -0
- package/lib/esm/appui-react/toolbar/PopupButton.scss +9 -0
- package/lib/esm/appui-react/toolbar/ToolButton.d.ts +31 -0
- package/lib/esm/appui-react/toolbar/ToolButton.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolButton.js +96 -0
- package/lib/esm/appui-react/toolbar/ToolButton.js.map +1 -0
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts +55 -0
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/Toolbar.js +236 -0
- package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarComposer.js +26 -2
- package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +2 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js +16 -2
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +53 -0
- package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarItem.js +35 -0
- package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +14 -0
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +25 -0
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -0
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +3 -1
- package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +7 -0
- package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js +44 -2
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts +22 -0
- package/lib/esm/appui-react/tools/MarkupToolDefinitions.d.ts.map +1 -0
- package/lib/esm/appui-react/tools/MarkupToolDefinitions.js +50 -0
- package/lib/esm/appui-react/tools/MarkupToolDefinitions.js.map +1 -0
- package/lib/esm/appui-react/tools/ToolSettingsTools.js +1 -1
- package/lib/esm/appui-react/tools/ToolSettingsTools.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +11 -0
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js +16 -0
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts +9 -0
- package/lib/esm/appui-react/ui-items-provider/ProviderItem.d.ts.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/ProviderItem.js +9 -0
- package/lib/esm/appui-react/ui-items-provider/ProviderItem.js.map +1 -0
- 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 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +1 -0
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +11 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +2 -2
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +21 -6
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +0 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +20 -6
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +24 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +15 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +9 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js +9 -0
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -0
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js +3 -1
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.js.map +1 -1
- package/lib/esm/appui-react/uiprovider/DefaultDialogGridContainer.scss +3 -0
- package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +5 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.js +6 -0
- package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts +15 -0
- package/lib/esm/appui-react/uistate/UserSettingsStorage.d.ts.map +1 -0
- package/lib/esm/appui-react/uistate/UserSettingsStorage.js +58 -0
- package/lib/esm/appui-react/uistate/UserSettingsStorage.js.map +1 -0
- package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
- package/lib/esm/appui-react/utils/UiShowHideManager.d.ts.map +1 -1
- package/lib/esm/appui-react/utils/UiShowHideManager.js +8 -7
- package/lib/esm/appui-react/utils/UiShowHideManager.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Content.js +3 -5
- package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +19 -20
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.js +216 -106
- package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/FrontstageContent.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/FrontstageContent.js +2 -2
- package/lib/esm/appui-react/widget-panels/FrontstageContent.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/StatusBar.js +8 -5
- package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.js +7 -7
- package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/ToolSettings.scss +2 -3
- package/lib/esm/appui-react/widget-panels/Toolbars.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Toolbars.js +11 -4
- package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.js +9 -7
- package/lib/esm/appui-react/widget-panels/useWidgetDirection.js.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.js +5 -3
- package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/DefaultNavigationWidget.d.ts +35 -0
- package/lib/esm/appui-react/widgets/DefaultNavigationWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js +61 -0
- package/lib/esm/appui-react/widgets/DefaultNavigationWidget.js.map +1 -0
- package/lib/esm/appui-react/widgets/NavigationWidget.d.ts +56 -0
- package/lib/esm/appui-react/widgets/NavigationWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/NavigationWidget.js +150 -0
- package/lib/esm/appui-react/widgets/NavigationWidget.js.map +1 -0
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ReviewToolWidget.d.ts +33 -0
- package/lib/esm/appui-react/widgets/ReviewToolWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/ReviewToolWidget.js +70 -0
- package/lib/esm/appui-react/widgets/ReviewToolWidget.js.map +1 -0
- package/lib/esm/appui-react/widgets/StableWidgetDef.d.ts +1 -1
- package/lib/esm/appui-react/widgets/StableWidgetDef.js +1 -1
- package/lib/esm/appui-react/widgets/StableWidgetDef.js.map +1 -1
- package/lib/esm/appui-react/widgets/ToolSettingsContent.d.ts +19 -0
- package/lib/esm/appui-react/widgets/ToolSettingsContent.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ToolSettingsContent.js +38 -0
- package/lib/esm/appui-react/widgets/ToolSettingsContent.js.map +1 -1
- package/lib/esm/appui-react/widgets/ToolSettingsContent.scss +61 -0
- package/lib/esm/appui-react/widgets/ToolWidget.d.ts +47 -0
- package/lib/esm/appui-react/widgets/ToolWidget.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/ToolWidget.js +85 -0
- package/lib/esm/appui-react/widgets/ToolWidget.js.map +1 -0
- package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts +26 -0
- package/lib/esm/appui-react/widgets/ToolbarWidgetBase.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js +51 -0
- package/lib/esm/appui-react/widgets/ToolbarWidgetBase.js.map +1 -0
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/Widget.d.ts +15 -0
- package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/Widget.js +22 -0
- package/lib/esm/appui-react/widgets/Widget.js.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetConfig.d.ts +4 -19
- package/lib/esm/appui-react/widgets/WidgetConfig.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetConfig.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetControl.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts +70 -11
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +117 -59
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetHost.d.ts +2 -1
- package/lib/esm/appui-react/widgets/WidgetHost.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetHost.js +94 -4
- package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetManager.d.ts +5 -3
- package/lib/esm/appui-react/widgets/WidgetManager.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetManager.js +55 -18
- package/lib/esm/appui-react/widgets/WidgetManager.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetProps.d.ts +33 -0
- package/lib/esm/appui-react/widgets/WidgetProps.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetProps.js +9 -0
- package/lib/esm/appui-react/widgets/WidgetProps.js.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetStack.d.ts +135 -0
- package/lib/esm/appui-react/widgets/WidgetStack.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetStack.js +131 -0
- package/lib/esm/appui-react/widgets/WidgetStack.js.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetState.d.ts +13 -0
- package/lib/esm/appui-react/widgets/WidgetState.d.ts.map +1 -0
- package/lib/esm/appui-react/widgets/WidgetState.js +13 -0
- package/lib/esm/appui-react/widgets/WidgetState.js.map +1 -0
- package/lib/esm/appui-react/workflow/Task.d.ts +48 -0
- package/lib/esm/appui-react/workflow/Task.d.ts.map +1 -0
- package/lib/esm/appui-react/workflow/Task.js +68 -0
- package/lib/esm/appui-react/workflow/Task.js.map +1 -0
- package/lib/esm/appui-react/workflow/Workflow.d.ts +153 -0
- package/lib/esm/appui-react/workflow/Workflow.d.ts.map +1 -0
- package/lib/esm/appui-react/workflow/Workflow.js +231 -0
- package/lib/esm/appui-react/workflow/Workflow.js.map +1 -0
- package/lib/esm/appui-react/zones/FrameworkZone.d.ts +44 -0
- package/lib/esm/appui-react/zones/FrameworkZone.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/FrameworkZone.js +47 -0
- package/lib/esm/appui-react/zones/FrameworkZone.js.map +1 -0
- package/lib/esm/appui-react/zones/Outline.d.ts +14 -0
- package/lib/esm/appui-react/zones/Outline.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/Outline.js +18 -0
- package/lib/esm/appui-react/zones/Outline.js.map +1 -0
- package/lib/esm/appui-react/zones/StatusBarZone.d.ts +28 -0
- package/lib/esm/appui-react/zones/StatusBarZone.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/StatusBarZone.js +29 -0
- package/lib/esm/appui-react/zones/StatusBarZone.js.map +1 -0
- package/lib/esm/appui-react/zones/Zone.d.ts +88 -0
- package/lib/esm/appui-react/zones/Zone.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/Zone.js +152 -0
- package/lib/esm/appui-react/zones/Zone.js.map +1 -0
- package/lib/esm/appui-react/zones/ZoneDef.d.ts +57 -0
- package/lib/esm/appui-react/zones/ZoneDef.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/ZoneDef.js +88 -0
- package/lib/esm/appui-react/zones/ZoneDef.js.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.d.ts +1 -1
- package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.d.ts.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/DefaultToolSettingsProvider.js +6 -5
- package/lib/esm/appui-react/zones/toolsettings/DefaultToolSettingsProvider.js.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.d.ts +0 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolInformation.d.ts.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolInformation.js +3 -3
- package/lib/esm/appui-react/zones/toolsettings/ToolInformation.js.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.d.ts +0 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.d.ts.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolSettingsManager.js +1 -1
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsManager.js.map +1 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.d.ts +54 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.d.ts.map +1 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js +92 -0
- package/lib/esm/appui-react/zones/toolsettings/ToolSettingsZone.js.map +1 -0
- package/lib/{cjs/appui-react → esm/appui-react/zones}/toolsettings/ToolUiProvider.d.ts +2 -2
- package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.d.ts.map +1 -0
- package/lib/esm/appui-react/{toolsettings → zones/toolsettings}/ToolUiProvider.js +1 -1
- package/lib/esm/appui-react/zones/toolsettings/ToolUiProvider.js.map +1 -0
- package/lib/esm/appui-react.d.ts +84 -9
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +84 -9
- package/lib/esm/appui-react.js.map +1 -1
- package/lib/public/locales/en/UiFramework.json +2 -0
- package/package.json +55 -45
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
- package/lib/cjs/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
- package/lib/cjs/appui-react/statusbar/Separator.scss +0 -14
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +0 -1
- package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolInformation.d.ts.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolInformation.js.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolUiProvider.d.ts.map +0 -1
- package/lib/cjs/appui-react/toolsettings/ToolUiProvider.js.map +0 -1
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts +0 -8
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.d.ts.map +0 -1
- package/lib/esm/appui-react/safearea/SafeAreaHelpers.js.map +0 -1
- package/lib/esm/appui-react/statusbar/Separator.scss +0 -14
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.d.ts.map +0 -1
- package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolInformation.d.ts.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolInformation.js.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.d.ts.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolSettingsManager.js.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolUiProvider.d.ts.map +0 -1
- package/lib/esm/appui-react/toolsettings/ToolUiProvider.js.map +0 -1
|
@@ -0,0 +1,240 @@
|
|
|
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 Item
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.Toolbar = void 0;
|
|
11
|
+
const React = require("react");
|
|
12
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
13
|
+
const core_react_1 = require("@itwin/core-react");
|
|
14
|
+
const appui_layout_react_1 = require("@itwin/appui-layout-react");
|
|
15
|
+
const ActionButtonItemDef_1 = require("../shared/ActionButtonItemDef");
|
|
16
|
+
const CustomItemDef_1 = require("../shared/CustomItemDef");
|
|
17
|
+
const SyncUiEventDispatcher_1 = require("../syncui/SyncUiEventDispatcher");
|
|
18
|
+
const UiFramework_1 = require("../UiFramework");
|
|
19
|
+
const GroupItem_1 = require("./GroupItem");
|
|
20
|
+
/** Toolbar React component.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
class Toolbar extends React.Component {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
this._dimension = 0;
|
|
27
|
+
this._minToolbarSize = (ActionButtonItemDef_1.ActionButtonItemDef.defaultButtonSize + 2);
|
|
28
|
+
this._isMounted = false;
|
|
29
|
+
this._handleSyncUiEvent = (args) => {
|
|
30
|
+
if (this._processSyncUiEvent(this.props.items, args)) {
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
// if sync event changed number of displayable buttons layout the toolbar and re-render
|
|
33
|
+
const items = this.generateToolbarItems(this.props.items, new core_react_1.Size(this.state.width, this.state.height));
|
|
34
|
+
if (this._isMounted)
|
|
35
|
+
this.setState({ items });
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// istanbul ignore next - currently unable to replicate resizing in unit test
|
|
40
|
+
this._onResize = (width, height) => {
|
|
41
|
+
width = width !== null && width !== void 0 ? width : this._minToolbarSize;
|
|
42
|
+
height = height !== null && height !== void 0 ? height : this._minToolbarSize;
|
|
43
|
+
// do allow toolbar to go to a size that doesn't show at least one button;
|
|
44
|
+
if (width < this._minToolbarSize)
|
|
45
|
+
width = this._minToolbarSize;
|
|
46
|
+
if (height < this._minToolbarSize)
|
|
47
|
+
height = this._minToolbarSize;
|
|
48
|
+
if (this.state.width !== width || this.state.height !== height) {
|
|
49
|
+
const items = this.generateToolbarItems(this.props.items, new core_react_1.Size(width, height));
|
|
50
|
+
if (this._isMounted)
|
|
51
|
+
this.setState({ width, height, items });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const itemList = this.props.items;
|
|
55
|
+
// Filter on GroupItemDef
|
|
56
|
+
itemList.forEach((item) => {
|
|
57
|
+
if (item instanceof GroupItem_1.GroupItemDef) {
|
|
58
|
+
// istanbul ignore else
|
|
59
|
+
if (!item.directionExplicit && this.props.expandsTo !== undefined) // eslint-disable-line deprecation/deprecation
|
|
60
|
+
item.direction = this.props.expandsTo; // eslint-disable-line deprecation/deprecation
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
// pick a reasonable initial size, when zone layout occurs a resize event will trigger to adjust this size.
|
|
64
|
+
let width = (ActionButtonItemDef_1.ActionButtonItemDef.defaultButtonSize + 2) * 3;
|
|
65
|
+
let height = width;
|
|
66
|
+
// istanbul ignore next
|
|
67
|
+
if (props.initialSize) {
|
|
68
|
+
width = props.initialSize.width;
|
|
69
|
+
height = props.initialSize.height;
|
|
70
|
+
}
|
|
71
|
+
const items = this.generateToolbarItems(this.props.items, new core_react_1.Size(width, height));
|
|
72
|
+
// let's set the default size big enough to hold a single button.
|
|
73
|
+
this.state = {
|
|
74
|
+
width,
|
|
75
|
+
height,
|
|
76
|
+
items,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
get _toolbarId() {
|
|
80
|
+
return this.props.toolbarId ? this.props.toolbarId : "unknown";
|
|
81
|
+
}
|
|
82
|
+
componentDidMount() {
|
|
83
|
+
this._isMounted = true;
|
|
84
|
+
SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);
|
|
85
|
+
}
|
|
86
|
+
componentWillUnmount() {
|
|
87
|
+
this._isMounted = false;
|
|
88
|
+
SyncUiEventDispatcher_1.SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);
|
|
89
|
+
}
|
|
90
|
+
componentDidUpdate(prevProps, _prevState) {
|
|
91
|
+
if (this.props.items !== prevProps.items) {
|
|
92
|
+
// if sync event changed number of displayable buttons layout the toolbar and re-render
|
|
93
|
+
const items = this.generateToolbarItems(this.props.items, new core_react_1.Size(this.state.width, this.state.height));
|
|
94
|
+
this.setState({ items });
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
setCurrentStateValues(item) {
|
|
98
|
+
// if a stateFunc is specified call it to get current state values
|
|
99
|
+
// istanbul ignore else
|
|
100
|
+
if (item.stateFunc) { // eslint-disable-line deprecation/deprecation
|
|
101
|
+
const itemState = item.stateFunc({
|
|
102
|
+
isVisible: item.isVisible, isEnabled: item.isEnabled, isPressed: item.isPressed, isActive: item.isActive, // eslint-disable-line deprecation/deprecation
|
|
103
|
+
});
|
|
104
|
+
item.isVisible = !!itemState.isVisible; // eslint-disable-line deprecation/deprecation
|
|
105
|
+
item.isEnabled = !!itemState.isEnabled; // eslint-disable-line deprecation/deprecation
|
|
106
|
+
item.isPressed = !!itemState.isPressed;
|
|
107
|
+
item.isActive = !!itemState.isActive;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
// istanbul ignore next
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
_processSyncUiEvent(itemList, args) {
|
|
114
|
+
// istanbul ignore next
|
|
115
|
+
if (!itemList || 0 === itemList.length)
|
|
116
|
+
return false;
|
|
117
|
+
let returnValue = false;
|
|
118
|
+
// Review all the itemDefs to see if any are monitoring sync events in UiSyncEventArgs
|
|
119
|
+
for (const item of itemList) {
|
|
120
|
+
if (item.stateFunc && item.stateSyncIds && item.stateSyncIds.length > 0 && // eslint-disable-line deprecation/deprecation
|
|
121
|
+
item.stateSyncIds.some((value) => args.eventIds.has(value.toLowerCase()))) { // eslint-disable-line deprecation/deprecation
|
|
122
|
+
if (item instanceof GroupItem_1.GroupItemDef) {
|
|
123
|
+
this.setCurrentStateValues(item);
|
|
124
|
+
this._processSyncUiEvent(item.items, args);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
this.setCurrentStateValues(item);
|
|
128
|
+
}
|
|
129
|
+
returnValue = true;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
// istanbul ignore next
|
|
133
|
+
if (item instanceof GroupItem_1.GroupItemDef) {
|
|
134
|
+
if (this._processSyncUiEvent(item.items, args))
|
|
135
|
+
returnValue = true;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return returnValue;
|
|
140
|
+
}
|
|
141
|
+
layoutToolbarItems(itemList) {
|
|
142
|
+
// istanbul ignore next -
|
|
143
|
+
if (0 === itemList.length)
|
|
144
|
+
return [];
|
|
145
|
+
core_bentley_1.Logger.logInfo(UiFramework_1.UiFramework.loggerCategory(this), `Available space for toolbar [${this._toolbarId}] = ${this._dimension}`);
|
|
146
|
+
const actionItems = new Array();
|
|
147
|
+
let itemDimensions = 0;
|
|
148
|
+
// Filter on ActionButtonItemDef
|
|
149
|
+
itemList.forEach((item) => {
|
|
150
|
+
// istanbul ignore else
|
|
151
|
+
if (item.isVisible) { // eslint-disable-line deprecation/deprecation
|
|
152
|
+
// istanbul ignore else
|
|
153
|
+
if (item instanceof ActionButtonItemDef_1.ActionButtonItemDef) {
|
|
154
|
+
actionItems.push(item);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
// Populate the overflow button
|
|
159
|
+
let overflowItemDef;
|
|
160
|
+
if (actionItems.length > 1) {
|
|
161
|
+
// Get the item dimensions
|
|
162
|
+
actionItems.forEach((item) => {
|
|
163
|
+
const itemSize = item.getDimension(this.props.orientation) + 1;
|
|
164
|
+
itemDimensions += itemSize;
|
|
165
|
+
core_bentley_1.Logger.logTrace(UiFramework_1.UiFramework.loggerCategory(this), ` Item [${item.id ? item.id : /* istanbul ignore next */ item.label}] has a size of ${itemSize} cumulative size=${itemDimensions}.`);
|
|
166
|
+
});
|
|
167
|
+
core_bentley_1.Logger.logInfo(UiFramework_1.UiFramework.loggerCategory(this), ` Needed toolbar size [${this._toolbarId}] = ${itemDimensions}`);
|
|
168
|
+
// istanbul ignore next - currently unable to set size in unit test
|
|
169
|
+
const padding = 2; // used just to insure button will fall inside tool box
|
|
170
|
+
if (itemDimensions > (this._dimension - padding)) {
|
|
171
|
+
const overflowItems = [];
|
|
172
|
+
const lastItemIndex = actionItems.length - 1;
|
|
173
|
+
let singleItemSize = 0;
|
|
174
|
+
for (let index = lastItemIndex; index >= 0; index--) {
|
|
175
|
+
// istanbul ignore next
|
|
176
|
+
if (actionItems[index] instanceof CustomItemDef_1.CustomItemDef)
|
|
177
|
+
continue;
|
|
178
|
+
if (0 === singleItemSize)
|
|
179
|
+
singleItemSize = actionItems[index].getDimension(this.props.orientation);
|
|
180
|
+
const deletedItems = actionItems.splice(index, 1);
|
|
181
|
+
// istanbul ignore else
|
|
182
|
+
if (deletedItems.length === 1) {
|
|
183
|
+
const item = deletedItems[0];
|
|
184
|
+
overflowItems.unshift(item);
|
|
185
|
+
core_bentley_1.Logger.logTrace(UiFramework_1.UiFramework.loggerCategory(this), ` * Item [${item.id ? item.id : /* istanbul ignore next */ item.label}] put into overflow items.`);
|
|
186
|
+
let currentWidth = 0;
|
|
187
|
+
actionItems.forEach((itemDef) => currentWidth += (itemDef.getDimension(this.props.orientation) + 1));
|
|
188
|
+
itemDimensions = (currentWidth + singleItemSize);
|
|
189
|
+
if (itemDimensions < (this._dimension - padding))
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
overflowItemDef = new GroupItem_1.GroupItemDef({
|
|
194
|
+
groupId: `overflow-group-${itemDimensions}-${actionItems.length}-${overflowItems.length}`,
|
|
195
|
+
labelKey: "UiFramework:general.overflow",
|
|
196
|
+
items: overflowItems,
|
|
197
|
+
direction: this.props.expandsTo,
|
|
198
|
+
});
|
|
199
|
+
overflowItemDef.overflow = true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
// Populate the toolbar items
|
|
203
|
+
const toolbarItems = actionItems.map((item, index) => {
|
|
204
|
+
return item.toolbarReactNode(index);
|
|
205
|
+
});
|
|
206
|
+
// istanbul ignore next - currently unsure how to trigger sizing/resizing so overflow is never populated
|
|
207
|
+
if (overflowItemDef)
|
|
208
|
+
toolbarItems.push(overflowItemDef.toolbarReactNode()); // eslint-disable-line deprecation/deprecation
|
|
209
|
+
return toolbarItems;
|
|
210
|
+
}
|
|
211
|
+
generateToolbarItems(itemList, size) {
|
|
212
|
+
this._dimension = (this.props.orientation === core_react_1.Orientation.Horizontal ? size.width : size.height);
|
|
213
|
+
// istanbul ignore next - since sizing is not working in unit test size and dimension always set to default of 42
|
|
214
|
+
if (this._dimension < this._minToolbarSize)
|
|
215
|
+
this._dimension = this._minToolbarSize;
|
|
216
|
+
return this.layoutToolbarItems(itemList);
|
|
217
|
+
}
|
|
218
|
+
hasVisibleItems(items) {
|
|
219
|
+
for (const item of items) {
|
|
220
|
+
// istanbul ignore else
|
|
221
|
+
if (item && item.isVisible) // eslint-disable-line deprecation/deprecation
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
// istanbul ignore next
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
render() {
|
|
228
|
+
// istanbul ignore next
|
|
229
|
+
if (0 === this.props.items.length || !this.hasVisibleItems(this.props.items)) {
|
|
230
|
+
core_bentley_1.Logger.logTrace(UiFramework_1.UiFramework.loggerCategory(this), `---> nothing to render for ${this._toolbarId} `);
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
core_bentley_1.Logger.logTrace(UiFramework_1.UiFramework.loggerCategory(this), `---> render ${this._toolbarId} `);
|
|
234
|
+
return (React.createElement(core_react_1.ResizableContainerObserver, { onResize: this._onResize },
|
|
235
|
+
React.createElement(appui_layout_react_1.Toolbar // eslint-disable-line deprecation/deprecation
|
|
236
|
+
, { style: this.props.style, className: this.props.className, expandsTo: this.props.expandsTo, panelAlignment: this.props.panelAlignment, items: React.createElement(React.Fragment, null, this.state.items) })));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
exports.Toolbar = Toolbar;
|
|
240
|
+
//# sourceMappingURL=Toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/Toolbar.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAE7C,kDAAgH;AAChH,kEAAoG;AACpG,uEAAoE;AAEpE,2DAAwD;AAGxD,2EAAwE;AACxE,gDAA6C;AAC7C,2CAA2C;AA6B3C;;GAEG;AACH,MAAa,OAAQ,SAAQ,KAAK,CAAC,SAAqC;IAItE,YAAmB,KAAmB;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QAJP,eAAU,GAAW,CAAC,CAAC;QACvB,oBAAe,GAAG,CAAC,yCAAmB,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;QAC9D,eAAU,GAAG,KAAK,CAAC;QAuGnB,uBAAkB,GAAG,CAAC,IAAqB,EAAQ,EAAE;YAC3D,IAAI,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;gBACpD,UAAU,CAAC,GAAG,EAAE;oBACd,uFAAuF;oBACvF,MAAM,KAAK,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,iBAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;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5E,qBAAM,CAAC,QAAQ,CAAC,yBAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,+BAA+B,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;YACrG,OAAO,IAAI,CAAC;SACb;QAED,qBAAM,CAAC,QAAQ,CAAC,yBAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,eAAe,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACrF,OAAO,CACL,oBAAC,uCAA0B,IAAC,QAAQ,EAAE,IAAI,CAAC,SAAS;YAClD,oBAAC,4BAAU,CAAC,8CAA8C;gBACxD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,EACzC,KAAK,EACH,0CACG,IAAI,CAAC,KAAK,CAAC,KAAK,CAChB,GAEL,CACyB,CAC9B,CAAC;IACJ,CAAC;CACF;AAjQD,0BAiQC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Item\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { UiSyncEventArgs } from \"@itwin/appui-abstract\";\r\nimport { CommonProps, NoChildrenProps, Orientation, ResizableContainerObserver, Size } from \"@itwin/core-react\";\r\nimport { Direction, Toolbar as NZ_Toolbar, ToolbarPanelAlignment } from \"@itwin/appui-layout-react\";\r\nimport { ActionButtonItemDef } from \"../shared/ActionButtonItemDef\";\r\nimport { AnyItemDef } from \"../shared/AnyItemDef\";\r\nimport { CustomItemDef } from \"../shared/CustomItemDef\";\r\nimport { ItemDefBase } from \"../shared/ItemDefBase\";\r\nimport { ItemList } from \"../shared/ItemMap\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { GroupItemDef } from \"./GroupItem\";\r\n\r\n/** Properties of [[Toolbar]] component. An ancestor of this toolbar must provide the WidgetOpacityContext.\r\n * @internal\r\n */\r\nexport interface ToolbarProps extends CommonProps, NoChildrenProps {\r\n /** Items of the toolbar. */\r\n items: ItemList;\r\n /** Orientation of the toolbar. */\r\n orientation: Orientation;\r\n /** Logging and debugging Id */\r\n toolbarId?: string;\r\n /** Describes to which direction the history/panel items are expanded. Defaults to: [[Direction.Bottom]] */\r\n expandsTo?: Direction; // eslint-disable-line deprecation/deprecation\r\n /** Describes how expanded panels are aligned. Defaults to: [[ToolbarPanelAlignment.Start]] */\r\n panelAlignment?: ToolbarPanelAlignment; // eslint-disable-line deprecation/deprecation\r\n /** initial size */\r\n initialSize?: Size;\r\n}\r\n\r\n/** State of [[Toolbar]] component.\r\n * @internal\r\n */\r\ninterface ToolbarState {\r\n width: number;\r\n height: number;\r\n items: React.ReactNode;\r\n}\r\n\r\n/** Toolbar React component.\r\n * @internal\r\n */\r\nexport class Toolbar extends React.Component<ToolbarProps, ToolbarState> {\r\n private _dimension: number = 0;\r\n private _minToolbarSize = (ActionButtonItemDef.defaultButtonSize + 2);\r\n private _isMounted = false;\r\n public constructor(props: ToolbarProps) {\r\n super(props);\r\n\r\n const itemList = this.props.items;\r\n\r\n // Filter on GroupItemDef\r\n itemList.forEach((item: ItemDefBase) => {\r\n if (item instanceof GroupItemDef) {\r\n // istanbul ignore else\r\n if (!item.directionExplicit && this.props.expandsTo !== undefined) // eslint-disable-line deprecation/deprecation\r\n item.direction = this.props.expandsTo; // eslint-disable-line deprecation/deprecation\r\n }\r\n });\r\n\r\n // pick a reasonable initial size, when zone layout occurs a resize event will trigger to adjust this size.\r\n let width = (ActionButtonItemDef.defaultButtonSize + 2) * 3;\r\n let height = width;\r\n\r\n // istanbul ignore next\r\n if (props.initialSize) {\r\n width = props.initialSize.width;\r\n height = props.initialSize.height;\r\n }\r\n\r\n const items = this.generateToolbarItems(this.props.items, new Size(width, height));\r\n\r\n // let's set the default size big enough to hold a single button.\r\n this.state = {\r\n width,\r\n height,\r\n items,\r\n };\r\n }\r\n\r\n private get _toolbarId(): string {\r\n return this.props.toolbarId ? this.props.toolbarId : \"unknown\";\r\n }\r\n\r\n public override componentDidMount() {\r\n this._isMounted = true;\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(this._handleSyncUiEvent);\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(this._handleSyncUiEvent);\r\n }\r\n\r\n public override componentDidUpdate(prevProps: ToolbarProps, _prevState: ToolbarState) {\r\n if (this.props.items !== prevProps.items) {\r\n // if sync event changed number of displayable buttons layout the toolbar and re-render\r\n const items = this.generateToolbarItems(this.props.items, new Size(this.state.width, this.state.height));\r\n this.setState({ items });\r\n }\r\n }\r\n\r\n private setCurrentStateValues(item: ItemDefBase): boolean {\r\n // if a stateFunc is specified call it to get current state values\r\n // istanbul ignore else\r\n if (item.stateFunc) { // eslint-disable-line deprecation/deprecation\r\n const itemState = item.stateFunc({ // eslint-disable-line deprecation/deprecation\r\n isVisible: item.isVisible, isEnabled: item.isEnabled, isPressed: item.isPressed, isActive: item.isActive, // eslint-disable-line deprecation/deprecation\r\n });\r\n item.isVisible = !!itemState.isVisible; // eslint-disable-line deprecation/deprecation\r\n item.isEnabled = !!itemState.isEnabled; // eslint-disable-line deprecation/deprecation\r\n item.isPressed = !!itemState.isPressed;\r\n item.isActive = !!itemState.isActive;\r\n return true;\r\n }\r\n // istanbul ignore next\r\n return false;\r\n }\r\n\r\n private _processSyncUiEvent(itemList: ItemList | ItemDefBase[] | AnyItemDef[] | undefined, args: UiSyncEventArgs): boolean {\r\n // istanbul ignore next\r\n if (!itemList || 0 === itemList.length)\r\n return false;\r\n\r\n let returnValue = false;\r\n\r\n // Review all the itemDefs to see if any are monitoring sync events in UiSyncEventArgs\r\n for (const item of itemList) {\r\n if (item.stateFunc && item.stateSyncIds && item.stateSyncIds.length > 0 && // eslint-disable-line deprecation/deprecation\r\n item.stateSyncIds.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) { // eslint-disable-line deprecation/deprecation\r\n if (item instanceof GroupItemDef) {\r\n this.setCurrentStateValues(item);\r\n this._processSyncUiEvent(item.items, args);\r\n } else {\r\n this.setCurrentStateValues(item);\r\n }\r\n returnValue = true;\r\n } else {\r\n // istanbul ignore next\r\n if (item instanceof GroupItemDef) {\r\n if (this._processSyncUiEvent(item.items, args))\r\n returnValue = true;\r\n }\r\n }\r\n }\r\n return returnValue;\r\n }\r\n\r\n private _handleSyncUiEvent = (args: UiSyncEventArgs): void => {\r\n if (this._processSyncUiEvent(this.props.items, args)) {\r\n setTimeout(() => {\r\n // if sync event changed number of displayable buttons layout the toolbar and re-render\r\n const items = this.generateToolbarItems(this.props.items, new Size(this.state.width, this.state.height));\r\n if (this._isMounted)\r\n this.setState({ items });\r\n });\r\n }\r\n };\r\n\r\n private layoutToolbarItems(itemList: ItemList): React.ReactNode[] {\r\n // istanbul ignore next -\r\n if (0 === itemList.length)\r\n return [];\r\n\r\n Logger.logInfo(UiFramework.loggerCategory(this), `Available space for toolbar [${this._toolbarId}] = ${this._dimension}`);\r\n\r\n const actionItems = new Array<ActionButtonItemDef>();\r\n let itemDimensions = 0;\r\n\r\n // Filter on ActionButtonItemDef\r\n itemList.forEach((item: ItemDefBase) => {\r\n // istanbul ignore else\r\n if (item.isVisible) { // eslint-disable-line deprecation/deprecation\r\n // istanbul ignore else\r\n if (item instanceof ActionButtonItemDef) {\r\n actionItems.push(item);\r\n }\r\n }\r\n });\r\n\r\n // Populate the overflow button\r\n let overflowItemDef: GroupItemDef | undefined;\r\n if (actionItems.length > 1) {\r\n // Get the item dimensions\r\n actionItems.forEach((item: ActionButtonItemDef) => {\r\n const itemSize = item.getDimension(this.props.orientation) + 1;\r\n itemDimensions += itemSize;\r\n Logger.logTrace(UiFramework.loggerCategory(this), ` Item [${item.id ? item.id : /* istanbul ignore next */ item.label}] has a size of ${itemSize} cumulative size=${itemDimensions}.`);\r\n });\r\n\r\n Logger.logInfo(UiFramework.loggerCategory(this), ` Needed toolbar size [${this._toolbarId}] = ${itemDimensions}`);\r\n\r\n // istanbul ignore next - currently unable to set size in unit test\r\n const padding = 2; // used just to insure button will fall inside tool box\r\n if (itemDimensions > (this._dimension - padding)) {\r\n const overflowItems: AnyItemDef[] = [];\r\n const lastItemIndex = actionItems.length - 1;\r\n let singleItemSize = 0;\r\n for (let index = lastItemIndex; index >= 0; index--) {\r\n // istanbul ignore next\r\n if (actionItems[index] instanceof CustomItemDef)\r\n continue;\r\n if (0 === singleItemSize)\r\n singleItemSize = actionItems[index].getDimension(this.props.orientation);\r\n\r\n const deletedItems = actionItems.splice(index, 1);\r\n // istanbul ignore else\r\n if (deletedItems.length === 1) {\r\n const item = deletedItems[0];\r\n overflowItems.unshift(item);\r\n Logger.logTrace(UiFramework.loggerCategory(this), ` * Item [${item.id ? item.id : /* istanbul ignore next */ item.label}] put into overflow items.`);\r\n\r\n let currentWidth = 0;\r\n actionItems.forEach((itemDef) => currentWidth += (itemDef.getDimension(this.props.orientation) + 1));\r\n itemDimensions = (currentWidth + singleItemSize);\r\n if (itemDimensions < (this._dimension - padding))\r\n break;\r\n }\r\n }\r\n\r\n overflowItemDef = new GroupItemDef({\r\n groupId: `overflow-group-${itemDimensions}-${actionItems.length}-${overflowItems.length}`,\r\n labelKey: \"UiFramework:general.overflow\",\r\n items: overflowItems,\r\n direction: this.props.expandsTo,\r\n });\r\n overflowItemDef.overflow = true;\r\n }\r\n }\r\n\r\n // Populate the toolbar items\r\n const toolbarItems = actionItems.map((item: ActionButtonItemDef, index: number) => {\r\n return item.toolbarReactNode(index);\r\n });\r\n\r\n // istanbul ignore next - currently unsure how to trigger sizing/resizing so overflow is never populated\r\n if (overflowItemDef)\r\n toolbarItems.push(overflowItemDef.toolbarReactNode()); // eslint-disable-line deprecation/deprecation\r\n\r\n return toolbarItems;\r\n }\r\n\r\n private generateToolbarItems(itemList: ItemList, size: Size): React.ReactNode {\r\n this._dimension = (this.props.orientation === Orientation.Horizontal ? size.width : size.height);\r\n // istanbul ignore next - since sizing is not working in unit test size and dimension always set to default of 42\r\n if (this._dimension < this._minToolbarSize)\r\n this._dimension = this._minToolbarSize;\r\n\r\n return this.layoutToolbarItems(itemList);\r\n }\r\n\r\n // istanbul ignore next - currently unable to replicate resizing in unit test\r\n private _onResize = (width: number | undefined, height: number | undefined) => {\r\n width = width ?? this._minToolbarSize;\r\n height = height ?? this._minToolbarSize;\r\n // do allow toolbar to go to a size that doesn't show at least one button;\r\n if (width < this._minToolbarSize) width = this._minToolbarSize;\r\n if (height < this._minToolbarSize) height = this._minToolbarSize;\r\n if (this.state.width !== width || this.state.height !== height) {\r\n const items = this.generateToolbarItems(this.props.items, new Size(width, height));\r\n if (this._isMounted)\r\n this.setState({ width, height, items });\r\n }\r\n };\r\n\r\n private hasVisibleItems(items: ItemList) {\r\n for (const item of items) {\r\n // istanbul ignore else\r\n if (item && item.isVisible) // eslint-disable-line deprecation/deprecation\r\n return true;\r\n }\r\n // istanbul ignore next\r\n return false;\r\n }\r\n\r\n public override render() {\r\n // istanbul ignore next\r\n if (0 === this.props.items.length || !this.hasVisibleItems(this.props.items)) {\r\n Logger.logTrace(UiFramework.loggerCategory(this), `---> nothing to render for ${this._toolbarId} `);\r\n return null;\r\n }\r\n\r\n Logger.logTrace(UiFramework.loggerCategory(this), `---> render ${this._toolbarId} `);\r\n return (\r\n <ResizableContainerObserver onResize={this._onResize}>\r\n <NZ_Toolbar // eslint-disable-line deprecation/deprecation\r\n style={this.props.style}\r\n className={this.props.className}\r\n expandsTo={this.props.expandsTo}\r\n panelAlignment={this.props.panelAlignment}\r\n items={\r\n <>\r\n {this.state.items}\r\n </>\r\n }\r\n />\r\n </ResizableContainerObserver>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAIH,OAAO,EACS,iBAAiB,EAAmF,kBAAkB,EAAE,YAAY,EACnJ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolbarComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAIH,OAAO,EACS,iBAAiB,EAAmF,kBAAkB,EAAE,YAAY,EACnJ,MAAM,uBAAuB,CAAC;AA0N/B;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,KAAK,EAAE,YAAY,CAAC;IACpB,2BAA2B;IAC3B,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,sBAAsB,eA+C5D"}
|
|
@@ -13,11 +13,14 @@ const core_bentley_1 = require("@itwin/core-bentley");
|
|
|
13
13
|
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
14
14
|
const core_react_1 = require("@itwin/core-react");
|
|
15
15
|
const components_react_1 = require("@itwin/components-react");
|
|
16
|
+
const appui_layout_react_1 = require("@itwin/appui-layout-react");
|
|
16
17
|
const FrontstageManager_1 = require("../frontstage/FrontstageManager");
|
|
18
|
+
const useFrameworkVersion_1 = require("../hooks/useFrameworkVersion");
|
|
17
19
|
const SyncUiEventDispatcher_1 = require("../syncui/SyncUiEventDispatcher");
|
|
18
20
|
const UiFramework_1 = require("../UiFramework");
|
|
19
21
|
const UiShowHideManager_1 = require("../utils/UiShowHideManager");
|
|
20
22
|
const DragInteraction_1 = require("./DragInteraction");
|
|
23
|
+
const ToolbarHelper_1 = require("./ToolbarHelper");
|
|
21
24
|
const useDefaultToolbarItems_1 = require("./useDefaultToolbarItems");
|
|
22
25
|
const useUiItemsProviderToolbarItems_1 = require("./useUiItemsProviderToolbarItems");
|
|
23
26
|
/** Private function to set up sync event monitoring of toolbar items */
|
|
@@ -215,12 +218,33 @@ function ToolbarComposer(props) {
|
|
|
215
218
|
const addonSyncIdsOfInterest = React.useMemo(() => appui_abstract_1.ToolbarItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);
|
|
216
219
|
useToolbarItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);
|
|
217
220
|
const toolbarItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);
|
|
218
|
-
const toolbarOrientation = orientation === appui_abstract_1.ToolbarOrientation.Horizontal ? core_react_1.Orientation.Horizontal : core_react_1.Orientation.Vertical;
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
+
const toolbarOrientation = orientation === appui_abstract_1.ToolbarOrientation.Horizontal ? core_react_1.Orientation.Horizontal : core_react_1.Orientation.Vertical; // eslint-disable-line deprecation/deprecation
|
|
222
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
223
|
+
const expandsTo = toolbarOrientation === core_react_1.Orientation.Horizontal ? appui_layout_react_1.Direction.Bottom : usage === appui_abstract_1.ToolbarUsage.ViewNavigation ? appui_layout_react_1.Direction.Left : appui_layout_react_1.Direction.Right;
|
|
224
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
225
|
+
const panelAlignment = (toolbarOrientation === core_react_1.Orientation.Horizontal && usage === appui_abstract_1.ToolbarUsage.ViewNavigation) ? appui_layout_react_1.ToolbarPanelAlignment.End : appui_layout_react_1.ToolbarPanelAlignment.Start;
|
|
226
|
+
const version = (0, useFrameworkVersion_1.useFrameworkVersion)(); // eslint-disable-line deprecation/deprecation
|
|
221
227
|
const isDragEnabled = React.useContext(DragInteraction_1.ToolbarDragInteractionContext);
|
|
222
228
|
const useProximityOpacity = useProximityOpacitySetting();
|
|
229
|
+
if ("1" === version) {
|
|
230
|
+
return (React.createElement(ToolbarUi1, { items: toolbarItems, expandsTo: expandsTo, panelAlignment: panelAlignment }));
|
|
231
|
+
}
|
|
223
232
|
return React.createElement(components_react_1.ToolbarWithOverflow, { expandsTo: expandsTo, panelAlignment: panelAlignment, items: toolbarItems, useDragInteraction: isDragEnabled, toolbarOpacitySetting: useProximityOpacity && !UiFramework_1.UiFramework.isMobile() ? components_react_1.ToolbarOpacitySetting.Proximity : /* istanbul ignore next */ components_react_1.ToolbarOpacitySetting.Defaults });
|
|
224
233
|
}
|
|
225
234
|
exports.ToolbarComposer = ToolbarComposer;
|
|
235
|
+
/** Toolbar rendered in 1.0 mode.
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
const ToolbarUi1 = React.memo(function ToolbarUi1({ items, expandsTo, panelAlignment, }) {
|
|
239
|
+
const createReactNodes = () => {
|
|
240
|
+
if (0 === items.length)
|
|
241
|
+
return null;
|
|
242
|
+
const createdNodes = items.map((item) => {
|
|
243
|
+
return ToolbarHelper_1.ToolbarHelper.createNodeForToolbarItem(item);
|
|
244
|
+
});
|
|
245
|
+
return createdNodes;
|
|
246
|
+
};
|
|
247
|
+
return React.createElement(appui_layout_react_1.Toolbar // eslint-disable-line deprecation/deprecation
|
|
248
|
+
, { expandsTo: expandsTo, panelAlignment: panelAlignment, items: React.createElement(React.Fragment, null, createReactNodes()) });
|
|
249
|
+
});
|
|
226
250
|
//# sourceMappingURL=ToolbarComposer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAC7C,0DAE+B;AAC/B,kDAAgD;AAChD,8DAAoI;AACpI,uEAA4F;AAC5F,2EAAwE;AACxE,gDAA6C;AAC7C,kEAA+D;AAC/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AC,yBAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,wCAAqB,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,wCAAqB,CAAC,QAAQ,GACnK,CAAC;AACL,CAAC;AAlCD,0CAkCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport {\r\n ActionButton, CommonToolbarItem, ConditionalBooleanValue, GroupButton, ToolbarItemsManager, ToolbarItemUtilities, ToolbarOrientation, ToolbarUsage, UiSyncEventArgs,\r\n} from \"@itwin/appui-abstract\";\r\nimport { Orientation } from \"@itwin/core-react\";\r\nimport { Direction, ToolbarItem, ToolbarOpacitySetting, ToolbarPanelAlignment, ToolbarWithOverflow } from \"@itwin/components-react\";\r\nimport { FrontstageManager, ToolActivatedEventArgs } from \"../frontstage/FrontstageManager\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { UiShowHideManager } from \"../utils/UiShowHideManager\";\r\nimport { ToolbarDragInteractionContext } from \"./DragInteraction\";\r\nimport { useDefaultToolbarItems } from \"./useDefaultToolbarItems\";\r\nimport { useUiItemsProviderToolbarItems } from \"./useUiItemsProviderToolbarItems\";\r\n\r\n/** Private function to set up sync event monitoring of toolbar items */\r\nfunction useToolbarItemSyncEffect(uiDataProvider: ToolbarItemsManager, syncIdsOfInterest: string[]) {\r\n React.useEffect(() => {\r\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\r\n if (0 === syncIdsOfInterest.length)\r\n return;\r\n\r\n // istanbul ignore else\r\n if (syncIdsOfInterest.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // process each item that has interest\r\n uiDataProvider.refreshAffectedItems(args.eventIds);\r\n }\r\n };\r\n\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\r\n return () => {\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\r\n };\r\n }, [uiDataProvider, syncIdsOfInterest, uiDataProvider.items]);\r\n\r\n React.useEffect(() => {\r\n const handleToolActivatedEvent = ({ toolId }: ToolActivatedEventArgs) => {\r\n uiDataProvider.setActiveToolId(toolId);\r\n };\r\n\r\n FrontstageManager.onToolActivatedEvent.addListener(handleToolActivatedEvent);\r\n\r\n return () => {\r\n FrontstageManager.onToolActivatedEvent.removeListener(handleToolActivatedEvent);\r\n };\r\n }, [uiDataProvider, uiDataProvider.items]);\r\n}\r\n\r\nfunction nestedAddItemToSpecifiedParentGroup(items: ReadonlyArray<ActionButton | GroupButton>, groupChildren: Array<ActionButton | GroupButton>): Array<ActionButton | GroupButton> {\r\n const outItems: Array<ActionButton | GroupButton> = [];\r\n for (const toolbarItem of items) {\r\n if (!ToolbarItemUtilities.isGroupButton(toolbarItem)) {\r\n outItems.push(toolbarItem);\r\n continue;\r\n }\r\n\r\n const newChildren: Array<ActionButton | GroupButton> = nestedAddItemToSpecifiedParentGroup(toolbarItem.items, groupChildren);\r\n const foundIndices: number[] = [];\r\n\r\n groupChildren.forEach((entry, index) => {\r\n if (entry.parentToolGroupId === toolbarItem.id) {\r\n foundIndices.push(index);\r\n }\r\n });\r\n\r\n // istanbul ignore else\r\n if (foundIndices.length) {\r\n // process in reverse order so groupChildren can be reduced as we find matches\r\n foundIndices.sort(\r\n // istanbul ignore next\r\n (a, b) => a - b,\r\n ).reverse().forEach((foundIndex) => {\r\n newChildren.push(groupChildren[foundIndex]);\r\n groupChildren.splice(foundIndex);\r\n });\r\n }\r\n\r\n outItems.push({ ...toolbarItem, items: newChildren });\r\n }\r\n return outItems;\r\n}\r\n\r\nfunction addItemToSpecifiedParentGroup(items: readonly CommonToolbarItem[], groupChildren: Array<ActionButton | GroupButton>): CommonToolbarItem[] {\r\n const outItems: CommonToolbarItem[] = [];\r\n for (const toolbarItem of items) {\r\n if (!ToolbarItemUtilities.isGroupButton(toolbarItem)) {\r\n outItems.push(toolbarItem);\r\n continue;\r\n }\r\n\r\n const newChildren: Array<ActionButton | GroupButton> = nestedAddItemToSpecifiedParentGroup(toolbarItem.items, groupChildren);\r\n const foundIndices: number[] = [];\r\n\r\n groupChildren.forEach((entry, index) => {\r\n if (entry.parentToolGroupId === toolbarItem.id) {\r\n foundIndices.push(index);\r\n }\r\n });\r\n\r\n // istanbul ignore else\r\n if (foundIndices.length) {\r\n // process in reverse order so groupChildren can be reduced as we find matches\r\n foundIndices.sort(\r\n // istanbul ignore next\r\n (a, b) => a - b,\r\n ).reverse().forEach((foundIndex) => {\r\n newChildren.push(groupChildren[foundIndex]);\r\n groupChildren.splice(foundIndex);\r\n });\r\n }\r\n\r\n outItems.push({ ...toolbarItem, items: newChildren });\r\n }\r\n return outItems;\r\n}\r\n\r\nfunction cloneGroup(inGroup: GroupButton): GroupButton {\r\n const childItems: Array<ActionButton | GroupButton> = [];\r\n inGroup.items.forEach((item) => {\r\n if (ToolbarItemUtilities.isGroupButton(item))\r\n childItems.push(cloneGroup(item));\r\n else\r\n childItems.push(item);\r\n });\r\n\r\n const clonedGroup = { ...inGroup, items: childItems };\r\n return clonedGroup;\r\n}\r\n\r\nfunction getItemSortValue(item: ToolbarItem) {\r\n const groupValue = undefined === item.groupPriority ? 0 : /* istanbul ignore next */ item.groupPriority;\r\n return groupValue * 10000 + item.itemPriority;\r\n}\r\n\r\nfunction getSortedChildren(group: GroupButton): ReadonlyArray<ActionButton | GroupButton> {\r\n const sortedChildren = group.items\r\n .filter((item) => !(ConditionalBooleanValue.getValue(item.isHidden)))\r\n .sort((a, b) => getItemSortValue(a) - getItemSortValue(b))\r\n .map((i) => {\r\n if (ToolbarItemUtilities.isGroupButton(i)) {\r\n return { ...i, items: getSortedChildren(i) };\r\n }\r\n return i;\r\n });\r\n return sortedChildren;\r\n}\r\n\r\n/** local function to combine items from Stage and from Extensions */\r\nfunction combineItems(defaultItems: ReadonlyArray<CommonToolbarItem>, addonItems: ReadonlyArray<CommonToolbarItem>) {\r\n let items: CommonToolbarItem[] = [];\r\n const groupChildren: Array<ActionButton | GroupButton> = [];\r\n\r\n // istanbul ignore else\r\n if (defaultItems.length) {\r\n defaultItems.forEach((srcItem: CommonToolbarItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n // if the default item is a group that an addon may insert into copy it so we don't mess with original\r\n const toolbarItem = ToolbarItemUtilities.isGroupButton(srcItem) ? cloneGroup(srcItem) : srcItem;\r\n if (toolbarItem.parentToolGroupId && (ToolbarItemUtilities.isGroupButton(toolbarItem) || ToolbarItemUtilities.isActionButton(toolbarItem)))\r\n groupChildren.push(toolbarItem);\r\n else\r\n items.push(toolbarItem);\r\n }\r\n });\r\n }\r\n // istanbul ignore else\r\n if (addonItems.length) {\r\n addonItems.forEach((srcItem: CommonToolbarItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n // if the default item is a group that an addon may insert into copy it so we don't mess with original\r\n const toolbarItem = ToolbarItemUtilities.isGroupButton(srcItem) ? cloneGroup(srcItem) : srcItem;\r\n if (toolbarItem.parentToolGroupId && (ToolbarItemUtilities.isGroupButton(toolbarItem) || ToolbarItemUtilities.isActionButton(toolbarItem)))\r\n groupChildren.push(toolbarItem);\r\n else\r\n items.push(toolbarItem);\r\n }\r\n });\r\n }\r\n\r\n // if an item from an addon has specified a parent group then try to find it and insert it. If no parent is found, add item at root level.\r\n if (groupChildren.length) {\r\n items = addItemToSpecifiedParentGroup(items, groupChildren);\r\n\r\n if (groupChildren.length) {\r\n groupChildren.forEach((toolbarItem: ActionButton | GroupButton) => {\r\n Logger.logWarning(\"ToolbarComposer\", `Requested Parent Group [${toolbarItem.parentToolGroupId!}] not found, so item [${toolbarItem.id}] is added directly to toolbar.`);\r\n items.push(toolbarItem);\r\n });\r\n }\r\n }\r\n\r\n const availableItems = items\r\n .filter((item) => !(ConditionalBooleanValue.getValue(item.isHidden)))\r\n .sort((a, b) => getItemSortValue(a) - getItemSortValue(b))\r\n .map((i) => {\r\n if (ToolbarItemUtilities.isGroupButton(i)) {\r\n return { ...i, items: getSortedChildren(i) };\r\n }\r\n return i;\r\n });\r\n\r\n return availableItems;\r\n}\r\n\r\nconst useProximityOpacitySetting = () => {\r\n const [proximityOpacity, setProximityOpacity] = React.useState(UiShowHideManager.useProximityOpacity);\r\n React.useEffect(() => {\r\n // istanbul ignore next\r\n const handleUiVisibilityChanged = () => {\r\n setProximityOpacity(UiShowHideManager.useProximityOpacity);\r\n };\r\n UiFramework.onUiVisibilityChanged.addListener(handleUiVisibilityChanged);\r\n return () => {\r\n UiFramework.onUiVisibilityChanged.removeListener(handleUiVisibilityChanged);\r\n };\r\n }, []);\r\n return proximityOpacity;\r\n};\r\n\r\n/** Properties for the [[ToolbarComposer]] React components\r\n * @public\r\n */\r\nexport interface ExtensibleToolbarProps {\r\n items: CommonToolbarItem[];\r\n usage: ToolbarUsage;\r\n /** Toolbar orientation. */\r\n orientation: ToolbarOrientation;\r\n}\r\n\r\n/**\r\n * Toolbar that is populated and maintained by item managers.\r\n * @public\r\n */\r\nexport function ToolbarComposer(props: ExtensibleToolbarProps) {\r\n const { usage, orientation } = props;\r\n\r\n const [defaultItemsManager, setDefaultItemsManager] = React.useState(() => new ToolbarItemsManager(props.items));\r\n React.useEffect(() => {\r\n setDefaultItemsManager(new ToolbarItemsManager(props.items));\r\n }, [props.items]); // eslint-disable-line react-hooks/exhaustive-deps\r\n\r\n // process default items\r\n const defaultItems = useDefaultToolbarItems(defaultItemsManager);\r\n const syncIdsOfInterest = React.useMemo(() => ToolbarItemsManager.getSyncIdsOfInterest(defaultItems), [defaultItems]);\r\n useToolbarItemSyncEffect(defaultItemsManager, syncIdsOfInterest);\r\n\r\n // process items from addon UI providers\r\n const [addonItemsManager] = React.useState(() => new ToolbarItemsManager());\r\n const addonItems = useUiItemsProviderToolbarItems(addonItemsManager, usage, orientation);\r\n const addonSyncIdsOfInterest = React.useMemo(() => ToolbarItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);\r\n useToolbarItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);\r\n\r\n const toolbarItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);\r\n\r\n const toolbarOrientation = orientation === ToolbarOrientation.Horizontal ? Orientation.Horizontal : Orientation.Vertical;\r\n const expandsTo = toolbarOrientation === Orientation.Horizontal ? Direction.Bottom : usage === ToolbarUsage.ViewNavigation ? Direction.Left : Direction.Right;\r\n const panelAlignment = (toolbarOrientation === Orientation.Horizontal && usage === ToolbarUsage.ViewNavigation) ? ToolbarPanelAlignment.End : ToolbarPanelAlignment.Start;\r\n const isDragEnabled = React.useContext(ToolbarDragInteractionContext);\r\n const useProximityOpacity = useProximityOpacitySetting();\r\n\r\n return <ToolbarWithOverflow\r\n expandsTo={expandsTo}\r\n panelAlignment={panelAlignment}\r\n items={toolbarItems}\r\n useDragInteraction={isDragEnabled}\r\n toolbarOpacitySetting={useProximityOpacity && !UiFramework.isMobile() ? ToolbarOpacitySetting.Proximity : /* istanbul ignore next */ ToolbarOpacitySetting.Defaults}\r\n />;\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ToolbarComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarComposer.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAA6C;AAC7C,0DAE+B;AAC/B,kDAAgD;AAChD,8DAAkG;AAClG,kEAAsF;AACtF,uEAA4F;AAC5F,sEAAmE;AACnE,2EAAwE;AACxE,gDAA6C;AAC7C,kEAA+D;AAC/D,uDAAkE;AAClE,mDAAgD;AAChD,qEAAkE;AAClE,qFAAkF;AAElF,wEAAwE;AACxE,SAAS,wBAAwB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,cAAc,GAC9B,CACH,CAAC;KACH;IAED,OAAO,oBAAC,sCAAmB,IACzB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,YAAY,EACnB,kBAAkB,EAAE,aAAa,EACjC,qBAAqB,EAAE,mBAAmB,IAAI,CAAC,yBAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,wCAAqB,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,wCAAqB,CAAC,QAAQ,GACnK,CAAC;AACL,CAAC;AA/CD,0CA+CC;AAQD;;GAEG;AACH,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAkB,SAAS,UAAU,CAAC,EACjE,KAAK,EACL,SAAS,EACT,cAAc,GACf;IACC,MAAM,gBAAgB,GAAG,GAAoB,EAAE;QAC7C,IAAI,CAAC,KAAK,KAAK,CAAC,MAAM;YACpB,OAAO,IAAI,CAAC;QAEd,MAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAuB,EAAE,EAAE;YACzD,OAAO,6BAAa,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;QACH,OAAO,YAAY,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,oBAAC,4BAAO,CAAC,8CAA8C;QAC5D,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EACH,0CACG,gBAAgB,EAAE,CAClB,GAEL,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport {\r\n ActionButton, CommonToolbarItem, ConditionalBooleanValue, GroupButton, ToolbarItemsManager, ToolbarItemUtilities, ToolbarOrientation, ToolbarUsage, UiSyncEventArgs,\r\n} from \"@itwin/appui-abstract\";\r\nimport { Orientation } from \"@itwin/core-react\";\r\nimport { ToolbarItem, ToolbarOpacitySetting, ToolbarWithOverflow } from \"@itwin/components-react\";\r\nimport { Direction, Toolbar, ToolbarPanelAlignment } from \"@itwin/appui-layout-react\";\r\nimport { FrontstageManager, ToolActivatedEventArgs } from \"../frontstage/FrontstageManager\";\r\nimport { useFrameworkVersion } from \"../hooks/useFrameworkVersion\";\r\nimport { SyncUiEventDispatcher } from \"../syncui/SyncUiEventDispatcher\";\r\nimport { UiFramework } from \"../UiFramework\";\r\nimport { UiShowHideManager } from \"../utils/UiShowHideManager\";\r\nimport { ToolbarDragInteractionContext } from \"./DragInteraction\";\r\nimport { ToolbarHelper } from \"./ToolbarHelper\";\r\nimport { useDefaultToolbarItems } from \"./useDefaultToolbarItems\";\r\nimport { useUiItemsProviderToolbarItems } from \"./useUiItemsProviderToolbarItems\";\r\n\r\n/** Private function to set up sync event monitoring of toolbar items */\r\nfunction useToolbarItemSyncEffect(uiDataProvider: ToolbarItemsManager, syncIdsOfInterest: string[]) {\r\n React.useEffect(() => {\r\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\r\n if (0 === syncIdsOfInterest.length)\r\n return;\r\n\r\n // istanbul ignore else\r\n if (syncIdsOfInterest.some((value: string): boolean => args.eventIds.has(value.toLowerCase()))) {\r\n // process each item that has interest\r\n uiDataProvider.refreshAffectedItems(args.eventIds);\r\n }\r\n };\r\n\r\n SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\r\n return () => {\r\n SyncUiEventDispatcher.onSyncUiEvent.removeListener(handleSyncUiEvent);\r\n };\r\n }, [uiDataProvider, syncIdsOfInterest, uiDataProvider.items]);\r\n\r\n React.useEffect(() => {\r\n const handleToolActivatedEvent = ({ toolId }: ToolActivatedEventArgs) => {\r\n uiDataProvider.setActiveToolId(toolId);\r\n };\r\n\r\n FrontstageManager.onToolActivatedEvent.addListener(handleToolActivatedEvent);\r\n\r\n return () => {\r\n FrontstageManager.onToolActivatedEvent.removeListener(handleToolActivatedEvent);\r\n };\r\n }, [uiDataProvider, uiDataProvider.items]);\r\n}\r\n\r\nfunction nestedAddItemToSpecifiedParentGroup(items: ReadonlyArray<ActionButton | GroupButton>, groupChildren: Array<ActionButton | GroupButton>): Array<ActionButton | GroupButton> {\r\n const outItems: Array<ActionButton | GroupButton> = [];\r\n for (const toolbarItem of items) {\r\n if (!ToolbarItemUtilities.isGroupButton(toolbarItem)) {\r\n outItems.push(toolbarItem);\r\n continue;\r\n }\r\n\r\n const newChildren: Array<ActionButton | GroupButton> = nestedAddItemToSpecifiedParentGroup(toolbarItem.items, groupChildren);\r\n const foundIndices: number[] = [];\r\n\r\n groupChildren.forEach((entry, index) => {\r\n if (entry.parentToolGroupId === toolbarItem.id) {\r\n foundIndices.push(index);\r\n }\r\n });\r\n\r\n // istanbul ignore else\r\n if (foundIndices.length) {\r\n // process in reverse order so groupChildren can be reduced as we find matches\r\n foundIndices.sort(\r\n // istanbul ignore next\r\n (a, b) => a - b,\r\n ).reverse().forEach((foundIndex) => {\r\n newChildren.push(groupChildren[foundIndex]);\r\n groupChildren.splice(foundIndex);\r\n });\r\n }\r\n\r\n outItems.push({ ...toolbarItem, items: newChildren });\r\n }\r\n return outItems;\r\n}\r\n\r\nfunction addItemToSpecifiedParentGroup(items: readonly CommonToolbarItem[], groupChildren: Array<ActionButton | GroupButton>): CommonToolbarItem[] {\r\n const outItems: CommonToolbarItem[] = [];\r\n for (const toolbarItem of items) {\r\n if (!ToolbarItemUtilities.isGroupButton(toolbarItem)) {\r\n outItems.push(toolbarItem);\r\n continue;\r\n }\r\n\r\n const newChildren: Array<ActionButton | GroupButton> = nestedAddItemToSpecifiedParentGroup(toolbarItem.items, groupChildren);\r\n const foundIndices: number[] = [];\r\n\r\n groupChildren.forEach((entry, index) => {\r\n if (entry.parentToolGroupId === toolbarItem.id) {\r\n foundIndices.push(index);\r\n }\r\n });\r\n\r\n // istanbul ignore else\r\n if (foundIndices.length) {\r\n // process in reverse order so groupChildren can be reduced as we find matches\r\n foundIndices.sort(\r\n // istanbul ignore next\r\n (a, b) => a - b,\r\n ).reverse().forEach((foundIndex) => {\r\n newChildren.push(groupChildren[foundIndex]);\r\n groupChildren.splice(foundIndex);\r\n });\r\n }\r\n\r\n outItems.push({ ...toolbarItem, items: newChildren });\r\n }\r\n return outItems;\r\n}\r\n\r\nfunction cloneGroup(inGroup: GroupButton): GroupButton {\r\n const childItems: Array<ActionButton | GroupButton> = [];\r\n inGroup.items.forEach((item) => {\r\n if (ToolbarItemUtilities.isGroupButton(item))\r\n childItems.push(cloneGroup(item));\r\n else\r\n childItems.push(item);\r\n });\r\n\r\n const clonedGroup = { ...inGroup, items: childItems };\r\n return clonedGroup;\r\n}\r\n\r\nfunction getItemSortValue(item: ToolbarItem) {\r\n const groupValue = undefined === item.groupPriority ? 0 : /* istanbul ignore next */ item.groupPriority;\r\n return groupValue * 10000 + item.itemPriority;\r\n}\r\n\r\nfunction getSortedChildren(group: GroupButton): ReadonlyArray<ActionButton | GroupButton> {\r\n const sortedChildren = group.items\r\n .filter((item) => !(ConditionalBooleanValue.getValue(item.isHidden)))\r\n .sort((a, b) => getItemSortValue(a) - getItemSortValue(b))\r\n .map((i) => {\r\n if (ToolbarItemUtilities.isGroupButton(i)) {\r\n return { ...i, items: getSortedChildren(i) };\r\n }\r\n return i;\r\n });\r\n return sortedChildren;\r\n}\r\n\r\n/** local function to combine items from Stage and from Extensions */\r\nfunction combineItems(defaultItems: ReadonlyArray<CommonToolbarItem>, addonItems: ReadonlyArray<CommonToolbarItem>) {\r\n let items: CommonToolbarItem[] = [];\r\n const groupChildren: Array<ActionButton | GroupButton> = [];\r\n\r\n // istanbul ignore else\r\n if (defaultItems.length) {\r\n defaultItems.forEach((srcItem: CommonToolbarItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n // if the default item is a group that an addon may insert into copy it so we don't mess with original\r\n const toolbarItem = ToolbarItemUtilities.isGroupButton(srcItem) ? cloneGroup(srcItem) : srcItem;\r\n if (toolbarItem.parentToolGroupId && (ToolbarItemUtilities.isGroupButton(toolbarItem) || ToolbarItemUtilities.isActionButton(toolbarItem)))\r\n groupChildren.push(toolbarItem);\r\n else\r\n items.push(toolbarItem);\r\n }\r\n });\r\n }\r\n // istanbul ignore else\r\n if (addonItems.length) {\r\n addonItems.forEach((srcItem: CommonToolbarItem) => {\r\n if (-1 === items.findIndex((item) => item.id === srcItem.id)) {\r\n // if the default item is a group that an addon may insert into copy it so we don't mess with original\r\n const toolbarItem = ToolbarItemUtilities.isGroupButton(srcItem) ? cloneGroup(srcItem) : srcItem;\r\n if (toolbarItem.parentToolGroupId && (ToolbarItemUtilities.isGroupButton(toolbarItem) || ToolbarItemUtilities.isActionButton(toolbarItem)))\r\n groupChildren.push(toolbarItem);\r\n else\r\n items.push(toolbarItem);\r\n }\r\n });\r\n }\r\n\r\n // if an item from an addon has specified a parent group then try to find it and insert it. If no parent is found, add item at root level.\r\n if (groupChildren.length) {\r\n items = addItemToSpecifiedParentGroup(items, groupChildren);\r\n\r\n if (groupChildren.length) {\r\n groupChildren.forEach((toolbarItem: ActionButton | GroupButton) => {\r\n Logger.logWarning(\"ToolbarComposer\", `Requested Parent Group [${toolbarItem.parentToolGroupId!}] not found, so item [${toolbarItem.id}] is added directly to toolbar.`);\r\n items.push(toolbarItem);\r\n });\r\n }\r\n }\r\n\r\n const availableItems = items\r\n .filter((item) => !(ConditionalBooleanValue.getValue(item.isHidden)))\r\n .sort((a, b) => getItemSortValue(a) - getItemSortValue(b))\r\n .map((i) => {\r\n if (ToolbarItemUtilities.isGroupButton(i)) {\r\n return { ...i, items: getSortedChildren(i) };\r\n }\r\n return i;\r\n });\r\n\r\n return availableItems;\r\n}\r\n\r\nconst useProximityOpacitySetting = () => {\r\n const [proximityOpacity, setProximityOpacity] = React.useState(UiShowHideManager.useProximityOpacity);\r\n React.useEffect(() => {\r\n // istanbul ignore next\r\n const handleUiVisibilityChanged = () => {\r\n setProximityOpacity(UiShowHideManager.useProximityOpacity);\r\n };\r\n UiFramework.onUiVisibilityChanged.addListener(handleUiVisibilityChanged);\r\n return () => {\r\n UiFramework.onUiVisibilityChanged.removeListener(handleUiVisibilityChanged);\r\n };\r\n }, []);\r\n return proximityOpacity;\r\n};\r\n\r\n/** Properties for the [[ToolbarComposer]] React components\r\n * @public\r\n */\r\nexport interface ExtensibleToolbarProps {\r\n items: CommonToolbarItem[];\r\n usage: ToolbarUsage; // eslint-disable-line deprecation/deprecation\r\n /** Toolbar orientation. */\r\n orientation: ToolbarOrientation; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/**\r\n * Toolbar that is populated and maintained by item managers.\r\n * @public\r\n */\r\nexport function ToolbarComposer(props: ExtensibleToolbarProps) {\r\n const { usage, orientation } = props;\r\n\r\n const [defaultItemsManager, setDefaultItemsManager] = React.useState(() => new ToolbarItemsManager(props.items));\r\n React.useEffect(() => {\r\n setDefaultItemsManager(new ToolbarItemsManager(props.items));\r\n }, [props.items]); // eslint-disable-line react-hooks/exhaustive-deps\r\n\r\n // process default items\r\n const defaultItems = useDefaultToolbarItems(defaultItemsManager);\r\n const syncIdsOfInterest = React.useMemo(() => ToolbarItemsManager.getSyncIdsOfInterest(defaultItems), [defaultItems]);\r\n useToolbarItemSyncEffect(defaultItemsManager, syncIdsOfInterest);\r\n\r\n // process items from addon UI providers\r\n const [addonItemsManager] = React.useState(() => new ToolbarItemsManager());\r\n const addonItems = useUiItemsProviderToolbarItems(addonItemsManager, usage, orientation);\r\n const addonSyncIdsOfInterest = React.useMemo(() => ToolbarItemsManager.getSyncIdsOfInterest(addonItems), [addonItems]);\r\n useToolbarItemSyncEffect(addonItemsManager, addonSyncIdsOfInterest);\r\n\r\n const toolbarItems = React.useMemo(() => combineItems(defaultItems, addonItems), [defaultItems, addonItems]);\r\n\r\n const toolbarOrientation = orientation === ToolbarOrientation.Horizontal ? Orientation.Horizontal : Orientation.Vertical; // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\r\n const expandsTo = toolbarOrientation === Orientation.Horizontal ? Direction.Bottom : usage === ToolbarUsage.ViewNavigation ? Direction.Left : Direction.Right;\r\n // eslint-disable-next-line deprecation/deprecation\r\n const panelAlignment = (toolbarOrientation === Orientation.Horizontal && usage === ToolbarUsage.ViewNavigation) ? ToolbarPanelAlignment.End : ToolbarPanelAlignment.Start;\r\n const version = useFrameworkVersion(); // eslint-disable-line deprecation/deprecation\r\n const isDragEnabled = React.useContext(ToolbarDragInteractionContext);\r\n const useProximityOpacity = useProximityOpacitySetting();\r\n\r\n if (\"1\" === version) {\r\n return (\r\n <ToolbarUi1\r\n items={toolbarItems}\r\n expandsTo={expandsTo}\r\n panelAlignment={panelAlignment}\r\n />\r\n );\r\n }\r\n\r\n return <ToolbarWithOverflow\r\n expandsTo={expandsTo}\r\n panelAlignment={panelAlignment}\r\n items={toolbarItems}\r\n useDragInteraction={isDragEnabled}\r\n toolbarOpacitySetting={useProximityOpacity && !UiFramework.isMobile() ? ToolbarOpacitySetting.Proximity : /* istanbul ignore next */ ToolbarOpacitySetting.Defaults}\r\n />;\r\n}\r\n\r\ninterface ToolbarUi1Props {\r\n items: CommonToolbarItem[];\r\n expandsTo: Direction; // eslint-disable-line deprecation/deprecation\r\n panelAlignment: ToolbarPanelAlignment; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Toolbar rendered in 1.0 mode.\r\n * @internal\r\n */\r\nconst ToolbarUi1 = React.memo<ToolbarUi1Props>(function ToolbarUi1({\r\n items,\r\n expandsTo,\r\n panelAlignment,\r\n}) {\r\n const createReactNodes = (): React.ReactNode => {\r\n if (0 === items.length)\r\n return null;\r\n\r\n const createdNodes = items.map((item: CommonToolbarItem) => {\r\n return ToolbarHelper.createNodeForToolbarItem(item);\r\n });\r\n return createdNodes;\r\n };\r\n\r\n return <Toolbar // eslint-disable-line deprecation/deprecation\r\n expandsTo={expandsTo}\r\n panelAlignment={panelAlignment}\r\n items={\r\n <>\r\n {createReactNodes()}\r\n </>\r\n }\r\n />;\r\n});\r\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module Toolbar
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { ActionButton, CommonToolbarItem, CustomButtonDefinition, GroupButton, ToolbarItem } from "@itwin/appui-abstract";
|
|
5
|
+
import { ActionButton, CommonToolbarItem, CustomButtonDefinition, GroupButton, OnItemExecutedFunc, ToolbarItem } from "@itwin/appui-abstract";
|
|
6
6
|
import { CustomToolbarItem } from "@itwin/components-react";
|
|
7
7
|
import { AnyItemDef } from "../shared/AnyItemDef";
|
|
8
8
|
import { CustomItemDef } from "../shared/CustomItemDef";
|
|
@@ -19,6 +19,7 @@ export declare class ToolbarHelper {
|
|
|
19
19
|
/** Helper method to creates a generic toolbar item entry */
|
|
20
20
|
static createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<ToolbarItem>): CommonToolbarItem;
|
|
21
21
|
static createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority?: number, overrides?: Partial<ToolbarItem>): CommonToolbarItem[];
|
|
22
|
+
static createNodeForToolbarItem(item: CommonToolbarItem, onItemExecuted?: OnItemExecutedFunc): React.ReactNode;
|
|
22
23
|
/** CustomToolbarButton type guard.
|
|
23
24
|
* @internal
|
|
24
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarHelper.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarHelper.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,YAAY,EAAE,iBAAiB,EAA0B,sBAAsB,EAAE,WAAW,EAAgB,WAAW,
|
|
1
|
+
{"version":3,"file":"ToolbarHelper.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CACH"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ToolbarHelper = void 0;
|
|
4
4
|
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
5
|
-
const components_react_1 = require("@itwin/components-react");
|
|
6
5
|
const core_react_1 = require("@itwin/core-react");
|
|
7
6
|
const CommandItemDef_1 = require("../shared/CommandItemDef");
|
|
8
7
|
const CustomItemDef_1 = require("../shared/CustomItemDef");
|
|
9
8
|
const ToolItemDef_1 = require("../shared/ToolItemDef");
|
|
9
|
+
const ActionButtonItem_1 = require("./ActionButtonItem");
|
|
10
|
+
const GroupButtonItem_1 = require("./GroupButtonItem");
|
|
10
11
|
const GroupItem_1 = require("./GroupItem");
|
|
11
12
|
/** Helper functions for defining an ToolbarComposer.
|
|
12
13
|
* @public
|
|
@@ -31,6 +32,7 @@ class ToolbarHelper {
|
|
|
31
32
|
isDisabled,
|
|
32
33
|
internalData,
|
|
33
34
|
badgeType,
|
|
35
|
+
buttonNode: itemDef.toolbarReactNode(),
|
|
34
36
|
panelContentNode: itemDef.popupPanelNode,
|
|
35
37
|
...overrides,
|
|
36
38
|
};
|
|
@@ -128,12 +130,24 @@ class ToolbarHelper {
|
|
|
128
130
|
});
|
|
129
131
|
return items;
|
|
130
132
|
}
|
|
133
|
+
static createNodeForToolbarItem(item, onItemExecuted) {
|
|
134
|
+
if (appui_abstract_1.ToolbarItemUtilities.isActionButton(item)) {
|
|
135
|
+
return (0, ActionButtonItem_1.ActionButtonItem)({ item, onItemExecuted });
|
|
136
|
+
}
|
|
137
|
+
if (appui_abstract_1.ToolbarItemUtilities.isGroupButton(item)) {
|
|
138
|
+
return (0, GroupButtonItem_1.GroupButtonItem)({ item, onItemExecuted });
|
|
139
|
+
}
|
|
140
|
+
if (ToolbarHelper.isCustomToolbarButton(item)) {
|
|
141
|
+
return item.buttonNode ? /* istanbul ignore next */ item.buttonNode : null;
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
131
145
|
}
|
|
132
146
|
exports.ToolbarHelper = ToolbarHelper;
|
|
133
147
|
/** CustomToolbarButton type guard.
|
|
134
148
|
* @internal
|
|
135
149
|
*/
|
|
136
150
|
ToolbarHelper.isCustomToolbarButton = (item) => {
|
|
137
|
-
return (
|
|
151
|
+
return !!item.isCustom && ("buttonNode" in item);
|
|
138
152
|
};
|
|
139
153
|
//# sourceMappingURL=ToolbarHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarHelper.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarHelper.tsx"],"names":[],"mappings":";;;AAQA,0DAE+B;AAC/B,8DAAiF;AACjF,kDAA+C;AAE/C,6DAA0D;AAC1D,2DAAwD;AACxD,uDAAoD;AACpD,2CAA2C;AAE3C;;GAEG;AACH,MAAa,aAAa;IACxB,qEAAqE;IAC9D,MAAM,CAAC,iCAAiC,CAAC,YAAoB,EAAE,OAAsB,EAAE,SAA2C;QACvI,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAClC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAe,CAAC,CAAE,uDAAuD;QACrG,MAAM,IAAI,GAAG,uBAAU,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACpE,MAAM,KAAK,GAAG,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QAEpC,uBAAuB;QACvB,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,YAAY;YACZ,IAAI;YACJ,KAAK;YACL,QAAQ,EAAE,IAAI;YACd,QAAQ;YACR,UAAU;YACV,YAAY;YACZ,SAAS;YACT,gBAAgB,EAAE,OAAO,CAAC,cAAc;YAC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CAAC,EAAE,EAAE,CAAC,CAAC;SACzE;IACH,CAAC;IAEM,MAAM,CAAC,8BAA8B,CAAC,QAAsB,EAAE,oBAAoB,GAAG,EAAE,EAAE,SAAgC;QAC9H,IAAI,YAAY,GAAG,oBAAoB,CAAC;QACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAmB,EAAE,EAAE;YACjD,MAAM,IAAI,GAAG,aAAa,CAAC,4BAA4B,CAAC,YAAY,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;YAC1F,YAAY,GAAG,YAAY,GAAG,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;;AAxHH,sCAgIC;AANC;;GAEG;AACW,mCAAqB,GAAG,CAAC,IAAuB,EAA6B,EAAE;IAC3F,OAAO,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\nimport * as React from \"react\";\r\nimport {\r\n ActionButton, CommonToolbarItem, ConditionalStringValue, CustomButtonDefinition, GroupButton, StringGetter, ToolbarItem, ToolbarItemUtilities,\r\n} from \"@itwin/appui-abstract\";\r\nimport { CustomToolbarItem, isCustomToolbarItem } from \"@itwin/components-react\";\r\nimport { IconHelper } from \"@itwin/core-react\";\r\nimport { AnyItemDef } from \"../shared/AnyItemDef\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { CustomItemDef } from \"../shared/CustomItemDef\";\r\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\r\nimport { GroupItemDef } from \"./GroupItem\";\r\n\r\n/** Helper functions for defining an ToolbarComposer.\r\n * @public\r\n */\r\nexport class ToolbarHelper {\r\n /** Construct CustomToolbarItem definitions given a CustomItemDef. */\r\n public static createCustomDefinitionToolbarItem(itemPriority: number, itemDef: CustomItemDef, overrides?: Partial<CustomButtonDefinition>): CustomToolbarItem {\r\n const isHidden = itemDef.isHidden;\r\n const isDisabled = itemDef.isDisabled;\r\n const internalData = new Map<string, any>(); // used to store ReactNode if iconSpec hold a ReactNode\r\n const icon = IconHelper.getIconData(itemDef.iconSpec, internalData);\r\n const label = this.getStringOrConditionalString(itemDef.rawLabel);\r\n const badgeType = itemDef.badgeType;\r\n\r\n // istanbul ignore else\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isCustom: true,\r\n isHidden,\r\n isDisabled,\r\n internalData,\r\n badgeType,\r\n panelContentNode: itemDef.popupPanelNode,\r\n ...overrides,\r\n };\r\n }\r\n\r\n /** Construct ActionButton and GroupButton definitions given an array to ItemDefs. */\r\n public static constructChildToolbarItems(itemDefs: AnyItemDef[]): Array<ActionButton | GroupButton> {\r\n let count = 10;\r\n const items: Array<ActionButton | GroupButton> = [];\r\n for (const itemDef of itemDefs) {\r\n const item = this.createToolbarItemFromItemDef(count, itemDef);\r\n count = count + 10;\r\n // istanbul ignore else\r\n if (ToolbarItemUtilities.isActionButton(item) || ToolbarItemUtilities.isGroupButton(item))\r\n items.push(item);\r\n }\r\n return items;\r\n }\r\n\r\n private static getStringOrConditionalString(inString: string | StringGetter | ConditionalStringValue): string | ConditionalStringValue {\r\n if (inString instanceof ConditionalStringValue || typeof inString === \"string\")\r\n return inString;\r\n\r\n return inString();\r\n }\r\n\r\n public static getIconReactNode(item: ActionButton | GroupButton): React.ReactNode {\r\n return IconHelper.getIconReactNode(item.icon, item.internalData);\r\n }\r\n\r\n /** Helper method to creates a generic toolbar item entry */\r\n public static createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<ToolbarItem>): CommonToolbarItem {\r\n const isHidden = itemDef.isHidden;\r\n const isDisabled = itemDef.isDisabled;\r\n const internalData = new Map<string, any>(); // used to store ReactNode if iconSpec hold a ReactNode\r\n const icon = IconHelper.getIconData(itemDef.iconSpec, internalData);\r\n const label = this.getStringOrConditionalString(itemDef.rawLabel);\r\n const badgeType = itemDef.badgeType;\r\n\r\n // istanbul ignore else\r\n if (itemDef instanceof CommandItemDef) {\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isHidden,\r\n isDisabled,\r\n isActive: itemDef.isActive,\r\n execute: itemDef.execute,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else if (itemDef instanceof CustomItemDef) {\r\n return ToolbarHelper.createCustomDefinitionToolbarItem(itemPriority, itemDef, overrides);\r\n } else if (itemDef instanceof GroupItemDef) {\r\n const children: Array<ActionButton | GroupButton> = this.constructChildToolbarItems(itemDef.items);\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n panelLabel: itemDef.panelLabel,\r\n isHidden,\r\n isDisabled,\r\n items: children,\r\n isActive: false,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else if (itemDef instanceof ToolItemDef) {\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isHidden,\r\n isDisabled,\r\n isActive: itemDef.isActive,\r\n execute: itemDef.execute,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else {\r\n throw new Error(`Invalid Item type encountered, item id=${itemDef.id}`);\r\n }\r\n }\r\n\r\n public static createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority = 10, overrides?: Partial<ToolbarItem>): CommonToolbarItem[] {\r\n let itemPriority = startingItemPriority;\r\n const items = itemDefs.map((itemDef: AnyItemDef) => {\r\n const item = ToolbarHelper.createToolbarItemFromItemDef(itemPriority, itemDef, overrides);\r\n itemPriority = itemPriority + 10;\r\n return item;\r\n });\r\n return items;\r\n }\r\n\r\n /** CustomToolbarButton type guard.\r\n * @internal\r\n */\r\n public static isCustomToolbarButton = (item: CommonToolbarItem): item is CustomToolbarItem => {\r\n return isCustomToolbarItem(item);\r\n };\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"ToolbarHelper.js","sourceRoot":"","sources":["../../../../src/appui-react/toolbar/ToolbarHelper.tsx"],"names":[],"mappings":";;;AAQA,0DAG+B;AAE/B,kDAA+C;AAE/C,6DAA0D;AAC1D,2DAAwD;AACxD,uDAAoD;AACpD,yDAAsD;AACtD,uDAAoD;AACpD,2CAA2C;AAE3C;;GAEG;AACH,MAAa,aAAa;IACxB,qEAAqE;IAC9D,MAAM,CAAC,iCAAiC,CAAC,YAAoB,EAAE,OAAsB,EAAE,SAA2C;QACvI,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAClC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAe,CAAC,CAAE,uDAAuD;QACrG,MAAM,IAAI,GAAG,uBAAU,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACpE,MAAM,KAAK,GAAG,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QAEpC,uBAAuB;QACvB,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,YAAY;YACZ,IAAI;YACJ,KAAK;YACL,QAAQ,EAAE,IAAI;YACd,QAAQ;YACR,UAAU;YACV,YAAY;YACZ,SAAS;YACT,UAAU,EAAE,OAAO,CAAC,gBAAgB,EAAE;YACtC,gBAAgB,EAAE,OAAO,CAAC,cAAc;YACxC,GAAG,SAAS;SACb,CAAC;IACJ,CAAC;IAED,qFAAqF;IAC9E,MAAM,CAAC,0BAA0B,CAAC,QAAsB;QAC7D,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,MAAM,KAAK,GAAsC,EAAE,CAAC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;QACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAmB,EAAE,EAAE;YACjD,MAAM,IAAI,GAAG,aAAa,CAAC,4BAA4B,CAAC,YAAY,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;YAC1F,YAAY,GAAG,YAAY,GAAG,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,IAAuB,EAAE,cAAmC;QACjG,IAAI,qCAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;YAC7C,OAAO,IAAA,mCAAgB,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;SACnD;QAED,IAAI,qCAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;YAC5C,OAAO,IAAA,iCAAe,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;SAClD;QAED,IAAI,aAAa,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC7C,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;SAC5E;QAED,OAAO,IAAI,CAAC;IACd,CAAC;;AAzIH,sCAiJC;AANC;;GAEG;AACW,mCAAqB,GAAG,CAAC,IAAuB,EAA6B,EAAE;IAC3F,OAAO,CAAC,CAAE,IAA0B,CAAC,QAAQ,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;AAC1E,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\nimport * as React from \"react\";\r\nimport {\r\n ActionButton, CommonToolbarItem, ConditionalStringValue, CustomButtonDefinition, GroupButton, OnItemExecutedFunc, StringGetter, ToolbarItem,\r\n ToolbarItemUtilities,\r\n} from \"@itwin/appui-abstract\";\r\nimport { CustomToolbarItem } from \"@itwin/components-react\";\r\nimport { IconHelper } from \"@itwin/core-react\";\r\nimport { AnyItemDef } from \"../shared/AnyItemDef\";\r\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\r\nimport { CustomItemDef } from \"../shared/CustomItemDef\";\r\nimport { ToolItemDef } from \"../shared/ToolItemDef\";\r\nimport { ActionButtonItem } from \"./ActionButtonItem\";\r\nimport { GroupButtonItem } from \"./GroupButtonItem\";\r\nimport { GroupItemDef } from \"./GroupItem\";\r\n\r\n/** Helper functions for defining an ToolbarComposer.\r\n * @public\r\n */\r\nexport class ToolbarHelper {\r\n /** Construct CustomToolbarItem definitions given a CustomItemDef. */\r\n public static createCustomDefinitionToolbarItem(itemPriority: number, itemDef: CustomItemDef, overrides?: Partial<CustomButtonDefinition>): CustomToolbarItem {\r\n const isHidden = itemDef.isHidden;\r\n const isDisabled = itemDef.isDisabled;\r\n const internalData = new Map<string, any>(); // used to store ReactNode if iconSpec hold a ReactNode\r\n const icon = IconHelper.getIconData(itemDef.iconSpec, internalData);\r\n const label = this.getStringOrConditionalString(itemDef.rawLabel);\r\n const badgeType = itemDef.badgeType;\r\n\r\n // istanbul ignore else\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isCustom: true,\r\n isHidden,\r\n isDisabled,\r\n internalData,\r\n badgeType,\r\n buttonNode: itemDef.toolbarReactNode(), // used by createNodeForToolbarItem below\r\n panelContentNode: itemDef.popupPanelNode,\r\n ...overrides,\r\n };\r\n }\r\n\r\n /** Construct ActionButton and GroupButton definitions given an array to ItemDefs. */\r\n public static constructChildToolbarItems(itemDefs: AnyItemDef[]): Array<ActionButton | GroupButton> {\r\n let count = 10;\r\n const items: Array<ActionButton | GroupButton> = [];\r\n for (const itemDef of itemDefs) {\r\n const item = this.createToolbarItemFromItemDef(count, itemDef);\r\n count = count + 10;\r\n // istanbul ignore else\r\n if (ToolbarItemUtilities.isActionButton(item) || ToolbarItemUtilities.isGroupButton(item))\r\n items.push(item);\r\n }\r\n return items;\r\n }\r\n\r\n private static getStringOrConditionalString(inString: string | StringGetter | ConditionalStringValue): string | ConditionalStringValue {\r\n if (inString instanceof ConditionalStringValue || typeof inString === \"string\")\r\n return inString;\r\n\r\n return inString();\r\n }\r\n\r\n public static getIconReactNode(item: ActionButton | GroupButton): React.ReactNode {\r\n return IconHelper.getIconReactNode(item.icon, item.internalData);\r\n }\r\n\r\n /** Helper method to creates a generic toolbar item entry */\r\n public static createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<ToolbarItem>): CommonToolbarItem {\r\n const isHidden = itemDef.isHidden;\r\n const isDisabled = itemDef.isDisabled;\r\n const internalData = new Map<string, any>(); // used to store ReactNode if iconSpec hold a ReactNode\r\n const icon = IconHelper.getIconData(itemDef.iconSpec, internalData);\r\n const label = this.getStringOrConditionalString(itemDef.rawLabel);\r\n const badgeType = itemDef.badgeType;\r\n\r\n // istanbul ignore else\r\n if (itemDef instanceof CommandItemDef) {\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isHidden,\r\n isDisabled,\r\n isActive: itemDef.isActive,\r\n execute: itemDef.execute,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else if (itemDef instanceof CustomItemDef) {\r\n return ToolbarHelper.createCustomDefinitionToolbarItem(itemPriority, itemDef, overrides);\r\n } else if (itemDef instanceof GroupItemDef) {\r\n const children: Array<ActionButton | GroupButton> = this.constructChildToolbarItems(itemDef.items);\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n panelLabel: itemDef.panelLabel,\r\n isHidden,\r\n isDisabled,\r\n items: children,\r\n isActive: false,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else if (itemDef instanceof ToolItemDef) {\r\n return {\r\n id: itemDef.id,\r\n itemPriority,\r\n icon,\r\n label,\r\n isHidden,\r\n isDisabled,\r\n isActive: itemDef.isActive,\r\n execute: itemDef.execute,\r\n badgeType,\r\n internalData,\r\n ...overrides,\r\n };\r\n } else {\r\n throw new Error(`Invalid Item type encountered, item id=${itemDef.id}`);\r\n }\r\n }\r\n\r\n public static createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority = 10, overrides?: Partial<ToolbarItem>): CommonToolbarItem[] {\r\n let itemPriority = startingItemPriority;\r\n const items = itemDefs.map((itemDef: AnyItemDef) => {\r\n const item = ToolbarHelper.createToolbarItemFromItemDef(itemPriority, itemDef, overrides);\r\n itemPriority = itemPriority + 10;\r\n return item;\r\n });\r\n return items;\r\n }\r\n\r\n public static createNodeForToolbarItem(item: CommonToolbarItem, onItemExecuted?: OnItemExecutedFunc): React.ReactNode {\r\n if (ToolbarItemUtilities.isActionButton(item)) {\r\n return ActionButtonItem({ item, onItemExecuted });\r\n }\r\n\r\n if (ToolbarItemUtilities.isGroupButton(item)) {\r\n return GroupButtonItem({ item, onItemExecuted });\r\n }\r\n\r\n if (ToolbarHelper.isCustomToolbarButton(item)) {\r\n return item.buttonNode ? /* istanbul ignore next */ item.buttonNode : null;\r\n }\r\n\r\n return null;\r\n }\r\n\r\n /** CustomToolbarButton type guard.\r\n * @internal\r\n */\r\n public static isCustomToolbarButton = (item: CommonToolbarItem): item is CustomToolbarItem => {\r\n return !!(item as CustomToolbarItem).isCustom && (\"buttonNode\" in item);\r\n };\r\n}\r\n"]}
|