@itwin/appui-react 4.14.1 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -1
- package/lib/cjs/appui-react/UiFramework.d.ts +202 -140
- package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/cjs/appui-react/UiFramework.js +432 -301
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/UiFramework.json +8 -4
- package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +6 -7
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +0 -4
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
- package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
- package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
- package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +0 -1
- package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +3 -2
- package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageManager.js +5 -7
- package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
- package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +1 -0
- package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +8 -18
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +64 -18
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
- package/lib/cjs/appui-react/content/ContentControl.js +1 -1
- package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
- package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
- package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
- package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
- package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
- package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
- package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
- package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
- package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
- package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
- package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
- package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
- package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
- package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
- package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
- package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
- package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
- package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
- package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
- package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
- package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
- package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
- package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
- package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +4 -3
- package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.js +1 -1
- package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
- 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/framework/FrameworkBackstage.d.ts +2 -2
- package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
- package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
- package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
- package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
- package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
- package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
- package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
- package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
- package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
- package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
- package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
- package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
- package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
- package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
- package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
- package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
- package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
- package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
- package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
- package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
- package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
- package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
- package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
- package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
- package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
- package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
- package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
- package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
- package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
- package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
- package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
- package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
- package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
- package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
- package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
- package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/InputField.js +6 -2
- package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
- package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
- package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
- package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
- package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/Pointer.js +11 -3
- package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
- package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
- package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
- package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
- package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
- package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
- package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
- package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
- package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
- package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
- package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
- package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
- package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
- package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
- package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
- package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
- package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
- package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
- package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
- package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
- package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
- package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
- package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
- package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
- package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
- package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
- package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
- package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
- package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
- package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
- package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
- package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
- package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
- package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
- package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
- package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
- package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
- package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
- package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
- package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
- package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
- package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/SessionState.js +11 -10
- package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
- package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
- package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/StateManager.js +3 -3
- package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
- package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
- package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
- package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
- package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
- package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
- package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
- package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
- package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
- package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
- package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
- package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
- package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
- package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
- package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
- package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
- package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
- package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
- package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -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 +3 -1
- package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
- package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
- package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
- package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
- package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
- package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -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/shared/MenuItem.d.ts +45 -12
- package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
- package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
- package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
- package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
- package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
- package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
- package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Field.js +1 -1
- package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
- package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
- package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
- package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
- package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
- package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
- 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.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
- package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
- package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
- package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
- package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
- package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
- package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
- package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
- package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
- package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
- package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
- package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
- package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
- package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
- package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
- package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
- package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
- package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
- package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
- package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
- package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
- package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
- package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
- package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
- package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
- package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
- package/lib/cjs/appui-react/tools/ToolbarItems.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 +2 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
- 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.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
- 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 +1 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
- package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
- package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
- package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
- package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
- package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
- package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
- package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
- package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
- package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
- package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
- package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
- package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
- package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/cjs/appui-react/widget-panels/Frontstage.js +21 -17
- package/lib/cjs/appui-react/widget-panels/Frontstage.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 +1 -0
- package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
- package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
- package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
- package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react.d.ts +10 -3
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +10 -3
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.d.ts +202 -140
- package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +428 -297
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.json +8 -4
- package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
- package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
- package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
- package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
- package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
- package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
- package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
- package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
- package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
- package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
- package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
- package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
- package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
- package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
- package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
- package/lib/esm/appui-react/content/ContentControl.js +1 -1
- package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
- package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
- package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
- 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/IModelViewport.d.ts +5 -6
- package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
- package/lib/esm/appui-react/content/IModelViewport.js +24 -13
- package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
- package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
- package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
- package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
- package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
- package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
- package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
- package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
- package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
- package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
- package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
- package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
- package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
- package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
- package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
- package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
- package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
- package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
- package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
- package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
- package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -3
- package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -1
- package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
- 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/framework/FrameworkBackstage.d.ts +2 -2
- package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
- package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
- package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
- package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
- package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
- package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
- package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
- package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
- package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
- package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
- package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
- package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
- package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
- package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
- package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
- package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
- package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
- package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
- package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
- package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
- package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
- package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
- package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
- package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
- package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
- package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
- package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
- package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
- package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
- package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
- package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
- package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
- package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
- package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
- package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
- package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
- package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
- package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
- package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
- package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
- package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
- package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
- package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
- package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
- package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/InputField.js +6 -2
- package/lib/esm/appui-react/messages/InputField.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
- package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
- package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/MessageManager.js +22 -11
- package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
- package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
- package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/Pointer.js +11 -3
- package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
- package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
- package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
- package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
- package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
- package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
- package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
- package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
- package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
- package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
- package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
- package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
- package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
- package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
- package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/CardPopup.js +3 -1
- package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
- package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
- package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
- package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
- package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
- package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
- package/lib/esm/appui-react/popup/PopupManager.js +5 -5
- package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
- package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
- package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
- package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
- package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
- package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
- package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
- package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
- package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
- package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
- package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
- package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
- package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
- package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
- package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
- package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
- package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
- package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
- package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
- package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
- package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
- package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
- package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
- package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/SessionState.js +11 -10
- package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
- package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
- package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/StateManager.js +3 -3
- package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
- package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
- package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/connectIModel.js +3 -1
- package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
- package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
- package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
- package/lib/esm/appui-react/redux/redux-ts.js +3 -2
- package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
- package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
- package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
- package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
- package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
- package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
- package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
- package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
- package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
- package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
- package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
- package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
- package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
- package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
- package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
- package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
- package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -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 +3 -1
- package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
- package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
- package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
- package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ItemMap.js +3 -0
- package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
- package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -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/shared/MenuItem.d.ts +45 -12
- package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/MenuItem.js +8 -1
- package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
- package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
- package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
- package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
- package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
- package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
- package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Field.js +1 -1
- package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
- package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
- package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
- package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/Separator.js +1 -0
- package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
- package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
- 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.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
- package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
- package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
- package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
- package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
- package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
- package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
- package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
- package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
- package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
- package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
- package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
- package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
- package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
- package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
- package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
- package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
- package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
- package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
- package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
- package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
- package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
- package/lib/esm/appui-react/theme/ThemeId.js +38 -0
- package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
- package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
- package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
- package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
- package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
- package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
- package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
- package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
- package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
- package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
- package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
- package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
- package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
- package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
- package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
- package/lib/esm/appui-react/tools/ToolbarItems.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 +2 -0
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
- 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.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
- 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 +1 -0
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
- package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
- package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
- package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
- package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
- package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
- package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
- package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
- package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
- package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
- package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
- package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
- package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
- package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
- package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/esm/appui-react/widget-panels/Frontstage.js +21 -17
- package/lib/esm/appui-react/widget-panels/Frontstage.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 +1 -0
- package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
- package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
- package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
- package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
- package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react.d.ts +10 -3
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +10 -3
- package/lib/esm/appui-react.js.map +1 -1
- package/lib/public/locales/en/UiFramework.json +8 -4
- package/package.json +8 -8
- package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
- package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
- package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
- package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
- package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
- package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
- package/lib/esm/appui-react/configurableui/state.js.map +0 -1
- package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js
CHANGED
|
@@ -16,8 +16,8 @@ import { useMainPanelWidgetId } from "../../layout/widget/usePanelWidgetId";
|
|
|
16
16
|
import { useIsMaximizedWidget } from "../enable-maximized-widget/useMaximizedWidget";
|
|
17
17
|
/** Default value used when not provided or disabled. */
|
|
18
18
|
const defaultAlignments = {
|
|
19
|
-
top: HorizontalAlignment.Justify,
|
|
20
|
-
bottom: HorizontalAlignment.Justify,
|
|
19
|
+
top: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation
|
|
20
|
+
bottom: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation
|
|
21
21
|
};
|
|
22
22
|
/** @internal */
|
|
23
23
|
export const HorizontalPanelAlignContext = React.createContext({
|
|
@@ -30,10 +30,12 @@ export const HorizontalPanelAlignContext = React.createContext({
|
|
|
30
30
|
*/
|
|
31
31
|
export function PreviewHorizontalPanelAlignFeatureProvider({ enabled, children, }) {
|
|
32
32
|
const [alignments, setAlignments] = React.useState({
|
|
33
|
-
top: HorizontalAlignment.Justify,
|
|
34
|
-
bottom: HorizontalAlignment.Justify,
|
|
33
|
+
top: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation
|
|
34
|
+
bottom: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation
|
|
35
35
|
});
|
|
36
|
-
const setAlignment = React.useCallback(
|
|
36
|
+
const setAlignment = React.useCallback(
|
|
37
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
38
|
+
(panel, alignment) => {
|
|
37
39
|
if (!panel || !isHorizontalPanelSide(panel))
|
|
38
40
|
return;
|
|
39
41
|
setAlignments((prev) => ({
|
|
@@ -59,12 +61,16 @@ function SvgCenter(props) {
|
|
|
59
61
|
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1rem", height: "1rem", viewBox: "0 0 16 16", fill: "var(--iui-color-icon-muted, currentColor)", ...props },
|
|
60
62
|
React.createElement("path", { d: "M0 2v12h16V2H0Zm4 11H1V3h3v10Zm1-4V3h6v6H5Zm10 4h-3V3h3v10Z" })));
|
|
61
63
|
}
|
|
64
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
62
65
|
function getIcon(side, alignment) {
|
|
63
66
|
const scaleY = side === "top" ? "-1" : "1";
|
|
67
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
64
68
|
if (alignment === HorizontalAlignment.Justify)
|
|
65
69
|
return React.createElement(SvgJustify, { transform: `scale(1, ${scaleY})` });
|
|
70
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
66
71
|
if (alignment === HorizontalAlignment.Center)
|
|
67
72
|
return React.createElement(SvgCenter, { transform: `scale(1, ${scaleY})` });
|
|
73
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
68
74
|
const scaleX = alignment === HorizontalAlignment.Left ? "1" : "-1";
|
|
69
75
|
return React.createElement(SvgSide, { transform: `scale(${scaleX}, ${scaleY})` });
|
|
70
76
|
}
|
|
@@ -79,10 +85,10 @@ export function PreviewHorizontalPanelAlignButton() {
|
|
|
79
85
|
const { alignments, setAlignment } = React.useContext(HorizontalPanelAlignContext);
|
|
80
86
|
const label = "Align panel";
|
|
81
87
|
const getMenuItems = (onClose) => [
|
|
82
|
-
HorizontalAlignment.Justify,
|
|
83
|
-
HorizontalAlignment.Center,
|
|
84
|
-
HorizontalAlignment.Left,
|
|
85
|
-
HorizontalAlignment.Right,
|
|
88
|
+
HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation
|
|
89
|
+
HorizontalAlignment.Center, // eslint-disable-line deprecation/deprecation
|
|
90
|
+
HorizontalAlignment.Left, // eslint-disable-line deprecation/deprecation
|
|
91
|
+
HorizontalAlignment.Right, // eslint-disable-line deprecation/deprecation
|
|
86
92
|
].map((align) => {
|
|
87
93
|
return (React.createElement(MenuItem, { key: align, onClick: () => {
|
|
88
94
|
setAlignment(side, align);
|
package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewHorizontalPanelAlign.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/horizontal-panel-alignment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AC;IAEjD,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,CACL,OAAO,IAAI,iBAAiB,IAAI,iBAAiB,IAAI,CAAC,iBAAiB,CACxE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { assert } from \"@itwin/core-bentley\";\nimport { HorizontalAlignment } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuItem } from \"@itwin/itwinui-react\";\nimport {\n isHorizontalPanelSide,\n PanelSideContext,\n} from \"../../layout/widget-panels/Panel\";\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../../layout/widget-panels/PanelTypes\";\nimport { WidgetActionDropdownContext } from \"../widget-action-dropdown/MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\nimport { useMainPanelWidgetId } from \"../../layout/widget/usePanelWidgetId\";\nimport { useIsMaximizedWidget } from \"../enable-maximized-widget/useMaximizedWidget\";\n\n/** Default value used when not provided or disabled. */\nconst defaultAlignments = {\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n};\n\n/** @internal */\nexport const HorizontalPanelAlignContext = React.createContext<{\n enabled: boolean;\n alignments: {\n [side in HorizontalPanelSide]: HorizontalAlignment;\n };\n setAlignment: (\n panel: PanelSide | undefined,\n alignment: HorizontalAlignment\n ) => void;\n}>({\n enabled: false,\n alignments: defaultAlignments,\n setAlignment: () => {},\n});\n\n/** Preview horizontal panel alignment feature provider.\n * @internal\n */\nexport function PreviewHorizontalPanelAlignFeatureProvider({\n enabled,\n children,\n}: {\n enabled?: boolean;\n children?: React.ReactNode;\n}) {\n const [alignments, setAlignments] = React.useState<{\n [x in HorizontalPanelSide]: HorizontalAlignment;\n }>({\n top: HorizontalAlignment.Justify,\n bottom: HorizontalAlignment.Justify,\n });\n const setAlignment = React.useCallback(\n (panel: PanelSide | undefined, alignment: HorizontalAlignment) => {\n if (!panel || !isHorizontalPanelSide(panel)) return;\n setAlignments((prev) => ({\n ...prev,\n [panel]: alignment,\n }));\n },\n []\n );\n return (\n <HorizontalPanelAlignContext.Provider\n value={{\n enabled: !!enabled,\n alignments: enabled ? alignments : defaultAlignments,\n setAlignment,\n }}\n >\n {children}\n </HorizontalPanelAlignContext.Provider>\n );\n}\n\nfunction SvgSide(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm11 7H1V3h10v6Zm4 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction SvgJustify(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 7H1V3h3v6Zm1 0V3h6v6H5Zm10 0h-3V3h3v6Z\" />\n </svg>\n );\n}\n\nfunction SvgCenter(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 11H1V3h3v10Zm1-4V3h6v6H5Zm10 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction getIcon(side: HorizontalPanelSide, alignment: HorizontalAlignment) {\n const scaleY = side === \"top\" ? \"-1\" : \"1\";\n if (alignment === HorizontalAlignment.Justify)\n return <SvgJustify transform={`scale(1, ${scaleY})`} />;\n if (alignment === HorizontalAlignment.Center)\n return <SvgCenter transform={`scale(1, ${scaleY})`} />;\n const scaleX = alignment === HorizontalAlignment.Left ? \"1\" : \"-1\";\n return <SvgSide transform={`scale(${scaleX}, ${scaleY})`} />;\n}\n\nfunction capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** @internal */\nexport function PreviewHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n assert(!!side);\n assert(isHorizontalPanelSide(side));\n const { alignments, setAlignment } = React.useContext(\n HorizontalPanelAlignContext\n );\n const label = \"Align panel\";\n\n const getMenuItems = (onClose?: () => void) =>\n [\n HorizontalAlignment.Justify,\n HorizontalAlignment.Center,\n HorizontalAlignment.Left,\n HorizontalAlignment.Right,\n ].map((align) => {\n return (\n <MenuItem\n key={align}\n onClick={() => {\n setAlignment(side, align);\n onClose?.();\n }}\n icon={getIcon(side, align)}\n isSelected={alignments[side] === align}\n >\n {capitalize(align)}\n </MenuItem>\n );\n });\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem\n icon={getIcon(side, alignments[side])}\n subMenuItems={getMenuItems(dropdownContext.onClose)}\n >\n {label}\n </MenuItem>\n );\n }\n return (\n <DropdownMenu menuItems={(close) => getMenuItems(close)}>\n <TabBarButton label={label}>\n {getIcon(side, alignments[side])}\n </TabBarButton>\n </DropdownMenu>\n );\n}\n\n/** @internal */\nexport function useHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n const { enabled } = React.useContext(HorizontalPanelAlignContext);\n const isMainPanelWidget = !!useMainPanelWidgetId();\n const isMaximizedWidget = useIsMaximizedWidget();\n\n if (!side) return false;\n const isHorizontalPanel = isHorizontalPanelSide(side);\n return (\n enabled && isHorizontalPanel && isMainPanelWidget && !isMaximizedWidget\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PreviewHorizontalPanelAlign.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,wDAAwD;AACxD,MAAM,iBAAiB,GAAG;IACxB,GAAG,EAAE,mBAAmB,CAAC,OAAO,EAAE,8CAA8C;IAChF,MAAM,EAAE,mBAAmB,CAAC,OAAO,EAAE,8CAA8C;CACpF,CAAC;AAEF,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC,aAAa,CAS3D;IACD,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,iBAAiB;IAC7B,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,0CAA0C,CAAC,EACzD,OAAO,EACP,QAAQ,GAIT;IACC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAE/C;QACD,GAAG,EAAE,mBAAmB,CAAC,OAAO,EAAE,8CAA8C;QAChF,MAAM,EAAE,mBAAmB,CAAC,OAAO,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MAAM,UAAU,6BAA6B;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAChD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACnD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACxB,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,CACL,OAAO,IAAI,iBAAiB,IAAI,iBAAiB,IAAI,CAAC,iBAAiB,CACxE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport * as React from \"react\";\nimport { assert } from \"@itwin/core-bentley\";\nimport { HorizontalAlignment } from \"@itwin/core-react\";\nimport { DropdownMenu, MenuItem } from \"@itwin/itwinui-react\";\nimport {\n isHorizontalPanelSide,\n PanelSideContext,\n} from \"../../layout/widget-panels/Panel\";\nimport type {\n HorizontalPanelSide,\n PanelSide,\n} from \"../../layout/widget-panels/PanelTypes\";\nimport { WidgetActionDropdownContext } from \"../widget-action-dropdown/MoreButton\";\nimport { TabBarButton } from \"../../layout/widget/Button\";\nimport { useMainPanelWidgetId } from \"../../layout/widget/usePanelWidgetId\";\nimport { useIsMaximizedWidget } from \"../enable-maximized-widget/useMaximizedWidget\";\n\n/** Default value used when not provided or disabled. */\nconst defaultAlignments = {\n top: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation\n bottom: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation\n};\n\n/** @internal */\nexport const HorizontalPanelAlignContext = React.createContext<{\n enabled: boolean;\n alignments: {\n [side in HorizontalPanelSide]: HorizontalAlignment; // eslint-disable-line deprecation/deprecation\n };\n setAlignment: (\n panel: PanelSide | undefined,\n alignment: HorizontalAlignment // eslint-disable-line deprecation/deprecation\n ) => void;\n}>({\n enabled: false,\n alignments: defaultAlignments,\n setAlignment: () => {},\n});\n\n/** Preview horizontal panel alignment feature provider.\n * @internal\n */\nexport function PreviewHorizontalPanelAlignFeatureProvider({\n enabled,\n children,\n}: {\n enabled?: boolean;\n children?: React.ReactNode;\n}) {\n const [alignments, setAlignments] = React.useState<{\n [x in HorizontalPanelSide]: HorizontalAlignment; // eslint-disable-line deprecation/deprecation\n }>({\n top: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation\n bottom: HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation\n });\n const setAlignment = React.useCallback(\n // eslint-disable-next-line deprecation/deprecation\n (panel: PanelSide | undefined, alignment: HorizontalAlignment) => {\n if (!panel || !isHorizontalPanelSide(panel)) return;\n setAlignments((prev) => ({\n ...prev,\n [panel]: alignment,\n }));\n },\n []\n );\n return (\n <HorizontalPanelAlignContext.Provider\n value={{\n enabled: !!enabled,\n alignments: enabled ? alignments : defaultAlignments,\n setAlignment,\n }}\n >\n {children}\n </HorizontalPanelAlignContext.Provider>\n );\n}\n\nfunction SvgSide(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm11 7H1V3h10v6Zm4 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\nfunction SvgJustify(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 7H1V3h3v6Zm1 0V3h6v6H5Zm10 0h-3V3h3v6Z\" />\n </svg>\n );\n}\n\nfunction SvgCenter(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1rem\"\n height=\"1rem\"\n viewBox=\"0 0 16 16\"\n fill=\"var(--iui-color-icon-muted, currentColor)\"\n {...props}\n >\n <path d=\"M0 2v12h16V2H0Zm4 11H1V3h3v10Zm1-4V3h6v6H5Zm10 4h-3V3h3v10Z\" />\n </svg>\n );\n}\n\n// eslint-disable-next-line deprecation/deprecation\nfunction getIcon(side: HorizontalPanelSide, alignment: HorizontalAlignment) {\n const scaleY = side === \"top\" ? \"-1\" : \"1\";\n // eslint-disable-next-line deprecation/deprecation\n if (alignment === HorizontalAlignment.Justify)\n return <SvgJustify transform={`scale(1, ${scaleY})`} />;\n // eslint-disable-next-line deprecation/deprecation\n if (alignment === HorizontalAlignment.Center)\n return <SvgCenter transform={`scale(1, ${scaleY})`} />;\n // eslint-disable-next-line deprecation/deprecation\n const scaleX = alignment === HorizontalAlignment.Left ? \"1\" : \"-1\";\n return <SvgSide transform={`scale(${scaleX}, ${scaleY})`} />;\n}\n\nfunction capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** @internal */\nexport function PreviewHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n assert(!!side);\n assert(isHorizontalPanelSide(side));\n const { alignments, setAlignment } = React.useContext(\n HorizontalPanelAlignContext\n );\n const label = \"Align panel\";\n\n const getMenuItems = (onClose?: () => void) =>\n [\n HorizontalAlignment.Justify, // eslint-disable-line deprecation/deprecation\n HorizontalAlignment.Center, // eslint-disable-line deprecation/deprecation\n HorizontalAlignment.Left, // eslint-disable-line deprecation/deprecation\n HorizontalAlignment.Right, // eslint-disable-line deprecation/deprecation\n ].map((align) => {\n return (\n <MenuItem\n key={align}\n onClick={() => {\n setAlignment(side, align);\n onClose?.();\n }}\n icon={getIcon(side, align)}\n isSelected={alignments[side] === align}\n >\n {capitalize(align)}\n </MenuItem>\n );\n });\n const dropdownContext = React.useContext(WidgetActionDropdownContext);\n if (dropdownContext !== undefined) {\n return (\n <MenuItem\n icon={getIcon(side, alignments[side])}\n subMenuItems={getMenuItems(dropdownContext.onClose)}\n >\n {label}\n </MenuItem>\n );\n }\n return (\n <DropdownMenu menuItems={(close) => getMenuItems(close)}>\n <TabBarButton label={label}>\n {getIcon(side, alignments[side])}\n </TabBarButton>\n </DropdownMenu>\n );\n}\n\n/** @internal */\nexport function useHorizontalPanelAlignButton() {\n const side = React.useContext(PanelSideContext);\n const { enabled } = React.useContext(HorizontalPanelAlignContext);\n const isMainPanelWidget = !!useMainPanelWidgetId();\n const isMaximizedWidget = useIsMaximizedWidget();\n\n if (!side) return false;\n const isHorizontalPanel = isHorizontalPanelSide(side);\n return (\n enabled && isHorizontalPanel && isMainPanelWidget && !isMaximizedWidget\n );\n}\n"]}
|
|
@@ -11,7 +11,7 @@ export interface GroupItemProps {
|
|
|
11
11
|
/** @internal */
|
|
12
12
|
export declare const GroupItem: React.ForwardRefExoticComponent<GroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
/** @internal */
|
|
14
|
-
export declare function usePopoverPlacement(): "left-
|
|
14
|
+
export declare function usePopoverPlacement(): "left-end" | "left-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "top-end" | "top-start" | undefined;
|
|
15
15
|
interface GroupMenuItemProps {
|
|
16
16
|
item: ToolbarItem;
|
|
17
17
|
onClose?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolGroup.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ToolGroup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolGroup.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ToolGroup.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAWrD,UAAU,cAAe,SAAQ,WAAW;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAID,gBAAgB;AAChB,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,qBA2E1E;yBA3Ee,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolGroup.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/new-toolbars/ToolGroup.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolGroup.js","sourceRoot":"","sources":["../../../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B,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,UAAU,CAAC;QACpB,KAAK,KAAK,CAAC;QACX,KAAK,QAAQ;YACX,OAAO,YAAY,CAAC;IACxB,CAAC;AACH,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport \"./ToolGroup.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonProps } from \"@itwin/core-react\";\nimport { Surface } from \"@itwin/itwinui-react\";\nimport { ActionItem } from \"./ActionItem\";\nimport { GroupItem } from \"./GroupItem\";\nimport { CustomItem } from \"./CustomItem\";\nimport { OverflowButton } from \"./OverflowButton\";\nimport { useOverflow } from \"./useOverflow\";\nimport { getChildKey } from \"../../layout/tool-settings/Docked\";\nimport { ToolbarContext } from \"./Toolbar\";\n\n// eslint-disable-next-line deprecation/deprecation\ninterface ToolGroupProps extends CommonProps {\n children?: React.ReactNode;\n}\n\ntype Child = ReturnType<typeof React.Children.toArray>[0];\n\n/** @internal */\nexport function ToolGroup({ children, className, ...props }: ToolGroupProps) {\n const context = React.useContext(ToolbarContext);\n const expandsTo = context?.expandsTo ?? \"bottom\";\n const panelAlignment = context?.panelAlignment ?? \"start\";\n const orientation = getOrientation(expandsTo);\n const childrenArray = React.Children.toArray(children);\n\n const keyToChildMap = childrenArray.reduce<Map<string, Child>>(\n (acc, child, index) => {\n const childKey = getChildKey(child, index);\n acc.set(childKey, child);\n return acc;\n },\n new Map()\n );\n const childrenKeys = Array.from(keyToChildMap.keys());\n const itemRefs = React.useRef<Map<string, Element>>(new Map());\n const overflowRef = React.useRef<HTMLButtonElement>(null);\n\n const getItemSize = React.useCallback((item: string) => {\n const element = itemRefs.current.get(item);\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n const getOverflowSize = React.useCallback(() => {\n const element = overflowRef.current;\n if (!element) return { width: 0, height: 0 };\n return element.getBoundingClientRect();\n }, []);\n\n const [containerRef, componentRef, visibleCount, renderOverflow] =\n useOverflow(childrenKeys, orientation, getItemSize, getOverflowSize);\n\n const keyToChildEntries = Array.from(keyToChildMap.entries());\n const visibleChildren = keyToChildEntries.slice(0, visibleCount);\n const overflown = keyToChildEntries.slice(visibleCount);\n return (\n <div\n className={classnames(\n \"uifw-toolbar-group-toolGroup_container\",\n `uifw-${orientation}`,\n `uifw-${panelAlignment}`,\n className\n )}\n ref={containerRef}\n >\n <Surface\n className={classnames(\n \"uifw-toolbar-group-toolGroup\",\n `uifw-${orientation}`\n )}\n ref={componentRef}\n {...props}\n >\n {visibleChildren.map(([item, child]) => {\n if (!React.isValidElement<{ ref: React.Ref<Element> }>(child))\n return child;\n return React.cloneElement(child, {\n ref: (el: Element | null) => {\n if (!el) {\n itemRefs.current.delete(item);\n return;\n }\n itemRefs.current.set(item, el);\n },\n });\n })}\n {renderOverflow && (\n <OverflowButton ref={overflowRef}>\n {overflown.map(([_, child]) => child)}\n </OverflowButton>\n )}\n </Surface>\n </div>\n );\n}\n\nToolGroup.ActionItem = ActionItem;\nToolGroup.GroupItem = GroupItem;\nToolGroup.CustomItem = CustomItem;\n\ntype ToolbarContextProps = React.ContextType<typeof ToolbarContext>;\n\nfunction getOrientation(\n expandsTo: NonNullable<ToolbarContextProps>[\"expandsTo\"]\n) {\n switch (expandsTo) {\n case \"left\":\n case \"right\":\n return \"vertical\";\n case \"top\":\n case \"bottom\":\n return \"horizontal\";\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoutThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"PopoutThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,qBA8B5E"}
|
|
@@ -21,7 +21,7 @@ export function PopoutThemeProvider({ children }) {
|
|
|
21
21
|
const layoutStore = useLayoutStore();
|
|
22
22
|
const stateRef = React.useRef(layoutStore.getState());
|
|
23
23
|
React.useEffect(() => layoutStore.subscribe((state) => (stateRef.current = state)), [layoutStore]);
|
|
24
|
-
const
|
|
24
|
+
const portalContainer = usePopoutsStore((state) => {
|
|
25
25
|
if (!tabId)
|
|
26
26
|
return undefined;
|
|
27
27
|
const tabLocation = getTabLocation(stateRef.current, tabId);
|
|
@@ -29,8 +29,12 @@ export function PopoutThemeProvider({ children }) {
|
|
|
29
29
|
return undefined;
|
|
30
30
|
if (!isPopoutTabLocation(tabLocation))
|
|
31
31
|
return undefined;
|
|
32
|
-
|
|
32
|
+
const popout = state.popouts[tabLocation.popoutWidgetId];
|
|
33
|
+
if (!popout)
|
|
34
|
+
return undefined;
|
|
35
|
+
const container = popout.ownerDocument.querySelector(".uifw-childwindow-internalChildWindowManager_portalContainer");
|
|
36
|
+
return container ?? undefined;
|
|
33
37
|
});
|
|
34
|
-
return (React.createElement(ThemeProvider, { portalContainer:
|
|
38
|
+
return (React.createElement(ThemeProvider, { portalContainer: portalContainer, className: "uifw-preview-reparentPopoutWidgets-popoutThemeProvider" }, children));
|
|
35
39
|
}
|
|
36
40
|
//# sourceMappingURL=PopoutThemeProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoutThemeProvider.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAA+B;IAC3E,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IACtD,KAAK,CAAC,SAAS,CACb,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,EAClE,CAAC,WAAW,CAAC,CACd,CAAC;IACF,MAAM,eAAe,GAAG,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE;QAChD,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QACnC,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC;YAAE,OAAO,SAAS,CAAC;QACxD,
|
|
1
|
+
{"version":3,"file":"PopoutThemeProvider.js","sourceRoot":"","sources":["../../../../../src/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAE,QAAQ,EAA+B;IAC3E,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IACtD,KAAK,CAAC,SAAS,CACb,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,EAClE,CAAC,WAAW,CAAC,CACd,CAAC;IACF,MAAM,eAAe,GAAG,eAAe,CAAC,CAAC,KAAK,EAAE,EAAE;QAChD,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QACnC,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC;YAAE,OAAO,SAAS,CAAC;QACxD,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM;YAAE,OAAO,SAAS,CAAC;QAE9B,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,aAAa,CAClD,8DAA8D,CAC/D,CAAC;QACF,OAAO,SAAS,IAAI,SAAS,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,aAAa,IACZ,eAAe,EAAE,eAAe,EAChC,SAAS,EAAC,wDAAwD,IAEjE,QAAQ,CACK,CACjB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport \"./PopoutThemeProvider.scss\";\nimport * as React from \"react\";\nimport { ThemeProvider } from \"@itwin/itwinui-react\";\nimport { TabIdContext } from \"../../layout/widget/ContentRenderer\";\nimport { useLayoutStore } from \"../../layout/base/LayoutStore\";\nimport {\n getTabLocation,\n isPopoutTabLocation,\n} from \"../../layout/state/TabLocation\";\nimport { usePopoutsStore } from \"./usePopoutsStore\";\n\n/** Theme provider is required to open floating/popover elements in a popout widget window (instead of a main window).\n * @note iTwinUI v2 `ThemeProvider` is not used because of https://github.com/iTwin/appui/issues/612\n * @internal\n */\nexport function PopoutThemeProvider({ children }: React.PropsWithChildren<{}>) {\n const tabId = React.useContext(TabIdContext);\n const layoutStore = useLayoutStore();\n const stateRef = React.useRef(layoutStore.getState());\n React.useEffect(\n () => layoutStore.subscribe((state) => (stateRef.current = state)),\n [layoutStore]\n );\n const portalContainer = usePopoutsStore((state) => {\n if (!tabId) return undefined;\n const tabLocation = getTabLocation(stateRef.current, tabId);\n if (!tabLocation) return undefined;\n if (!isPopoutTabLocation(tabLocation)) return undefined;\n const popout = state.popouts[tabLocation.popoutWidgetId];\n if (!popout) return undefined;\n\n const container = popout.ownerDocument.querySelector<HTMLDivElement>(\n \".uifw-childwindow-internalChildWindowManager_portalContainer\"\n );\n return container ?? undefined;\n });\n\n return (\n <ThemeProvider\n portalContainer={portalContainer}\n className=\"uifw-preview-reparentPopoutWidgets-popoutThemeProvider\"\n >\n {children}\n </ThemeProvider>\n );\n}\n"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module State
|
|
3
|
+
*/
|
|
4
|
+
import type { ActionsUnion } from "./redux-ts";
|
|
5
|
+
/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.
|
|
6
|
+
* Since these are also used as sync ids they should be in lowercase.
|
|
7
|
+
* @note This is used by sync UI event APIs.
|
|
8
|
+
* @public
|
|
9
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum ConfigurableUiActionId {
|
|
12
|
+
SetSnapMode = "configurableui:set_snapmode",
|
|
13
|
+
SetTheme = "configurableui:set_theme",
|
|
14
|
+
SetToolPrompt = "configurableui:set_toolprompt",
|
|
15
|
+
SetWidgetOpacity = "configurableui:set_widget_opacity",
|
|
16
|
+
SetDragInteraction = "configurableui:set-drag-interaction",
|
|
17
|
+
SetShowWidgetIcon = "configurableui:set-show-widget-icon",
|
|
18
|
+
AutoCollapseUnpinnedPanels = "configurableui:set-auto-collapse-unpinned-panels",
|
|
19
|
+
SetViewOverlayDisplay = "configurableui:set-view-overlay-display",
|
|
20
|
+
AnimateToolSettings = "configurableui:set-animate-tool-settings",
|
|
21
|
+
UseToolAsToolSettingsLabel = "configurableui:set-use-tool-as-tool-settings-label",
|
|
22
|
+
SetToolbarOpacity = "configurableui:set-toolbar-opacity"
|
|
23
|
+
}
|
|
24
|
+
/** The portion of state managed by the ConfigurableUiReducer.
|
|
25
|
+
* @public
|
|
26
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
27
|
+
*/
|
|
28
|
+
export interface ConfigurableUiState {
|
|
29
|
+
/** @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField} instead. */
|
|
30
|
+
snapMode: number;
|
|
31
|
+
/** @deprecated in 4.15.0. Not used by AppUI components. */
|
|
32
|
+
toolPrompt: string;
|
|
33
|
+
/** @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager} instead. */
|
|
34
|
+
theme: string;
|
|
35
|
+
/** @deprecated in 4.15.0. Use `widgetOpacity` prop of {@link ConfigurableUiContent} instead. */
|
|
36
|
+
widgetOpacity: number;
|
|
37
|
+
/** @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar} or {@link ToolbarDragInteractionContext}. */
|
|
38
|
+
useDragInteraction: boolean;
|
|
39
|
+
/** @deprecated in 4.15.0. Use `widgetIcon` prop of {@link ConfigurableUiContent} instead. */
|
|
40
|
+
showWidgetIcon: boolean;
|
|
41
|
+
/** @deprecated in 4.15.0. Use `collapsePanels` prop of {@link ConfigurableUiContent} instead. */
|
|
42
|
+
autoCollapseUnpinnedPanels: boolean;
|
|
43
|
+
/** @deprecated in 4.15.0. Use `viewOverlay` prop of {@link ConfigurableUiContent} instead. */
|
|
44
|
+
viewOverlayDisplay: boolean;
|
|
45
|
+
/** @deprecated in 4.15.0. Use `animateToolSettings` prop of {@link ConfigurableUiContent} instead. */
|
|
46
|
+
animateToolSettings: boolean;
|
|
47
|
+
/** @deprecated in 4.15.0. Use `animateToolSettings` prop of {@link ConfigurableUiContent} instead. */
|
|
48
|
+
useToolAsToolSettingsLabel: boolean;
|
|
49
|
+
/** @deprecated in 4.15.0. Use `toolbarOpacity` prop of {@link ConfigurableUiContent}. */
|
|
50
|
+
toolbarOpacity: number;
|
|
51
|
+
}
|
|
52
|
+
/** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.
|
|
53
|
+
* @public
|
|
54
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
55
|
+
*/
|
|
56
|
+
export declare const ConfigurableUiActions: {
|
|
57
|
+
setSnapMode: (snapMode: number) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetSnapMode, number>;
|
|
58
|
+
setTheme: (theme: string) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetTheme, string>;
|
|
59
|
+
setToolPrompt: (toolPrompt: string) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetToolPrompt, string>;
|
|
60
|
+
setWidgetOpacity: (opacity: number) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetWidgetOpacity, number>;
|
|
61
|
+
setDragInteraction: (dragInteraction: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetDragInteraction, boolean>;
|
|
62
|
+
setShowWidgetIcon: (showWidgetIcon: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetShowWidgetIcon, boolean>;
|
|
63
|
+
setAutoCollapseUnpinnedPanels: (autoCollapse: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.AutoCollapseUnpinnedPanels, boolean>;
|
|
64
|
+
setViewOverlayDisplay: (displayViewOverlay: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetViewOverlayDisplay, boolean>;
|
|
65
|
+
setAnimateToolSettings: (animateToolSettings: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.AnimateToolSettings, boolean>;
|
|
66
|
+
setUseToolAsToolSettingsLabel: (useToolAsToolSettingsLabel: boolean) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.UseToolAsToolSettingsLabel, boolean>;
|
|
67
|
+
setToolbarOpacity: (opacity: number) => import("./redux-ts").ActionWithPayload<ConfigurableUiActionId.SetToolbarOpacity, number>;
|
|
68
|
+
};
|
|
69
|
+
/** Union of ConfigurableUi Redux actions
|
|
70
|
+
* @public
|
|
71
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
72
|
+
*/
|
|
73
|
+
export type ConfigurableUiActionsUnion = ActionsUnion<typeof ConfigurableUiActions>;
|
|
74
|
+
/** Handles actions to update ConfigurableUiState.
|
|
75
|
+
* @public
|
|
76
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
77
|
+
*/
|
|
78
|
+
export declare function ConfigurableUiReducer(state: ConfigurableUiState | undefined, action: ConfigurableUiActionsUnion): ConfigurableUiState;
|
|
79
|
+
//# sourceMappingURL=ConfigurableUiState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigurableUiState.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/redux/ConfigurableUiState.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgB/C;;;;;GAKG;AACH,oBAAY,sBAAsB;IAChC,WAAW,gCAAgC;IAC3C,QAAQ,6BAA6B;IACrC,aAAa,kCAAkC;IAC/C,gBAAgB,sCAAsC;IACtD,kBAAkB,wCAAwC;IAC1D,iBAAiB,wCAAwC;IACzD,0BAA0B,qDAAqD;IAC/E,qBAAqB,4CAA4C;IACjE,mBAAmB,6CAA6C;IAChE,0BAA0B,uDAAuD;IACjF,iBAAiB,uCAAuC;CACzD;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,gGAAgG;IAChG,aAAa,EAAE,MAAM,CAAC;IACtB,wHAAwH;IACxH,kBAAkB,EAAE,OAAO,CAAC;IAC5B,6FAA6F;IAC7F,cAAc,EAAE,OAAO,CAAC;IACxB,iGAAiG;IACjG,0BAA0B,EAAE,OAAO,CAAC;IACpC,8FAA8F;IAC9F,kBAAkB,EAAE,OAAO,CAAC;IAC5B,sGAAsG;IACtG,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sGAAsG;IACtG,0BAA0B,EAAE,OAAO,CAAC;IACpC,yFAAyF;IACzF,cAAc,EAAE,MAAM,CAAC;CACxB;AAiBD;;;GAGG;AACH,eAAO,MAAM,qBAAqB;4BACR,MAAM;sBAOpB,MAAM;gCACY,MAAM;gCAEN,MAAM;0CAEI,OAAO;wCAET,OAAO;kDAEG,OAAO;gDAKT,OAAO;kDAKL,OAAO;gEAKO,OAAO;iCAKtC,MAAM;CAEpC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,OAAO,qBAAqB,CAC7B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,iCAAkD,EACvD,MAAM,EAAE,0BAA0B,GACjC,mBAAmB,CAuCrB"}
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
* @module State
|
|
7
7
|
*/
|
|
8
8
|
import { SnapMode } from "@itwin/core-frontend";
|
|
9
|
-
import { createAction } from "
|
|
10
|
-
import { SYSTEM_PREFERRED_COLOR_THEME, TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT, } from "../theme/
|
|
11
|
-
|
|
9
|
+
import { createAction } from "./redux-ts";
|
|
10
|
+
import { SYSTEM_PREFERRED_COLOR_THEME, TOOLBAR_OPACITY_DEFAULT, WIDGET_OPACITY_DEFAULT, } from "../theme/ThemeId";
|
|
11
|
+
/* eslint-disable deprecation/deprecation */
|
|
12
12
|
/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.
|
|
13
13
|
* Since these are also used as sync ids they should be in lowercase.
|
|
14
|
+
* @note This is used by sync UI event APIs.
|
|
14
15
|
* @public
|
|
16
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
15
17
|
*/
|
|
16
18
|
export var ConfigurableUiActionId;
|
|
17
19
|
(function (ConfigurableUiActionId) {
|
|
@@ -27,8 +29,8 @@ export var ConfigurableUiActionId;
|
|
|
27
29
|
ConfigurableUiActionId["UseToolAsToolSettingsLabel"] = "configurableui:set-use-tool-as-tool-settings-label";
|
|
28
30
|
ConfigurableUiActionId["SetToolbarOpacity"] = "configurableui:set-toolbar-opacity";
|
|
29
31
|
})(ConfigurableUiActionId || (ConfigurableUiActionId = {}));
|
|
30
|
-
/**
|
|
31
|
-
const
|
|
32
|
+
/** Used on first call of ConfigurableUiReducer. */
|
|
33
|
+
const initialConfigurableUiState = {
|
|
32
34
|
snapMode: SnapMode.NearestKeypoint,
|
|
33
35
|
toolPrompt: "",
|
|
34
36
|
theme: SYSTEM_PREFERRED_COLOR_THEME,
|
|
@@ -43,6 +45,7 @@ const initialState = {
|
|
|
43
45
|
};
|
|
44
46
|
/** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.
|
|
45
47
|
* @public
|
|
48
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
46
49
|
*/
|
|
47
50
|
export const ConfigurableUiActions = {
|
|
48
51
|
setSnapMode: (snapMode) => createAction(ConfigurableUiActionId.SetSnapMode, snapMode),
|
|
@@ -64,8 +67,9 @@ export const ConfigurableUiActions = {
|
|
|
64
67
|
};
|
|
65
68
|
/** Handles actions to update ConfigurableUiState.
|
|
66
69
|
* @public
|
|
70
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
67
71
|
*/
|
|
68
|
-
export function ConfigurableUiReducer(state =
|
|
72
|
+
export function ConfigurableUiReducer(state = initialConfigurableUiState, action) {
|
|
69
73
|
const outState = state;
|
|
70
74
|
switch (action.type) {
|
|
71
75
|
case ConfigurableUiActionId.SetSnapMode: {
|
|
@@ -104,4 +108,4 @@ export function ConfigurableUiReducer(state = initialState, action) {
|
|
|
104
108
|
}
|
|
105
109
|
return outState;
|
|
106
110
|
}
|
|
107
|
-
//# sourceMappingURL=
|
|
111
|
+
//# sourceMappingURL=ConfigurableUiState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigurableUiState.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/ConfigurableUiState.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,4BAA4B,EAE5B,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAO1B,4CAA4C;AAE5C;;;;;GAKG;AACH,MAAM,CAAN,IAAY,sBAYX;AAZD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,yEAA+C,CAAA;IAC/C,gFAAsD,CAAA;IACtD,oFAA0D,CAAA;IAC1D,mFAAyD,CAAA;IACzD,yGAA+E,CAAA;IAC/E,2FAAiE,CAAA;IACjE,0FAAgE,CAAA;IAChE,2GAAiF,CAAA;IACjF,kFAAwD,CAAA;AAC1D,CAAC,EAZW,sBAAsB,KAAtB,sBAAsB,QAYjC;AA+BD,mDAAmD;AACnD,MAAM,0BAA0B,GAAwB;IACtD,QAAQ,EAAE,QAAQ,CAAC,eAAyB;IAC5C,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,4BAA4B;IACnC,aAAa,EAAE,sBAAsB;IACrC,kBAAkB,EAAE,KAAK;IACzB,cAAc,EAAE,IAAI;IACpB,0BAA0B,EAAE,KAAK;IACjC,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,KAAK;IAC1B,0BAA0B,EAAE,KAAK;IACjC,cAAc,EAAE,uBAAuB;CACxC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE,CAChC,YAAY,CAAC,sBAAsB,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC5D,QAAQ;IACN;;;OAGG;IACH,CAAC,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OAAO,EAAE,CAAC;QAC3D,CAAC;QACD,KAAK,sBAAsB,CAAC,0BAA0B,CAAC,CAAC,CAAC;YACvD,OAAO,EAAE,GAAG,KAAK,EAAE,0BAA0B,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;QAClE,CAAC;QACD,KAAK,sBAAsB,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC9C,OAAO,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;QACtD,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { SnapMode } from \"@itwin/core-frontend\";\nimport type { ActionsUnion } from \"./redux-ts\";\nimport { createAction } from \"./redux-ts\";\nimport {\n SYSTEM_PREFERRED_COLOR_THEME,\n type ThemeId,\n TOOLBAR_OPACITY_DEFAULT,\n WIDGET_OPACITY_DEFAULT,\n} from \"../theme/ThemeId\";\nimport type { ConfigurableUiContent } from \"../configurableui/ConfigurableUiContent\";\nimport type { Toolbar } from \"../toolbar/Toolbar\";\nimport type { ThemeManager } from \"../theme/ThemeManager\";\nimport type { SnapModeField } from \"../statusfields/SnapMode\";\nimport type { ToolbarDragInteractionContext } from \"../toolbar/DragInteraction\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Action Ids used by Redux and to send sync UI components. Typically used to refresh visibility or enable state of control.\n * Since these are also used as sync ids they should be in lowercase.\n * @note This is used by sync UI event APIs.\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport enum ConfigurableUiActionId {\n SetSnapMode = \"configurableui:set_snapmode\",\n SetTheme = \"configurableui:set_theme\",\n SetToolPrompt = \"configurableui:set_toolprompt\",\n SetWidgetOpacity = \"configurableui:set_widget_opacity\",\n SetDragInteraction = \"configurableui:set-drag-interaction\",\n SetShowWidgetIcon = \"configurableui:set-show-widget-icon\",\n AutoCollapseUnpinnedPanels = \"configurableui:set-auto-collapse-unpinned-panels\",\n SetViewOverlayDisplay = \"configurableui:set-view-overlay-display\",\n AnimateToolSettings = \"configurableui:set-animate-tool-settings\",\n UseToolAsToolSettingsLabel = \"configurableui:set-use-tool-as-tool-settings-label\",\n SetToolbarOpacity = \"configurableui:set-toolbar-opacity\",\n}\n\n/** The portion of state managed by the ConfigurableUiReducer.\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport interface ConfigurableUiState {\n /** @deprecated in 4.15.0. Use `snapMode` prop of {@link SnapModeField} instead. */\n snapMode: number;\n /** @deprecated in 4.15.0. Not used by AppUI components. */\n toolPrompt: string;\n /** @deprecated in 4.15.0. Use `theme` prop of {@link ThemeManager} instead. */\n theme: string;\n /** @deprecated in 4.15.0. Use `widgetOpacity` prop of {@link ConfigurableUiContent} instead. */\n widgetOpacity: number;\n /** @deprecated in 4.15.0. Use `useDragInteraction` prop of {@link Toolbar} or {@link ToolbarDragInteractionContext}. */\n useDragInteraction: boolean;\n /** @deprecated in 4.15.0. Use `widgetIcon` prop of {@link ConfigurableUiContent} instead. */\n showWidgetIcon: boolean;\n /** @deprecated in 4.15.0. Use `collapsePanels` prop of {@link ConfigurableUiContent} instead. */\n autoCollapseUnpinnedPanels: boolean;\n /** @deprecated in 4.15.0. Use `viewOverlay` prop of {@link ConfigurableUiContent} instead. */\n viewOverlayDisplay: boolean;\n /** @deprecated in 4.15.0. Use `animateToolSettings` prop of {@link ConfigurableUiContent} instead. */\n animateToolSettings: boolean;\n /** @deprecated in 4.15.0. Use `animateToolSettings` prop of {@link ConfigurableUiContent} instead. */\n useToolAsToolSettingsLabel: boolean;\n /** @deprecated in 4.15.0. Use `toolbarOpacity` prop of {@link ConfigurableUiContent}. */\n toolbarOpacity: number;\n}\n\n/** Used on first call of ConfigurableUiReducer. */\nconst initialConfigurableUiState: ConfigurableUiState = {\n snapMode: SnapMode.NearestKeypoint as number,\n toolPrompt: \"\",\n theme: SYSTEM_PREFERRED_COLOR_THEME,\n widgetOpacity: WIDGET_OPACITY_DEFAULT,\n useDragInteraction: false,\n showWidgetIcon: true,\n autoCollapseUnpinnedPanels: false,\n viewOverlayDisplay: true,\n animateToolSettings: false,\n useToolAsToolSettingsLabel: false,\n toolbarOpacity: TOOLBAR_OPACITY_DEFAULT,\n};\n\n/** An object with a function that creates each ConfigurableUiReducer that can be handled by our reducer.\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport const ConfigurableUiActions = {\n setSnapMode: (snapMode: number) =>\n createAction(ConfigurableUiActionId.SetSnapMode, snapMode),\n setTheme:\n /**\n * Use `UiFramework.setColorTheme` instead which is conveniently typed with available theme union.\n * @param theme ThemeId\n */\n (theme: string) => createAction(ConfigurableUiActionId.SetTheme, theme),\n setToolPrompt: (toolPrompt: string) =>\n createAction(ConfigurableUiActionId.SetToolPrompt, toolPrompt),\n setWidgetOpacity: (opacity: number) =>\n createAction(ConfigurableUiActionId.SetWidgetOpacity, opacity),\n setDragInteraction: (dragInteraction: boolean) =>\n createAction(ConfigurableUiActionId.SetDragInteraction, dragInteraction),\n setShowWidgetIcon: (showWidgetIcon: boolean) =>\n createAction(ConfigurableUiActionId.SetShowWidgetIcon, showWidgetIcon),\n setAutoCollapseUnpinnedPanels: (autoCollapse: boolean) =>\n createAction(\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n autoCollapse\n ),\n setViewOverlayDisplay: (displayViewOverlay: boolean) =>\n createAction(\n ConfigurableUiActionId.SetViewOverlayDisplay,\n displayViewOverlay\n ),\n setAnimateToolSettings: (animateToolSettings: boolean) =>\n createAction(\n ConfigurableUiActionId.AnimateToolSettings,\n animateToolSettings\n ),\n setUseToolAsToolSettingsLabel: (useToolAsToolSettingsLabel: boolean) =>\n createAction(\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n useToolAsToolSettingsLabel\n ),\n setToolbarOpacity: (opacity: number) =>\n createAction(ConfigurableUiActionId.SetToolbarOpacity, opacity),\n};\n\n/** Union of ConfigurableUi Redux actions\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport type ConfigurableUiActionsUnion = ActionsUnion<\n typeof ConfigurableUiActions\n>;\n\n/** Handles actions to update ConfigurableUiState.\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport function ConfigurableUiReducer(\n state: ConfigurableUiState = initialConfigurableUiState,\n action: ConfigurableUiActionsUnion\n): ConfigurableUiState {\n const outState = state;\n\n switch (action.type) {\n case ConfigurableUiActionId.SetSnapMode: {\n return { ...state, snapMode: action.payload };\n }\n case ConfigurableUiActionId.SetToolPrompt: {\n return { ...state, toolPrompt: action.payload };\n }\n case ConfigurableUiActionId.SetTheme: {\n return { ...state, theme: action.payload as ThemeId }; // Need to cast because of the (string & {}) trick.\n }\n case ConfigurableUiActionId.SetWidgetOpacity: {\n return { ...state, widgetOpacity: action.payload };\n }\n case ConfigurableUiActionId.SetDragInteraction: {\n return { ...state, useDragInteraction: action.payload };\n }\n case ConfigurableUiActionId.SetShowWidgetIcon: {\n return { ...state, showWidgetIcon: action.payload };\n }\n case ConfigurableUiActionId.AutoCollapseUnpinnedPanels: {\n return { ...state, autoCollapseUnpinnedPanels: action.payload };\n }\n case ConfigurableUiActionId.SetViewOverlayDisplay: {\n return { ...state, viewOverlayDisplay: action.payload };\n }\n case ConfigurableUiActionId.AnimateToolSettings: {\n return { ...state, animateToolSettings: action.payload };\n }\n case ConfigurableUiActionId.UseToolAsToolSettingsLabel: {\n return { ...state, useToolAsToolSettingsLabel: action.payload };\n }\n case ConfigurableUiActionId.SetToolbarOpacity: {\n return { ...state, toolbarOpacity: action.payload };\n }\n }\n return outState;\n}\n"]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module State
|
|
3
3
|
*/
|
|
4
|
-
import type { ConfigurableUiState } from "
|
|
5
|
-
import { ConfigurableUiReducer } from "../configurableui/state";
|
|
4
|
+
import type { ConfigurableUiState } from "./ConfigurableUiState";
|
|
6
5
|
import type { SessionState } from "./SessionState";
|
|
7
|
-
import { SessionStateReducer } from "./SessionState";
|
|
8
6
|
/** Interface combining all the Framework state interfaces.
|
|
9
7
|
* @public
|
|
8
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
10
9
|
*/
|
|
11
10
|
export interface FrameworkState {
|
|
12
11
|
configurableUiState: ConfigurableUiState;
|
|
@@ -14,12 +13,10 @@ export interface FrameworkState {
|
|
|
14
13
|
}
|
|
15
14
|
/** Framework reducer that combines the [[ConfigurableUiReducer]] and [[SessionStateReducer]].
|
|
16
15
|
* @public
|
|
16
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
17
17
|
*/
|
|
18
|
-
export declare const FrameworkReducer: (
|
|
19
|
-
configurableUiState:
|
|
20
|
-
sessionState:
|
|
21
|
-
}>,
|
|
22
|
-
configurableUiState: typeof ConfigurableUiReducer;
|
|
23
|
-
sessionState: typeof SessionStateReducer;
|
|
24
|
-
}>;
|
|
18
|
+
export declare const FrameworkReducer: import("redux").Reducer<import("redux").CombinedState<{
|
|
19
|
+
configurableUiState: ConfigurableUiState;
|
|
20
|
+
sessionState: never;
|
|
21
|
+
}>, import("./ConfigurableUiState").ConfigurableUiActionsUnion | import("./SessionState").SessionStateActionsUnion>;
|
|
25
22
|
//# sourceMappingURL=FrameworkState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameworkState.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/redux/FrameworkState.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"FrameworkState.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/redux/FrameworkState.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;mHAG3B,CAAC"}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
/** @packageDocumentation
|
|
6
6
|
* @module State
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { combineReducers } from "redux";
|
|
9
|
+
import { ConfigurableUiReducer } from "./ConfigurableUiState";
|
|
10
10
|
import { SessionStateReducer } from "./SessionState";
|
|
11
11
|
/** Framework reducer that combines the [[ConfigurableUiReducer]] and [[SessionStateReducer]].
|
|
12
12
|
* @public
|
|
13
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
13
14
|
*/
|
|
14
15
|
export const FrameworkReducer = combineReducers({
|
|
15
16
|
configurableUiState: ConfigurableUiReducer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameworkState.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/FrameworkState.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;
|
|
1
|
+
{"version":3,"file":"FrameworkState.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/FrameworkState.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAarD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;IAC9C,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { combineReducers } from \"redux\";\nimport type { ConfigurableUiState } from \"./ConfigurableUiState\";\nimport { ConfigurableUiReducer } from \"./ConfigurableUiState\";\nimport type { SessionState } from \"./SessionState\";\nimport { SessionStateReducer } from \"./SessionState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Interface combining all the Framework state interfaces.\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport interface FrameworkState {\n configurableUiState: ConfigurableUiState;\n sessionState: SessionState;\n}\n\n/** Framework reducer that combines the [[ConfigurableUiReducer]] and [[SessionStateReducer]].\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport const FrameworkReducer = combineReducers({\n configurableUiState: ConfigurableUiReducer,\n sessionState: SessionStateReducer,\n});\n"]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** NameToReducerMap used by Reducer Registry
|
|
5
5
|
* @public
|
|
6
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
6
7
|
*/
|
|
7
8
|
export interface NameToReducerMap {
|
|
8
9
|
[name: string]: (state: any, action: any) => any;
|
|
@@ -11,6 +12,7 @@ export interface NameToReducerMap {
|
|
|
11
12
|
* Follows the example at http://nicolasgallagher.com/redux-modules-and-code-splitting/
|
|
12
13
|
* Allows for small modules to provide their own reducers so that the they can manage their own state
|
|
13
14
|
* @beta
|
|
15
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
14
16
|
*/
|
|
15
17
|
export declare class ReducerRegistry {
|
|
16
18
|
private _onReducerListChanged;
|
|
@@ -32,6 +34,7 @@ export declare class ReducerRegistry {
|
|
|
32
34
|
}
|
|
33
35
|
/** ReducerRegistryInstance singleton instance of Reducer Registry
|
|
34
36
|
* @beta
|
|
37
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
35
38
|
*/
|
|
36
39
|
export declare const ReducerRegistryInstance: ReducerRegistry;
|
|
37
40
|
//# sourceMappingURL=ReducerRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReducerRegistry.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"ReducerRegistry.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAIA;;GAEG;AAOH;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;CAClD;AAED;;;;;GAKG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,qBAAqB,CAEf;IACd,OAAO,CAAC,SAAS,CAAmB;IAEpC,sHAAsH;;IAKtH,+CAA+C;IACxC,eAAe,CACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG;IAgB3C;;OAEG;IACI,iBAAiB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI;IAIvE,0CAA0C;IACnC,WAAW;IAIlB;;OAEG;IACI,aAAa;CAMrB;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,iBAAwB,CAAC"}
|
|
@@ -11,6 +11,7 @@ import { UiFramework } from "../UiFramework";
|
|
|
11
11
|
* Follows the example at http://nicolasgallagher.com/redux-modules-and-code-splitting/
|
|
12
12
|
* Allows for small modules to provide their own reducers so that the they can manage their own state
|
|
13
13
|
* @beta
|
|
14
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
14
15
|
*/
|
|
15
16
|
export class ReducerRegistry {
|
|
16
17
|
/** ReducerRegistry constructor that initializes an empty reducer map to be populated by called to registerReducer. */
|
|
@@ -50,6 +51,7 @@ export class ReducerRegistry {
|
|
|
50
51
|
}
|
|
51
52
|
/** ReducerRegistryInstance singleton instance of Reducer Registry
|
|
52
53
|
* @beta
|
|
54
|
+
* @deprecated in 4.15.0. Use your preferred state management library instead.
|
|
53
55
|
*/
|
|
54
56
|
export const ReducerRegistryInstance = new ReducerRegistry();
|
|
55
57
|
//# sourceMappingURL=ReducerRegistry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ReducerRegistry.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/ReducerRegistry.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAY7C;;;;;GAKG;AACH,MAAM,OAAO,eAAe;IAM1B,sHAAsH;IACtH;QACE,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,+CAA+C;IACxC,eAAe,CACpB,IAAY,EACZ,OAAyC;QAEzC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YACzB,mDAAmD;YACnD,MAAM,IAAI,OAAO,CACf,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,EAChC,wCAAwC,IAAI,yBAAyB,CACtE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;QACxD,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,QAA8C;QACrE,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;IACxC,CAAC;IAED,0CAA0C;IACnC,WAAW;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,aAAa;QAClB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,eAAe,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { UiError } from \"@itwin/appui-abstract\";\nimport { UiFramework } from \"../UiFramework\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** NameToReducerMap used by Reducer Registry\n * @public\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport interface NameToReducerMap {\n [name: string]: (state: any, action: any) => any;\n}\n\n/** Redux Reducer Registry.\n * Follows the example at http://nicolasgallagher.com/redux-modules-and-code-splitting/\n * Allows for small modules to provide their own reducers so that the they can manage their own state\n * @beta\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport class ReducerRegistry {\n private _onReducerListChanged:\n | ((reducers: NameToReducerMap) => void)\n | undefined;\n private _reducers: NameToReducerMap;\n\n /** ReducerRegistry constructor that initializes an empty reducer map to be populated by called to registerReducer. */\n constructor() {\n this._reducers = {};\n }\n\n /** Call to register a reducer and its name. */\n public registerReducer(\n name: string,\n reducer: (state: any, action: any) => any\n ) {\n if (this._reducers[name]) {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Redux Reducer with matching name of '${name}' is already registered`\n );\n }\n\n this._reducers = { ...this._reducers, [name]: reducer };\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n\n /** Supports a single listener which should be the Redux store, see [[StoreManager]].\n * @internal\n */\n public setChangeListener(listener: (reducers: NameToReducerMap) => void) {\n this._onReducerListChanged = listener;\n }\n\n /** Returns map of registered Reducers. */\n public getReducers() {\n return this._reducers;\n }\n\n /** Clear reducers only required for unit testing\n * @internal\n */\n public clearReducers() {\n this._reducers = {};\n if (this._onReducerListChanged) {\n this._onReducerListChanged(this._reducers);\n }\n }\n}\n\n/** ReducerRegistryInstance singleton instance of Reducer Registry\n * @beta\n * @deprecated in 4.15.0. Use your preferred state management library instead.\n */\nexport const ReducerRegistryInstance = new ReducerRegistry();\n"]}
|