@itwin/appui-react 4.14.1 → 4.15.1

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.
Files changed (1247) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +202 -140
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +432 -301
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.json +8 -4
  7. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  8. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  10. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  12. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +6 -7
  14. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  16. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  20. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  23. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  25. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  26. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  29. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  30. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  31. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  32. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +0 -1
  33. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  34. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  35. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  36. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  37. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +3 -2
  38. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/backstage/BackstageManager.js +5 -7
  40. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  41. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +1 -0
  43. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  44. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  46. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  47. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  48. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  49. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +64 -18
  51. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  52. package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
  53. package/lib/cjs/appui-react/content/ContentControl.js +1 -1
  54. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  55. package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
  56. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  59. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  62. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
  63. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
  65. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  66. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  67. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  69. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
  70. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  71. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  72. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  73. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  75. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  76. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  78. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  79. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  80. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  82. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  83. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
  84. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
  86. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  87. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  88. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
  89. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  90. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  91. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  94. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
  96. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  97. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
  99. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  100. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
  101. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
  103. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  104. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  105. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
  106. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  107. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  111. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  112. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  113. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  114. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  115. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +4 -3
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.js +1 -1
  118. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  119. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  120. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  121. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  122. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  124. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  125. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  127. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  128. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  129. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
  130. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  131. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  132. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
  134. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  135. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  136. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  138. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  139. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
  140. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  141. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  142. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  143. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
  144. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  145. package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
  146. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  147. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  148. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  149. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  150. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  151. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  155. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
  157. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  158. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  159. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  160. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
  161. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  162. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  163. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  164. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  165. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  166. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  167. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  168. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  169. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  170. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  171. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
  172. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  173. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  174. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  175. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
  176. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  177. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  178. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  179. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  180. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  181. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  182. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
  183. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  184. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  185. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  189. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  190. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  191. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  192. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  193. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  195. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  196. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  197. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  198. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
  199. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  200. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  201. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  202. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
  203. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  204. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  206. package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  208. package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
  210. package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
  212. package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
  213. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  214. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  215. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  217. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  219. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  221. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  223. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  225. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  227. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  229. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  230. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  231. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  232. package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
  234. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  236. package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
  238. package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
  240. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  241. package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  242. package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  244. package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  245. package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
  247. package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
  248. package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  249. package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
  250. package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
  252. package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
  253. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
  257. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
  259. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  260. package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  261. package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
  262. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  263. package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  264. package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
  265. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  268. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  269. package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
  270. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  271. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  273. package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  275. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  277. package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
  279. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  280. package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
  282. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  283. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/messages/InputField.js +6 -2
  285. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  286. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  287. package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
  288. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
  290. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
  292. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  293. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  294. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  295. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/messages/Pointer.js +11 -3
  297. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  298. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  299. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  300. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  301. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  302. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  303. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  304. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  305. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  307. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  309. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  311. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  313. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  315. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
  316. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  317. package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
  318. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  319. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  320. package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
  321. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  322. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  323. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  324. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
  325. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  326. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  327. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  328. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  329. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
  331. package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
  332. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  333. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  334. package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
  335. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  336. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  337. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  339. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  340. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  341. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  343. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  344. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  345. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  346. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  347. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  348. package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
  349. package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
  350. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
  351. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  352. package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
  353. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  354. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
  355. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  356. package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
  357. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  358. package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
  359. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  360. package/lib/cjs/appui-react/redux/SessionState.js +11 -10
  361. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  362. package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
  363. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.js +3 -3
  365. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  366. package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
  367. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
  369. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  370. package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
  371. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  372. package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
  373. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  374. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  375. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  378. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  379. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  382. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  383. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  386. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  387. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  390. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
  391. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  392. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  393. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  395. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
  396. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
  398. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  399. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
  400. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  401. package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
  402. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
  404. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
  406. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  407. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -0
  408. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  409. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  410. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  411. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  413. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
  415. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  416. package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
  417. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  418. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -0
  419. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  421. package/lib/cjs/appui-react/shared/MenuItem.d.ts +45 -12
  422. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
  424. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  425. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
  426. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  427. package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
  428. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  429. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  430. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  431. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  432. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
  433. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  434. package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
  435. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Field.js +1 -1
  437. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
  439. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
  441. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  442. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  443. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
  444. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  445. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  448. package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
  449. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
  451. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
  453. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  454. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  455. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  456. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  458. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
  463. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
  465. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  467. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  468. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
  470. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  471. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  472. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  473. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  475. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  476. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  477. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
  478. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  479. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
  480. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  481. package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
  482. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  483. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
  484. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  485. package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
  486. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  488. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
  490. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  492. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  493. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  494. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  495. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  497. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  498. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  499. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  500. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  501. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  502. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  504. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  505. package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  506. package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
  507. package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
  508. package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
  509. package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
  510. package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
  511. package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
  512. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
  513. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  514. package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
  515. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  516. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
  517. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  518. package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
  519. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  520. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
  521. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  522. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  523. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  524. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  527. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  528. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  529. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  530. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  531. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  534. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js +3 -3
  535. package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  536. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  537. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  538. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  539. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  540. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
  541. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  542. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
  543. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  544. package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
  545. package/lib/cjs/appui-react/tools/ToolbarItems.js.map +1 -0
  546. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  547. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  548. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  549. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  550. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  551. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  552. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  553. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  554. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  555. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  556. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  557. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  558. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  560. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  561. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  563. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  565. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  567. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  568. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  569. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  570. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  571. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  572. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  573. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  574. package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
  575. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  576. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
  577. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  578. package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
  579. package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
  580. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  581. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  582. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
  583. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  584. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  585. package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
  586. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  587. package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
  589. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  590. package/lib/cjs/appui-react/widget-panels/Frontstage.js +21 -17
  591. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  592. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  593. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -0
  594. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  595. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  596. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  597. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
  598. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  599. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  600. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
  601. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  602. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  603. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
  604. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  605. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  607. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  608. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  609. package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
  610. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  611. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  612. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
  613. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  614. package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
  615. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  616. package/lib/cjs/appui-react.d.ts +10 -3
  617. package/lib/cjs/appui-react.d.ts.map +1 -1
  618. package/lib/cjs/appui-react.js +10 -3
  619. package/lib/cjs/appui-react.js.map +1 -1
  620. package/lib/esm/appui-react/UiFramework.d.ts +202 -140
  621. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  622. package/lib/esm/appui-react/UiFramework.js +428 -297
  623. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  624. package/lib/esm/appui-react/UiFramework.json +8 -4
  625. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  626. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  627. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  628. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  630. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  631. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
  632. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  633. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  634. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  635. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  636. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  637. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  638. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  639. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  640. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  641. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  642. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  643. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  644. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  645. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  646. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  647. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  648. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  649. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  650. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
  651. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  652. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  653. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  654. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  655. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
  656. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  657. package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
  658. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  659. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  660. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  661. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  662. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  663. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  664. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  665. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  666. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  667. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  668. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
  669. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  670. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  671. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  672. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  673. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  674. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  675. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  676. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  677. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  678. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  679. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  680. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  681. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  682. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  683. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  684. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  685. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  686. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  687. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  688. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  689. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  690. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  692. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  693. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  694. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  696. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  697. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  698. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  699. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  700. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  701. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  702. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  703. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  704. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  705. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  706. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  707. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  708. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  710. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  711. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  712. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  713. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  714. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  715. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  717. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  718. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  719. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  720. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  721. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  722. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  723. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  724. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  725. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  727. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  728. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  729. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  731. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  732. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  733. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -3
  734. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  735. package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -1
  736. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  737. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  738. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  739. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  740. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  741. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  742. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  743. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  745. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  746. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  747. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  748. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  749. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  750. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  752. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  754. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  755. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  756. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  757. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  759. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  760. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  761. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  762. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  763. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  764. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  765. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  766. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  767. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  768. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  769. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  771. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  773. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  775. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  776. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  778. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  779. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  780. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  781. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  782. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  783. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  784. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  785. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  786. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  787. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  788. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  790. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  791. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  792. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  793. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  794. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  795. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  796. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  797. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  798. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  799. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  800. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  801. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  802. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  803. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  805. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  807. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  820. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  821. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  822. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  823. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  824. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  828. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  829. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  830. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  831. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  832. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  848. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  849. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  850. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  852. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  854. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  856. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  857. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  858. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  860. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  866. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  867. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  868. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  869. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  870. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  872. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  875. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  877. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  878. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  879. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  880. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  882. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  884. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  886. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  895. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  896. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  897. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  898. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  899. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  900. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  901. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  902. package/lib/esm/appui-react/messages/InputField.js +6 -2
  903. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  904. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  905. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  906. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  908. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  910. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  911. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  912. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  913. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  914. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  915. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  916. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  917. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  918. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  919. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  920. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  921. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  922. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  923. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  925. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  927. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  929. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  930. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  931. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  932. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  933. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  934. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  935. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  936. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  937. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  938. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  939. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  940. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  941. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  942. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  943. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  944. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  945. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  946. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  947. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  948. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  949. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  950. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  951. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  952. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  953. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  954. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  955. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  956. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  957. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  958. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  959. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  960. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  961. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  962. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  963. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  964. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  965. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  966. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  967. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  968. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  969. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  970. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  971. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  972. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  973. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  974. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  975. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  976. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  977. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  978. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  979. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  980. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  981. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  982. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  983. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  984. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  985. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  986. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  987. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  988. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  989. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  990. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  991. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  992. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  993. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  994. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  995. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  996. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  997. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  998. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  999. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  1000. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  1001. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1002. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1003. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1004. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1005. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1006. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1007. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1008. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1009. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1011. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1013. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1014. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1015. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1016. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1017. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1018. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1020. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1022. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1023. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1024. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1025. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1026. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1027. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1028. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1029. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1031. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1033. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1035. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1037. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1038. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1039. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1040. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1041. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1042. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1043. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1044. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1045. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1046. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1047. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1048. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1049. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1050. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1051. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1052. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1053. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1055. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1057. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1059. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1060. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1061. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1062. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1063. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1065. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1067. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1069. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1071. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1079. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1081. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1083. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1084. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1085. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1086. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1087. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1088. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1094. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1096. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1098. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1100. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1102. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1104. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1106. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1108. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1109. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1110. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1113. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1115. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1117. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1118. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1119. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1120. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1121. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1122. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1123. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1124. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1125. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1126. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1127. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1128. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1129. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1130. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1131. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1132. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1133. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1134. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1135. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1137. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1139. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1140. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1141. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1142. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1144. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1146. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1148. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1152. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js +3 -3
  1153. package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
  1154. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1155. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1156. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  1157. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1158. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
  1159. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1160. package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
  1161. package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  1162. package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
  1163. package/lib/esm/appui-react/tools/ToolbarItems.js.map +1 -0
  1164. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1165. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  1166. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1167. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1168. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  1169. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1170. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1171. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1172. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1173. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1174. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  1175. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1176. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1177. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1178. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1179. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1180. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  1181. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1182. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  1183. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1184. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  1185. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1186. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1187. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  1188. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  1189. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1190. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1191. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1192. package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
  1193. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1194. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
  1195. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  1196. package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
  1197. package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
  1198. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  1199. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  1200. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
  1201. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  1202. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1203. package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
  1204. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1205. package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  1206. package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
  1207. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1208. package/lib/esm/appui-react/widget-panels/Frontstage.js +21 -17
  1209. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1210. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -0
  1212. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1213. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  1214. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1215. package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
  1216. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1217. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1218. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
  1219. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1220. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1221. package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
  1222. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1223. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1224. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1225. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1226. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1227. package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
  1228. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1229. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1230. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
  1231. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1232. package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
  1233. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1234. package/lib/esm/appui-react.d.ts +10 -3
  1235. package/lib/esm/appui-react.d.ts.map +1 -1
  1236. package/lib/esm/appui-react.js +10 -3
  1237. package/lib/esm/appui-react.js.map +1 -1
  1238. package/lib/public/locales/en/UiFramework.json +8 -4
  1239. package/package.json +8 -8
  1240. package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
  1241. package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
  1242. package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
  1243. package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
  1244. package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
  1245. package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
  1246. package/lib/esm/appui-react/configurableui/state.js.map +0 -1
  1247. package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
@@ -5,6 +5,7 @@ import type { ConditionalBooleanValue, ConditionalStringValue, StringGetter } fr
5
5
  import type { BadgeType, IconProps, IconSpec } from "@itwin/core-react";
6
6
  /** Definition that specifies properties shared between many ConfigurableUi components.
7
7
  * @public
8
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
8
9
  */
9
10
  export interface ItemProps extends IconProps {
10
11
  /** if true component will be hidden - defaults to false */
@@ -36,18 +37,21 @@ export interface ItemProps extends IconProps {
36
37
  }
37
38
  /** Properties for a Tool item with a tool id.
38
39
  * @public
40
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
39
41
  */
40
42
  export interface ToolItemProps extends ItemProps, CommandHandler {
41
43
  toolId: string;
42
44
  }
43
45
  /** Properties for a Command item.
44
46
  * @public
47
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
45
48
  */
46
49
  export interface CommandItemProps extends ItemProps, CommandHandler {
47
50
  commandId?: string;
48
51
  }
49
52
  /** Definition for a command handler.
50
53
  * @public
54
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
51
55
  */
52
56
  export interface CommandHandler {
53
57
  /** Function to execute */
@@ -1 +1 @@
1
- {"version":3,"file":"ItemProps.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC7C,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC/C,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2KAA2K;IAC3K,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,wCAAwC;IACxC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,sBAAsB,C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G;;GAEG","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 Item\n */\n\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport type { BadgeType, IconProps, IconSpec } from \"@itwin/core-react\";\n/** Definition that specifies properties shared between many ConfigurableUi components.\n * @public\n */\nexport interface ItemProps extends IconProps {\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n}\n\n/** Properties for a Tool item with a tool id.\n * @public\n */\nexport interface ToolItemProps extends ItemProps, CommandHandler {\n toolId: string;\n}\n\n/** Properties for a Command item.\n * @public\n */\nexport interface CommandItemProps extends ItemProps, CommandHandler {\n commandId?: string;\n}\n\n/** Definition for a command handler.\n * @public\n */\nexport interface CommandHandler {\n /** Function to execute */\n execute?: (args?: any) => any;\n /** Parameters passed to the function */\n parameters?: any;\n /** Function to get the parameters passed to the function */\n getCommandArgs?: () => any[];\n}\n"]}
1
+ {"version":3,"file":"ItemProps.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ItemProps.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","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 Item\n */\n\nimport type {\n ConditionalBooleanValue,\n ConditionalStringValue,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport type { BadgeType, IconProps, IconSpec } from \"@itwin/core-react\";\nimport type { ToolbarActionItem } from \"../toolbar/ToolbarItem\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Definition that specifies properties shared between many ConfigurableUi components.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.\n */\nexport interface ItemProps extends IconProps {\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n}\n\n/** Properties for a Tool item with a tool id.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.\n */\nexport interface ToolItemProps extends ItemProps, CommandHandler {\n toolId: string;\n}\n\n/** Properties for a Command item.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.\n */\nexport interface CommandItemProps extends ItemProps, CommandHandler {\n commandId?: string;\n}\n\n/** Definition for a command handler.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.\n */\nexport interface CommandHandler {\n /** Function to execute */\n execute?: (args?: any) => any;\n /** Parameters passed to the function */\n parameters?: any;\n /** Function to get the parameters passed to the function */\n getCommandArgs?: () => any[];\n}\n"]}
@@ -2,41 +2,73 @@
2
2
  * @module Item
3
3
  */
4
4
  import * as React from "react";
5
- import type { AbstractMenuItemProps } from "@itwin/appui-abstract";
6
- import type { IconSpec } from "@itwin/core-react";
5
+ import type { AbstractMenuItemProps, StringGetter } from "@itwin/appui-abstract";
6
+ import { ConditionalBooleanValue } from "@itwin/appui-abstract";
7
+ import type { BadgeType, IconProps, IconSpec } from "@itwin/core-react";
7
8
  import type { ActionButtonItemDef } from "./ActionButtonItemDef";
8
9
  import { ItemDefBase } from "./ItemDefBase";
9
- import type { CommandItemProps, ItemProps } from "./ItemProps";
10
+ import type { CommandItemProps } from "./ItemProps";
10
11
  import type { ConditionalStringValue } from "./ConditionalValue";
11
- /** Menu Item Properties
12
+ /** Properties for context menu items.
12
13
  * @public
13
- * @deprecated in 4.11.x. Please use {@link CursorMenuItemProps}.
14
14
  */
15
- export type MenuItemProps = AbstractMenuItemProps;
16
- /**
17
- * Properties for context menu items.
18
- * @public
19
- */
20
- export interface CursorMenuItemProps extends ItemProps {
15
+ export interface CursorMenuItemProps extends IconProps {
21
16
  /** The id for the menu item. */
22
17
  id: string;
23
- /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified. */
18
+ /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified.
19
+ * @deprecated in 4.15.0. Use properties of this object instead.
20
+ */
24
21
  item?: CommandItemProps;
22
+ /** Function to execute. */
23
+ execute?: () => any;
25
24
  /** Nested array of item props. Either 'item' or 'submenu' must be specified. */
26
25
  submenu?: CursorMenuItemProps[];
27
26
  /** Icon to display on right side of the menu item.
28
27
  * Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id.
29
28
  */
30
29
  iconRight?: string | ConditionalStringValue;
30
+ /** if true component will be hidden - defaults to false */
31
+ isHidden?: boolean | ConditionalBooleanValue;
32
+ /** if true component will be disabled - defaults to false */
33
+ isDisabled?: boolean | ConditionalBooleanValue;
34
+ /** if set, component will be considered "active" an will display an "active stripe" - defaults to false */
35
+ isActive?: boolean;
36
+ /** if set, component will be considered selected but will NOT display an "active stripe" - defaults to false. Typically used by buttons that toggle between two states. */
37
+ isPressed?: boolean;
38
+ /** can be used by application to store miscellaneous data. */
39
+ applicationData?: any;
40
+ /** Badge to be overlaid on the item. */
41
+ badgeType?: BadgeType;
42
+ /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */
43
+ icon?: IconSpec;
44
+ /** if set, it is used to explicitly set the label shown by a component. */
45
+ label?: string | StringGetter | ConditionalStringValue;
46
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */
47
+ labelKey?: string;
48
+ /** if set, it is used to explicitly set the description shown by a component. */
49
+ description?: string | StringGetter | ConditionalStringValue;
50
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */
51
+ descriptionKey?: string;
52
+ /** used to explicitly set the tooltip shown by a component. */
53
+ tooltip?: string | StringGetter | ConditionalStringValue;
54
+ /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */
55
+ tooltipKey?: string;
31
56
  }
57
+ /** Menu Item Properties
58
+ * @public
59
+ * @deprecated in 4.11.0. Please use {@link CursorMenuItemProps}.
60
+ */
61
+ export type MenuItemProps = AbstractMenuItemProps;
32
62
  /** Menu Item
33
63
  * @alpha
64
+ * @deprecated in 4.15.0. Used in a deprecated class {@link MenuItemHelpers}.
34
65
  */
35
66
  export declare class MenuItem extends ItemDefBase {
36
67
  private _id;
37
68
  private _actionItem?;
38
69
  private _submenu;
39
70
  private _onSelection?;
71
+ private _execute?;
40
72
  /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */
41
73
  constructor(props: CursorMenuItemProps, onSelection?: () => void);
42
74
  get id(): string;
@@ -47,6 +79,7 @@ export declare class MenuItem extends ItemDefBase {
47
79
  }
48
80
  /** Menu Item helper methods
49
81
  * @alpha
82
+ * @deprecated in 4.15.0. Use {@link @itwin/core-react#ContextMenuItem} and {@link @itwin/core-react#ContextSubMenu} components.
50
83
  */
51
84
  export declare class MenuItemHelpers {
52
85
  static createMenuItems(itemPropsList: CursorMenuItemProps[], onSelection?: () => void): MenuItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,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16,7 @@ const CommandItemDef_1 = require("./CommandItemDef");
16
16
  const ItemDefBase_1 = require("./ItemDefBase");
17
17
  /** Menu Item
18
18
  * @alpha
19
+ * @deprecated in 4.15.0. Used in a deprecated class {@link MenuItemHelpers}.
19
20
  */
20
21
  class MenuItem extends ItemDefBase_1.ItemDefBase {
21
22
  /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */
@@ -37,6 +38,9 @@ class MenuItem extends ItemDefBase_1.ItemDefBase {
37
38
  if (!this.isDisabled)
38
39
  this.isDisabled = this._actionItem.isDisabled;
39
40
  }
41
+ else if (props.execute) {
42
+ this._execute = props.execute;
43
+ }
40
44
  else if (props.submenu) {
41
45
  props.submenu.forEach((childProps) => {
42
46
  const childItem = new MenuItem(childProps, onSelection);
@@ -45,7 +49,7 @@ class MenuItem extends ItemDefBase_1.ItemDefBase {
45
49
  }
46
50
  else {
47
51
  // eslint-disable-next-line deprecation/deprecation
48
- throw new appui_abstract_1.UiError(UiFramework_1.UiFramework.loggerCategory(this), `Either 'item' or 'submenu' must be specified for '${props.id}'.`);
52
+ throw new appui_abstract_1.UiError(UiFramework_1.UiFramework.loggerCategory(this), `Either 'item', 'execute' or 'submenu' must be specified for '${props.id}'.`);
49
53
  }
50
54
  this.iconRightSpec = props.iconRight;
51
55
  }
@@ -62,6 +66,8 @@ class MenuItem extends ItemDefBase_1.ItemDefBase {
62
66
  setTimeout(() => {
63
67
  if (this._actionItem)
64
68
  this._actionItem.execute();
69
+ else if (this._execute)
70
+ this._execute();
65
71
  });
66
72
  if (this._onSelection)
67
73
  this._onSelection();
@@ -70,6 +76,7 @@ class MenuItem extends ItemDefBase_1.ItemDefBase {
70
76
  exports.MenuItem = MenuItem;
71
77
  /** Menu Item helper methods
72
78
  * @alpha
79
+ * @deprecated in 4.15.0. Use {@link @itwin/core-react#ContextMenuItem} and {@link @itwin/core-react#ContextSubMenu} components.
73
80
  */
74
81
  class MenuItemHelpers {
75
82
  static createMenuItems(itemPropsList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AAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACS,CAClB,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtED,0CAsEC","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 Item\n */\n\nimport * as React from \"react\";\nimport type { AbstractMenuItemProps } from \"@itwin/appui-abstract\";\nimport { ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"@itwin/core-react\";\nimport { ContextMenuItem, ContextSubMenu } from \"@itwin/core-react\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport { CommandItemDef } from \"./CommandItemDef\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { CommandItemProps, ItemProps } from \"./ItemProps\";\nimport type { ConditionalStringValue } from \"./ConditionalValue\";\n\n/** Menu Item Properties\n * @public\n * @deprecated in 4.11.x. Please use {@link CursorMenuItemProps}.\n */\nexport type MenuItemProps = AbstractMenuItemProps;\n\n/**\n * Properties for context menu items.\n * @public\n */\nexport interface CursorMenuItemProps extends ItemProps {\n /** The id for the menu item. */\n id: string;\n /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified. */\n item?: CommandItemProps;\n /** Nested array of item props. Either 'item' or 'submenu' must be specified. */\n submenu?: CursorMenuItemProps[];\n /** Icon to display on right side of the menu item.\n * Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id.\n */\n iconRight?: string | ConditionalStringValue;\n}\n\n/** Menu Item\n * @alpha\n */\nexport class MenuItem extends ItemDefBase {\n private _id = \"\";\n private _actionItem?: ActionButtonItemDef;\n private _submenu: MenuItem[];\n private _onSelection?: () => void;\n\n /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */\n constructor(props: CursorMenuItemProps, onSelection?: () => void) {\n super(props);\n\n this._id = props.id;\n this._submenu = new Array<MenuItem>();\n this._onSelection = onSelection;\n\n if (props.item) {\n this._actionItem = new CommandItemDef(props.item);\n\n // Copy over icon, label & badgeType from the item\n if (!this.iconSpec) this.iconSpec = this._actionItem.iconSpec;\n if (!this.label) this.setLabel(this._actionItem.label);\n if (!this.badgeType) this.badgeType = this._actionItem.badgeType;\n if (!this.isDisabled) this.isDisabled = this._actionItem.isDisabled;\n } else if (props.submenu) {\n props.submenu.forEach((childProps: CursorMenuItemProps) => {\n const childItem = new MenuItem(childProps, onSelection);\n this._submenu.push(childItem);\n });\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item' or 'submenu' must be specified for '${props.id}'.`\n );\n }\n\n this.iconRightSpec = props.iconRight;\n }\n\n public get id(): string {\n return this._id;\n }\n\n public get submenu(): MenuItem[] {\n return this._submenu;\n }\n\n public get actionItem(): ActionButtonItemDef | undefined {\n return this._actionItem;\n }\n\n public iconRightSpec?: IconSpec;\n\n public itemPicked(): void {\n setTimeout(() => {\n if (this._actionItem) this._actionItem.execute();\n });\n\n if (this._onSelection) this._onSelection();\n }\n}\n\n/** Menu Item helper methods\n * @alpha\n */\nexport class MenuItemHelpers {\n public static createMenuItems(\n itemPropsList: CursorMenuItemProps[],\n onSelection?: () => void\n ): MenuItem[] {\n const menuItems = new Array<MenuItem>();\n itemPropsList.forEach((itemProps: CursorMenuItemProps) => {\n menuItems.push(new MenuItem(itemProps, onSelection));\n });\n return menuItems;\n }\n\n public static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[] {\n const itemNodes: React.ReactNode[] = [];\n\n itemList.forEach((item: MenuItem, index: number) => {\n const reactItem = this.createMenuItemNode(item, index);\n if (reactItem) itemNodes.push(reactItem);\n });\n\n return itemNodes;\n }\n\n private static createMenuItemNode(\n item: MenuItem,\n index: number\n ): React.ReactNode {\n let node: React.ReactNode = null;\n const label = item.label;\n const iconSpec = item.iconSpec;\n const iconRightSpec = item.iconRightSpec;\n const badgeType = item.badgeType;\n const isDisabled: boolean = ConditionalBooleanValue.getValue(\n item.isDisabled\n );\n\n if (item.actionItem) {\n const sel = () => item.itemPicked();\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n iconRight={iconRightSpec}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n } else {\n if (item.submenu && item.submenu.length > 0) {\n const items = this.createMenuItemNodes(item.submenu);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n }\n }\n\n return node;\n }\n}\n"]}
1
+ {"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/MenuItem.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAK/B,0DAAyE;AAEzE,kDAAoE;AACpE,gDAA6C;AAE7C,qDAAkD;AAClD,+CAA4C;AAkE5C;;;GAGG;AACH,MAAa,QAAS,SAAQ,yBAAW;IAOvC,uIAAuI;IACvI,YAAY,KAA0B,EAAE,WAAwB;QAC9D,KAAK,CAAC,KAAK,CAAC,CAAC;QARP,QAAG,GAAG,EAAE,CAAC;QAUf,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,EAAY,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACf,IAAI,CAAC,WAAW,GAAG,IAAI,+BAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAElD,kDAAkD;YA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AC,aAAa,CAAC;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,MAAM,UAAU,GAAY,wCAAuB,CAAC,QAAQ,CAC1D,IAAI,CAAC,UAAU,CAChB,CAAC;QAEF,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,IAAI,GAAG,CACL,oBAAC,4BAAe,IACd,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACU,CACnB,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAErD,IAAI,GAAG,CACL,oBAAC,2BAAc,IACb,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,UAAU,IAEnB,KAAK,CACS,CAClB,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtED,0CAsEC","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 Item\n */\n\nimport * as React from \"react\";\nimport type {\n AbstractMenuItemProps,\n StringGetter,\n} from \"@itwin/appui-abstract\";\nimport { ConditionalBooleanValue, UiError } from \"@itwin/appui-abstract\";\nimport type { BadgeType, IconProps, IconSpec } from \"@itwin/core-react\";\nimport { ContextMenuItem, ContextSubMenu } from \"@itwin/core-react\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport { CommandItemDef } from \"./CommandItemDef\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { CommandItemProps } from \"./ItemProps\";\nimport type { ConditionalStringValue } from \"./ConditionalValue\";\n\n/** Properties for context menu items.\n * @public\n */\nexport interface CursorMenuItemProps extends IconProps {\n /** The id for the menu item. */\n id: string;\n /** The item to execute when this item is invoked. Either 'item' or 'submenu' must be specified.\n * @deprecated in 4.15.0. Use properties of this object instead.\n */\n // eslint-disable-next-line deprecation/deprecation\n item?: CommandItemProps;\n /** Function to execute. */\n execute?: () => any;\n /** Nested array of item props. Either 'item' or 'submenu' must be specified. */\n submenu?: CursorMenuItemProps[];\n /** Icon to display on right side of the menu item.\n * Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id.\n */\n iconRight?: string | ConditionalStringValue;\n\n // #region \"ItemProps\" properties previously extended from deprecated type.\n\n /** if true component will be hidden - defaults to false */\n isHidden?: boolean | ConditionalBooleanValue;\n /** if true component will be disabled - defaults to false */\n isDisabled?: boolean | ConditionalBooleanValue;\n /** if set, component will be considered \"active\" an will display an \"active stripe\" - defaults to false */\n isActive?: boolean;\n /** if set, component will be considered selected but will NOT display an \"active stripe\" - defaults to false. Typically used by buttons that toggle between two states. */\n isPressed?: boolean;\n /** can be used by application to store miscellaneous data. */\n applicationData?: any;\n /** Badge to be overlaid on the item. */\n badgeType?: BadgeType;\n /** abstract icon definition, used when create itemDef from abstract item (ie. MenuItem) */\n icon?: IconSpec;\n\n /** if set, it is used to explicitly set the label shown by a component. */\n label?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n labelKey?: string;\n\n /** if set, it is used to explicitly set the description shown by a component. */\n description?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if description is not explicitly set. */\n descriptionKey?: string;\n /** used to explicitly set the tooltip shown by a component. */\n tooltip?: string | StringGetter | ConditionalStringValue;\n /** if set, it is used to define a key that is used to look up a localized string. This value is used only if label is not explicitly set. */\n tooltipKey?: string;\n\n // #endregion \"ItemProps\"\n}\n\n/* eslint-disable deprecation/deprecation */\n\n/** Menu Item Properties\n * @public\n * @deprecated in 4.11.0. Please use {@link CursorMenuItemProps}.\n */\nexport type MenuItemProps = AbstractMenuItemProps;\n\n/** Menu Item\n * @alpha\n * @deprecated in 4.15.0. Used in a deprecated class {@link MenuItemHelpers}.\n */\nexport class MenuItem extends ItemDefBase {\n private _id = \"\";\n private _actionItem?: ActionButtonItemDef;\n private _submenu: MenuItem[];\n private _onSelection?: () => void;\n private _execute?: () => void;\n\n /** onSelection is an optional parameter typically supplied to allow menu parent to close context menu when a menu item is selected. */\n constructor(props: CursorMenuItemProps, onSelection?: () => void) {\n super(props);\n\n this._id = props.id;\n this._submenu = new Array<MenuItem>();\n this._onSelection = onSelection;\n\n if (props.item) {\n this._actionItem = new CommandItemDef(props.item);\n\n // Copy over icon, label & badgeType from the item\n if (!this.iconSpec) this.iconSpec = this._actionItem.iconSpec;\n if (!this.label) this.setLabel(this._actionItem.label);\n if (!this.badgeType) this.badgeType = this._actionItem.badgeType;\n if (!this.isDisabled) this.isDisabled = this._actionItem.isDisabled;\n } else if (props.execute) {\n this._execute = props.execute;\n } else if (props.submenu) {\n props.submenu.forEach((childProps: CursorMenuItemProps) => {\n const childItem = new MenuItem(childProps, onSelection);\n this._submenu.push(childItem);\n });\n } else {\n // eslint-disable-next-line deprecation/deprecation\n throw new UiError(\n UiFramework.loggerCategory(this),\n `Either 'item', 'execute' or 'submenu' must be specified for '${props.id}'.`\n );\n }\n\n this.iconRightSpec = props.iconRight;\n }\n\n public get id(): string {\n return this._id;\n }\n\n public get submenu(): MenuItem[] {\n return this._submenu;\n }\n\n public get actionItem(): ActionButtonItemDef | undefined {\n return this._actionItem;\n }\n\n public iconRightSpec?: IconSpec;\n\n public itemPicked(): void {\n setTimeout(() => {\n if (this._actionItem) this._actionItem.execute();\n else if (this._execute) this._execute();\n });\n\n if (this._onSelection) this._onSelection();\n }\n}\n\n/** Menu Item helper methods\n * @alpha\n * @deprecated in 4.15.0. Use {@link @itwin/core-react#ContextMenuItem} and {@link @itwin/core-react#ContextSubMenu} components.\n */\nexport class MenuItemHelpers {\n public static createMenuItems(\n itemPropsList: CursorMenuItemProps[],\n onSelection?: () => void\n ): MenuItem[] {\n const menuItems = new Array<MenuItem>();\n itemPropsList.forEach((itemProps: CursorMenuItemProps) => {\n menuItems.push(new MenuItem(itemProps, onSelection));\n });\n return menuItems;\n }\n\n public static createMenuItemNodes(itemList: MenuItem[]): React.ReactNode[] {\n const itemNodes: React.ReactNode[] = [];\n\n itemList.forEach((item: MenuItem, index: number) => {\n const reactItem = this.createMenuItemNode(item, index);\n if (reactItem) itemNodes.push(reactItem);\n });\n\n return itemNodes;\n }\n\n private static createMenuItemNode(\n item: MenuItem,\n index: number\n ): React.ReactNode {\n let node: React.ReactNode = null;\n const label = item.label;\n const iconSpec = item.iconSpec;\n const iconRightSpec = item.iconRightSpec;\n const badgeType = item.badgeType;\n const isDisabled: boolean = ConditionalBooleanValue.getValue(\n item.isDisabled\n );\n\n if (item.actionItem) {\n const sel = () => item.itemPicked();\n node = (\n <ContextMenuItem\n key={index}\n onSelect={sel}\n icon={iconSpec}\n iconRight={iconRightSpec}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {label}\n </ContextMenuItem>\n );\n } else {\n if (item.submenu && item.submenu.length > 0) {\n const items = this.createMenuItemNodes(item.submenu);\n\n node = (\n <ContextSubMenu\n key={index}\n icon={iconSpec}\n label={label}\n badgeType={badgeType}\n disabled={isDisabled}\n >\n {items}\n </ContextSubMenu>\n );\n }\n }\n\n return node;\n }\n}\n"]}
@@ -7,12 +7,15 @@ import { ActionButtonItemDef } from "./ActionButtonItemDef";
7
7
  import type { ToolItemProps } from "./ItemProps";
8
8
  /** An Item that starts the execution of a Tool.
9
9
  * @public
10
+ * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.
10
11
  */
11
12
  export declare class ToolItemDef extends ActionButtonItemDef {
12
13
  toolId: string;
13
14
  constructor(toolItemProps: ToolItemProps, onItemExecuted?: OnItemExecutedFunc);
14
15
  get id(): string;
15
- /** Create a ToolItemDef that will run a registered tool. */
16
+ /** Create a ToolItemDef that will run a registered tool.
17
+ * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.
18
+ */
16
19
  static getItemDefForTool(tool: typeof Tool, icon?: string, ...args: any[]): ToolItemDef;
17
20
  }
18
21
  //# sourceMappingURL=ToolItemDef.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ToolItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;GAEG;AACH,qBAAa,WAAY,SAAQ,mBAAmB;IAC3C,MAAM,EAAE,MAAM,CAAM;gBAGzB,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,kBAAkB;IAerC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,4DAA4D;WAC9C,iBAAiB,CAC7B,IAAI,EAAE,OAAO,IAAI,EACjB,IAAI,CAAC,EAAE,MAAM,EACb,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,WAAW;CAaf"}
1
+ {"version":3,"file":"ToolItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ToolItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,mBAAmB;IAC3C,MAAM,EAAE,MAAM,CAAM;gBAGzB,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,kBAAkB;IAerC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;OAEG;WACW,iBAAiB,CAC7B,IAAI,EAAE,OAAO,IAAI,EACjB,IAAI,CAAC,EAAE,MAAM,EACb,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,WAAW;CAaf"}
@@ -10,8 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ToolItemDef = void 0;
11
11
  const core_frontend_1 = require("@itwin/core-frontend");
12
12
  const ActionButtonItemDef_1 = require("./ActionButtonItemDef");
13
+ /* eslint-disable deprecation/deprecation */
13
14
  /** An Item that starts the execution of a Tool.
14
15
  * @public
16
+ * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.
15
17
  */
16
18
  class ToolItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
17
19
  constructor(toolItemProps, onItemExecuted) {
@@ -29,7 +31,9 @@ class ToolItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
29
31
  get id() {
30
32
  return this.toolId;
31
33
  }
32
- /** Create a ToolItemDef that will run a registered tool. */
34
+ /** Create a ToolItemDef that will run a registered tool.
35
+ * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.
36
+ */
33
37
  static getItemDefForTool(tool, icon, ...args) {
34
38
  return new ToolItemDef({
35
39
  toolId: tool.toolId,
@@ -1 +1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;SAC/D,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,kCA0CC","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 Item\n */\n\nimport type { Tool } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { ToolItemProps } from \"./ItemProps\";\n\n/** An Item that starts the execution of a Tool.\n * @public\n */\nexport class ToolItemDef extends ActionButtonItemDef {\n public toolId: string = \"\";\n\n constructor(\n toolItemProps: ToolItemProps,\n onItemExecuted?: OnItemExecutedFunc\n ) {\n super(toolItemProps, onItemExecuted);\n\n if (toolItemProps.execute) {\n this._commandHandler = {\n execute: toolItemProps.execute,\n parameters: toolItemProps.parameters,\n getCommandArgs: toolItemProps.getCommandArgs,\n };\n }\n\n this.toolId = toolItemProps.toolId;\n }\n\n public get id(): string {\n return this.toolId;\n }\n\n /** Create a ToolItemDef that will run a registered tool. */\n public static getItemDefForTool(\n tool: typeof Tool,\n icon?: string,\n ...args: any[]\n ): ToolItemDef {\n return new ToolItemDef({\n toolId: tool.toolId,\n icon: icon\n ? icon\n : tool.iconSpec && tool.iconSpec.length > 0\n ? tool.iconSpec\n : undefined,\n label: () => tool.flyover,\n description: () => tool.description,\n execute: async () => IModelApp.tools.run(tool.toolId, ...args),\n });\n }\n}\n"]}
1
+ {"version":3,"file":"ToolItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ToolItemDef.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,wDAAiD;AAEjD,+DAA4D;AAI5D,4CAA4C;AAE5C;;;GAGG;AACH,MAAa,WAAY,SAAQ,yCAAmB;IAGlD,YACE,aAA4B,EAC5B,cAAmC;QAEnC,KAAK,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;QANhC,WAAM,GAAW,EAAE,CAAC;QAQzB,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,eAAe,GAAG;gBACrB,OAAO,EAAE,aAAa,CAAC,OAAO;gBAC9B,UAAU,EAAE,aAAa,CAAC,UAAU;gBACpC,cAAc,EAAE,aAAa,CAAC,cAAc;aAC7C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,iBAAiB,CAC7B,IAAiB,EACjB,IAAa,EACb,GAAG,IAAW;QAEd,OAAO,IAAI,WAAW,CAAC;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI;gBACR,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;oBAC3C,CAAC,CAAC,IAAI,CAAC,QAAQ;oBACf,CAAC,CAAC,SAAS;YACb,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO;YACzB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW;YACnC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,yBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;SAC/D,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,kCA4CC","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 Item\n */\n\nimport type { Tool } from \"@itwin/core-frontend\";\nimport { IModelApp } from \"@itwin/core-frontend\";\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { ToolItemProps } from \"./ItemProps\";\nimport type { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** An Item that starts the execution of a Tool.\n * @public\n * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.\n */\nexport class ToolItemDef extends ActionButtonItemDef {\n public toolId: string = \"\";\n\n constructor(\n toolItemProps: ToolItemProps,\n onItemExecuted?: OnItemExecutedFunc\n ) {\n super(toolItemProps, onItemExecuted);\n\n if (toolItemProps.execute) {\n this._commandHandler = {\n execute: toolItemProps.execute,\n parameters: toolItemProps.parameters,\n getCommandArgs: toolItemProps.getCommandArgs,\n };\n }\n\n this.toolId = toolItemProps.toolId;\n }\n\n public get id(): string {\n return this.toolId;\n }\n\n /** Create a ToolItemDef that will run a registered tool.\n * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities.createForTool} instead.\n */\n public static getItemDefForTool(\n tool: typeof Tool,\n icon?: string,\n ...args: any[]\n ): ToolItemDef {\n return new ToolItemDef({\n toolId: tool.toolId,\n icon: icon\n ? icon\n : tool.iconSpec && tool.iconSpec.length > 0\n ? tool.iconSpec\n : undefined,\n label: () => tool.flyover,\n description: () => tool.description,\n execute: async () => IModelApp.tools.run(tool.toolId, ...args),\n });\n }\n}\n"]}
@@ -10,13 +10,13 @@ export interface StagePanelConfig {
10
10
  /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */
11
11
  readonly defaultState?: StagePanelState;
12
12
  /** Maximum size of the panel.
13
- * @deprecated in 4.12.x. Please use {@link StagePanelConfig.maxSizeSpec}.
13
+ * @deprecated in 4.12.0. Please use {@link StagePanelConfig.maxSizeSpec}.
14
14
  */
15
15
  readonly maxSize?: StagePanelMaxSizeSpec;
16
16
  /** Maximum size of the panel. */
17
17
  readonly maxSizeSpec?: StagePanelSizeSpec;
18
18
  /** Minimum size of the panel.
19
- * @deprecated in 4.12.x. Please use {@link StagePanelConfig.minSizeSpec}.
19
+ * @deprecated in 4.12.0. Please use {@link StagePanelConfig.minSizeSpec}.
20
20
  */
21
21
  readonly minSize?: number;
22
22
  /** Minimum size of the panel. */
@@ -26,7 +26,7 @@ export interface StagePanelConfig {
26
26
  /** Indicates whether the panel is resizable. Defaults to true. */
27
27
  readonly resizable?: boolean;
28
28
  /** Default size of the panel.
29
- * @deprecated in 4.12.x. Please use {@link StagePanelConfig.sizeSpec}.
29
+ * @deprecated in 4.12.0. Please use {@link StagePanelConfig.sizeSpec}.
30
30
  */
31
31
  readonly size?: number;
32
32
  /** Default size of the panel. */
@@ -50,7 +50,7 @@ export interface StagePanelSectionsConfig {
50
50
  /** Available units of panel max size. Pixels or percentage of App size.
51
51
  * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.
52
52
  * @public
53
- * @deprecated in 4.12.x. Please use {@link StagePanelSizeSpec}.
53
+ * @deprecated in 4.12.0. Please use {@link StagePanelSizeSpec}.
54
54
  */
55
55
  export type StagePanelMaxSizeSpec = number | {
56
56
  percentage: number;
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelConfig.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","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 Frontstage\n */\n\nimport type { WidgetConfig } from \"../widgets/WidgetConfig\";\nimport type { StagePanelState } from \"./StagePanelState\";\n\n/** Configuration from which a stage panel is created.\n * @public\n */\nexport interface StagePanelConfig {\n /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */\n readonly defaultState?: StagePanelState;\n /** Maximum size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.maxSizeSpec}.\n */\n readonly maxSize?: StagePanelMaxSizeSpec; // eslint-disable-line deprecation/deprecation\n /** Maximum size of the panel. */\n readonly maxSizeSpec?: StagePanelSizeSpec;\n /** Minimum size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.minSizeSpec}.\n */\n readonly minSize?: number;\n /** Minimum size of the panel. */\n readonly minSizeSpec?: StagePanelSizeSpec;\n /** Indicates whether the panel is pinned. Defaults to true. */\n readonly pinned?: boolean;\n /** Indicates whether the panel is resizable. Defaults to true. */\n readonly resizable?: boolean;\n /** Default size of the panel.\n * @deprecated in 4.12.x. Please use {@link StagePanelConfig.sizeSpec}.\n */\n readonly size?: number;\n /** Default size of the panel. */\n readonly sizeSpec?: StagePanelSizeSpec;\n /** Configuration of the panel sections. */\n readonly sections?: StagePanelSectionsConfig;\n}\n\n/** Configuration from which a stage panel section is created.\n * @public\n */\nexport type StagePanelSectionConfig = ReadonlyArray<WidgetConfig>;\n\n/** Configuration from which stage panel sections are created.\n * @public\n */\nexport interface StagePanelSectionsConfig {\n /** Configuration of the `start` section. */\n readonly start?: StagePanelSectionConfig;\n /** Configuration of the `end` section. */\n readonly end?: StagePanelSectionConfig;\n}\n\n/** Available units of panel max size. Pixels or percentage of App size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.\n * @public\n * @deprecated in 4.12.x. Please use {@link StagePanelSizeSpec}.\n */\nexport type StagePanelMaxSizeSpec = number | { percentage: number };\n\n/** Available units of panel size - pixels or percentage of app size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of app `width` is used for left/right panel.\n * @public\n */\nexport type StagePanelSizeSpec = number | { percentage: number };\n"]}
1
+ {"version":3,"file":"StagePanelConfig.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelConfig.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG","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 Frontstage\n */\n\nimport type { WidgetConfig } from \"../widgets/WidgetConfig\";\nimport type { StagePanelState } from \"./StagePanelState\";\n\n/** Configuration from which a stage panel is created.\n * @public\n */\nexport interface StagePanelConfig {\n /** Default Panel state. Controls how the panel is initially displayed. Defaults to StagePanelState.Open. */\n readonly defaultState?: StagePanelState;\n /** Maximum size of the panel.\n * @deprecated in 4.12.0. Please use {@link StagePanelConfig.maxSizeSpec}.\n */\n readonly maxSize?: StagePanelMaxSizeSpec; // eslint-disable-line deprecation/deprecation\n /** Maximum size of the panel. */\n readonly maxSizeSpec?: StagePanelSizeSpec;\n /** Minimum size of the panel.\n * @deprecated in 4.12.0. Please use {@link StagePanelConfig.minSizeSpec}.\n */\n readonly minSize?: number;\n /** Minimum size of the panel. */\n readonly minSizeSpec?: StagePanelSizeSpec;\n /** Indicates whether the panel is pinned. Defaults to true. */\n readonly pinned?: boolean;\n /** Indicates whether the panel is resizable. Defaults to true. */\n readonly resizable?: boolean;\n /** Default size of the panel.\n * @deprecated in 4.12.0. Please use {@link StagePanelConfig.sizeSpec}.\n */\n readonly size?: number;\n /** Default size of the panel. */\n readonly sizeSpec?: StagePanelSizeSpec;\n /** Configuration of the panel sections. */\n readonly sections?: StagePanelSectionsConfig;\n}\n\n/** Configuration from which a stage panel section is created.\n * @public\n */\nexport type StagePanelSectionConfig = ReadonlyArray<WidgetConfig>;\n\n/** Configuration from which stage panel sections are created.\n * @public\n */\nexport interface StagePanelSectionsConfig {\n /** Configuration of the `start` section. */\n readonly start?: StagePanelSectionConfig;\n /** Configuration of the `end` section. */\n readonly end?: StagePanelSectionConfig;\n}\n\n/** Available units of panel max size. Pixels or percentage of App size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of App `width` is used for left/right panel.\n * @public\n * @deprecated in 4.12.0. Please use {@link StagePanelSizeSpec}.\n */\nexport type StagePanelMaxSizeSpec = number | { percentage: number };\n\n/** Available units of panel size - pixels or percentage of app size.\n * @note Percentage of App `height` is used for top/bottom panel and percentage of app `width` is used for left/right panel.\n * @public\n */\nexport type StagePanelSizeSpec = number | { percentage: number };\n"]}
@@ -12,7 +12,7 @@ import { StagePanelSection } from "./StagePanelSection";
12
12
  import { StagePanelState } from "./StagePanelState";
13
13
  /** Panel state changed event args interface.
14
14
  * @public
15
- * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.
15
+ * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
16
16
  */
17
17
  export interface PanelStateChangedEventArgs {
18
18
  panelDef: StagePanelDef;
@@ -20,7 +20,7 @@ export interface PanelStateChangedEventArgs {
20
20
  }
21
21
  /** Panel state changed event class.
22
22
  * @beta
23
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
23
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
24
24
  */
25
25
  export declare class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {
26
26
  }
@@ -31,7 +31,7 @@ export interface PanelSizeChangedEventArgs {
31
31
  }
32
32
  /** Panel pinned changed event args interface.
33
33
  * @public
34
- * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.
34
+ * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
35
35
  */
36
36
  export interface PanelPinnedChangedEventArgs {
37
37
  panelDef: StagePanelDef;
@@ -55,7 +55,7 @@ export declare class StagePanelDef extends WidgetHost {
55
55
  /** @internal */
56
56
  get initialConfig(): StagePanelConfig | undefined;
57
57
  /** Current size of the panel.
58
- * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.
58
+ * @deprecated in 4.12.0. Use {@link StagePanelDef.sizeSpec} instead.
59
59
  */
60
60
  get size(): number | undefined;
61
61
  set size(size: number | undefined);
@@ -19,7 +19,7 @@ const StagePanelSection_1 = require("./StagePanelSection");
19
19
  const StagePanelState_1 = require("./StagePanelState");
20
20
  /** Panel state changed event class.
21
21
  * @beta
22
- * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.
22
+ * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
23
23
  */
24
24
  // eslint-disable-next-line deprecation/deprecation
25
25
  class PanelStateChangedEvent extends appui_abstract_1.UiEvent {
@@ -55,7 +55,7 @@ class StagePanelDef extends WidgetHost_1.WidgetHost {
55
55
  return this._initialConfig;
56
56
  }
57
57
  /** Current size of the panel.
58
- * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.
58
+ * @deprecated in 4.12.0. Use {@link StagePanelDef.sizeSpec} instead.
59
59
  */
60
60
  get size() {
61
61
  const frontstageDef = UiFramework_1.UiFramework.frontstages.activeFrontstageDef;
@@ -1 +1 @@
1
- {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgD;AAEhD,iCAA4B;AAC5B,gDAA6C;AAC7C,uFAAoF;AAGpF,oDAAiD;AACjD,sDAAmD;AAMnD,6DAA0D;AAC1D,2DAAwD;AACxD,uDAAoD;AAWpD;;;GAGG;AACH,mDAAmD;AACnD,MAAa,sBAAuB,SAAQ,wBAAmC;CAAG;AAAlF,wDAAkF;AAiBlF;;;GAGG;AACH,MAAa,aAAc,SAAQ,uBAAU;IAM3C,gCAAgC;IAChC;QACE,KAAK,EAAE,CAAC;QANF,cAAS,GAAuB,uCAAkB,CAAC,IAAI,CAAC;QACxD,WAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACpC,SAAI,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAK1C,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,MAAM,CAAC,MAAwB,EAAE,QAA4B;Q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AC;AACxB,CAAC,CACF,CAAC;AAEF,gBAAgB;AAChB,SAAgB,aAAa,CAAC,KAAoB,EAAE,IAAe;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iCAAe,CAAC,SAAS,CAAC,CAAC,CAAC,iCAAe,CAAC,IAAI,CAAC;AAC5E,CAAC;AAHD,sCAGC","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 Frontstage\n */\n\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport type { Draft } from \"immer\";\nimport produce from \"immer\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState\";\nimport type { PanelSide } from \"../layout/widget-panels/PanelTypes\";\nimport { WidgetDef } from \"../widgets/WidgetDef\";\nimport { WidgetHost } from \"../widgets/WidgetHost\";\nimport type {\n StagePanelConfig,\n StagePanelSectionConfig,\n StagePanelSizeSpec,\n} from \"./StagePanelConfig\";\nimport { StagePanelLocation } from \"./StagePanelLocation\";\nimport { StagePanelSection } from \"./StagePanelSection\";\nimport { StagePanelState } from \"./StagePanelState\";\n\n/** Panel state changed event args interface.\n * @public\n * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface PanelStateChangedEventArgs {\n panelDef: StagePanelDef;\n panelState: StagePanelState;\n}\n\n/** Panel state changed event class.\n * @beta\n * @deprecated in 4.13.x. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {}\n\n/** @internal */\nexport interface PanelSizeChangedEventArgs {\n panelDef: StagePanelDef;\n size: number | undefined;\n}\n\n/** Panel pinned changed event args interface.\n * @public\n * @deprecated in 4.13.x. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface PanelPinnedChangedEventArgs {\n panelDef: StagePanelDef;\n pinned: boolean;\n}\n\n/**\n * A StagePanelDef represents each Stage Panel within a Frontstage.\n * @public\n */\nexport class StagePanelDef extends WidgetHost {\n private _initialConfig?: StagePanelConfig;\n private _location: StagePanelLocation = StagePanelLocation.Left;\n private _start = new StagePanelSectionDef();\n private _end = new StagePanelSectionDef();\n\n /** Constructor for PanelDef. */\n constructor() {\n super();\n }\n\n /** @internal */\n public static create(config: StagePanelConfig, location: StagePanelLocation) {\n const def = new StagePanelDef();\n def.initializeFromConfig(config, location);\n return def;\n }\n\n /** @internal */\n public initializeFromConfig(\n config: StagePanelConfig | undefined,\n location: StagePanelLocation\n ) {\n this._location = location;\n this._initialConfig = config;\n this._start.initializeFromConfig(config?.sections?.start);\n this._end.initializeFromConfig(config?.sections?.end);\n }\n\n /** @internal */\n public get initialConfig() {\n return this._initialConfig;\n }\n\n /** Current size of the panel.\n * @deprecated in 4.12.x. Use {@link StagePanelDef.sizeSpec} instead.\n */\n public get size(): number | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n // eslint-disable-next-line deprecation/deprecation\n if (!state) return this.initialConfig?.size;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set size(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** Current size of the panel */\n public get sizeSpec(): StagePanelSizeSpec | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.initialConfig?.sizeSpec;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set sizeSpec(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** @internal */\n public handleSizeChanged(size: number | undefined) {\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\n panelDef: this,\n size,\n });\n }\n\n /** Indicates whether the panel is resizable. */\n public get resizable(): boolean {\n return this.defaultResizable;\n }\n\n /** Indicates whether the panel is pinned. */\n public get pinned(): boolean {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultPinned;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.pinned;\n }\n\n public set pinned(pinned: boolean) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_PINNED\",\n side,\n pinned,\n });\n }\n\n /** @internal */\n public handlePinnedChanged(pinned: boolean) {\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\n panelDef: this,\n pinned,\n });\n }\n\n /** Location of panel. */\n public get location(): StagePanelLocation {\n return this._location;\n }\n\n /** Panel state. Defaults to PanelState.Open. */\n public get panelState(): StagePanelState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultState;\n const side = toPanelSide(this.location);\n return getPanelState(state, side);\n }\n\n public set panelState(panelState: StagePanelState) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n const collapsed = panelState === StagePanelState.Open ? false : true;\n frontstageDef.dispatch({\n type: \"PANEL_SET_COLLAPSED\",\n collapsed,\n side,\n });\n }\n\n /** @internal */\n public handlePanelStateChanged(panelState: StagePanelState) {\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\n panelDef: this,\n panelState,\n });\n }\n\n /** @internal */\n public get defaultState() {\n const defaultState = this._initialConfig?.defaultState;\n return defaultState ?? StagePanelState.Open;\n }\n\n /** @internal */\n public get defaultPinned() {\n return this._initialConfig?.pinned ?? true;\n }\n\n /** @internal */\n public get defaultResizable() {\n return this._initialConfig?.resizable ?? true;\n }\n\n /** Gets the list of Widgets. */\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\n return [\n ...super.widgetDefs,\n ...this._start.widgetDefs,\n ...this._end.widgetDefs,\n ];\n }\n\n /** @internal */\n public override updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n _section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ) {\n this._start.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.Start,\n allStageWidgetDefs\n );\n this._end.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.End,\n allStageWidgetDefs\n );\n }\n\n /** @internal */\n public getPanelSectionDef(section: StagePanelSection) {\n switch (section) {\n case StagePanelSection.Start: {\n return this._start;\n }\n case StagePanelSection.End: {\n return this._end;\n }\n }\n }\n}\n\n/** @internal */\nexport class StagePanelSectionDef extends WidgetHost {\n /** @internal */\n public initializeFromConfig(config: StagePanelSectionConfig | undefined) {\n config?.forEach((widgetConfig) => {\n const widgetDef = WidgetDef.create(widgetConfig);\n this.addWidgetDef(widgetDef);\n });\n }\n}\n\n/** @internal */\nexport function toPanelSide(location: StagePanelLocation): PanelSide {\n switch (location) {\n case StagePanelLocation.Bottom:\n return \"bottom\";\n case StagePanelLocation.Left:\n return \"left\";\n case StagePanelLocation.Right:\n return \"right\";\n case StagePanelLocation.Top:\n return \"top\";\n }\n}\n\n/** @internal */\nexport const setPanelPinned: (\n nineZone: NineZoneState,\n side: PanelSide,\n pinned: boolean\n) => NineZoneState = produce(\n (nineZone: Draft<NineZoneState>, side: PanelSide, pinned: boolean) => {\n const panel = nineZone.panels[side];\n panel.pinned = pinned;\n }\n);\n\n/** @internal */\nexport function getPanelState(state: NineZoneState, side: PanelSide) {\n const panel = state.panels[side];\n return panel.collapsed ? StagePanelState.Minimized : StagePanelState.Open;\n}\n"]}
1
+ {"version":3,"file":"StagePanelDef.js","sourceRoot":"","sources":["../../../../src/appui-react/stagepanels/StagePanelDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgD;AAEhD,iCAA4B;AAC5B,gDAA6C;AAC7C,uFAAoF;AAGpF,oDAAiD;AACjD,sDAAmD;AAMnD,6DAA0D;AAC1D,2DAAwD;AACxD,uDAAoD;AAWpD;;;GAGG;AACH,mDAAmD;AACnD,MAAa,sBAAuB,SAAQ,wBAAmC;CAAG;AAAlF,wDAAkF;AAiBlF;;;GAGG;AACH,MAAa,aAAc,SAAQ,uBAAU;IAM3C,gCAAgC;IAChC;QACE,KAAK,EAAE,CAAC;QANF,cAAS,GAAuB,uCAAkB,CAAC,IAAI,CAAC;QACxD,WAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACpC,SAAI,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAK1C,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,MAAM,CAAC,MAAwB,EAAE,QAA4B;QACzE,MAAM,GAAG,GAAG,IAAI,aAAa,EAAE,CAAC;QAChC,GAAG,CAAC,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC3C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,gBAAgB;IACT,oBAAoB,CACzB,MAAoC,EACpC,QAA4B;QAE5B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;QAC7B,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,CAAC,oB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;IAClD,gBAAgB;IACT,oBAAoB,CAAC,MAA2C;QACrE,MAAM,EAAE,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,qBAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YACjD,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AARD,oDAQC;AAED,gBAAgB;AAChB,SAAgB,WAAW,CAAC,QAA4B;IACtD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,uCAAkB,CAAC,MAAM;YAC5B,OAAO,QAAQ,CAAC;QAClB,KAAK,uCAAkB,CAAC,IAAI;YAC1B,OAAO,MAAM,CAAC;QAChB,KAAK,uCAAkB,CAAC,KAAK;YAC3B,OAAO,OAAO,CAAC;QACjB,KAAK,uCAAkB,CAAC,GAAG;YACzB,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAXD,kCAWC;AAED,gBAAgB;AACH,QAAA,cAAc,GAIN,IAAA,eAAO,EAC1B,CAAC,QAA8B,EAAE,IAAe,EAAE,MAAe,EAAE,EAAE;IACnE,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,CAAC,CACF,CAAC;AAEF,gBAAgB;AAChB,SAAgB,aAAa,CAAC,KAAoB,EAAE,IAAe;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iCAAe,CAAC,SAAS,CAAC,CAAC,CAAC,iCAAe,CAAC,IAAI,CAAC;AAC5E,CAAC;AAHD,sCAGC","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 Frontstage\n */\n\nimport { UiEvent } from \"@itwin/appui-abstract\";\nimport type { Draft } from \"immer\";\nimport produce from \"immer\";\nimport { UiFramework } from \"../UiFramework\";\nimport { InternalFrontstageManager } from \"../frontstage/InternalFrontstageManager\";\nimport type { NineZoneState } from \"../layout/state/NineZoneState\";\nimport type { PanelSide } from \"../layout/widget-panels/PanelTypes\";\nimport { WidgetDef } from \"../widgets/WidgetDef\";\nimport { WidgetHost } from \"../widgets/WidgetHost\";\nimport type {\n StagePanelConfig,\n StagePanelSectionConfig,\n StagePanelSizeSpec,\n} from \"./StagePanelConfig\";\nimport { StagePanelLocation } from \"./StagePanelLocation\";\nimport { StagePanelSection } from \"./StagePanelSection\";\nimport { StagePanelState } from \"./StagePanelState\";\n\n/** Panel state changed event args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface PanelStateChangedEventArgs {\n panelDef: StagePanelDef;\n panelState: StagePanelState;\n}\n\n/** Panel state changed event class.\n * @beta\n * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {}\n\n/** @internal */\nexport interface PanelSizeChangedEventArgs {\n panelDef: StagePanelDef;\n size: number | undefined;\n}\n\n/** Panel pinned changed event args interface.\n * @public\n * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.\n */\nexport interface PanelPinnedChangedEventArgs {\n panelDef: StagePanelDef;\n pinned: boolean;\n}\n\n/**\n * A StagePanelDef represents each Stage Panel within a Frontstage.\n * @public\n */\nexport class StagePanelDef extends WidgetHost {\n private _initialConfig?: StagePanelConfig;\n private _location: StagePanelLocation = StagePanelLocation.Left;\n private _start = new StagePanelSectionDef();\n private _end = new StagePanelSectionDef();\n\n /** Constructor for PanelDef. */\n constructor() {\n super();\n }\n\n /** @internal */\n public static create(config: StagePanelConfig, location: StagePanelLocation) {\n const def = new StagePanelDef();\n def.initializeFromConfig(config, location);\n return def;\n }\n\n /** @internal */\n public initializeFromConfig(\n config: StagePanelConfig | undefined,\n location: StagePanelLocation\n ) {\n this._location = location;\n this._initialConfig = config;\n this._start.initializeFromConfig(config?.sections?.start);\n this._end.initializeFromConfig(config?.sections?.end);\n }\n\n /** @internal */\n public get initialConfig() {\n return this._initialConfig;\n }\n\n /** Current size of the panel.\n * @deprecated in 4.12.0. Use {@link StagePanelDef.sizeSpec} instead.\n */\n public get size(): number | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n // eslint-disable-next-line deprecation/deprecation\n if (!state) return this.initialConfig?.size;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set size(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** Current size of the panel */\n public get sizeSpec(): StagePanelSizeSpec | undefined {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.initialConfig?.sizeSpec;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.size;\n }\n\n public set sizeSpec(size) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_SIZE\",\n side,\n size,\n });\n }\n\n /** @internal */\n public handleSizeChanged(size: number | undefined) {\n InternalFrontstageManager.onPanelSizeChangedEvent.emit({\n panelDef: this,\n size,\n });\n }\n\n /** Indicates whether the panel is resizable. */\n public get resizable(): boolean {\n return this.defaultResizable;\n }\n\n /** Indicates whether the panel is pinned. */\n public get pinned(): boolean {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultPinned;\n\n const side = toPanelSide(this.location);\n const panel = state.panels[side];\n return panel.pinned;\n }\n\n public set pinned(pinned: boolean) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n frontstageDef.dispatch({\n type: \"PANEL_SET_PINNED\",\n side,\n pinned,\n });\n }\n\n /** @internal */\n public handlePinnedChanged(pinned: boolean) {\n UiFramework.frontstages.onPanelPinnedChangedEvent.emit({\n panelDef: this,\n pinned,\n });\n }\n\n /** Location of panel. */\n public get location(): StagePanelLocation {\n return this._location;\n }\n\n /** Panel state. Defaults to PanelState.Open. */\n public get panelState(): StagePanelState {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n const state = frontstageDef?.nineZoneState;\n if (!state) return this.defaultState;\n const side = toPanelSide(this.location);\n return getPanelState(state, side);\n }\n\n public set panelState(panelState: StagePanelState) {\n const frontstageDef = UiFramework.frontstages.activeFrontstageDef;\n if (!frontstageDef) return;\n\n const side = toPanelSide(this.location);\n const collapsed = panelState === StagePanelState.Open ? false : true;\n frontstageDef.dispatch({\n type: \"PANEL_SET_COLLAPSED\",\n collapsed,\n side,\n });\n }\n\n /** @internal */\n public handlePanelStateChanged(panelState: StagePanelState) {\n UiFramework.frontstages.onPanelStateChangedEvent.emit({\n panelDef: this,\n panelState,\n });\n }\n\n /** @internal */\n public get defaultState() {\n const defaultState = this._initialConfig?.defaultState;\n return defaultState ?? StagePanelState.Open;\n }\n\n /** @internal */\n public get defaultPinned() {\n return this._initialConfig?.pinned ?? true;\n }\n\n /** @internal */\n public get defaultResizable() {\n return this._initialConfig?.resizable ?? true;\n }\n\n /** Gets the list of Widgets. */\n public override get widgetDefs(): ReadonlyArray<WidgetDef> {\n return [\n ...super.widgetDefs,\n ...this._start.widgetDefs,\n ...this._end.widgetDefs,\n ];\n }\n\n /** @internal */\n public override updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n _section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ) {\n this._start.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.Start,\n allStageWidgetDefs\n );\n this._end.updateDynamicWidgetDefs(\n stageId,\n stageUsage,\n location,\n StagePanelSection.End,\n allStageWidgetDefs\n );\n }\n\n /** @internal */\n public getPanelSectionDef(section: StagePanelSection) {\n switch (section) {\n case StagePanelSection.Start: {\n return this._start;\n }\n case StagePanelSection.End: {\n return this._end;\n }\n }\n }\n}\n\n/** @internal */\nexport class StagePanelSectionDef extends WidgetHost {\n /** @internal */\n public initializeFromConfig(config: StagePanelSectionConfig | undefined) {\n config?.forEach((widgetConfig) => {\n const widgetDef = WidgetDef.create(widgetConfig);\n this.addWidgetDef(widgetDef);\n });\n }\n}\n\n/** @internal */\nexport function toPanelSide(location: StagePanelLocation): PanelSide {\n switch (location) {\n case StagePanelLocation.Bottom:\n return \"bottom\";\n case StagePanelLocation.Left:\n return \"left\";\n case StagePanelLocation.Right:\n return \"right\";\n case StagePanelLocation.Top:\n return \"top\";\n }\n}\n\n/** @internal */\nexport const setPanelPinned: (\n nineZone: NineZoneState,\n side: PanelSide,\n pinned: boolean\n) => NineZoneState = produce(\n (nineZone: Draft<NineZoneState>, side: PanelSide, pinned: boolean) => {\n const panel = nineZone.panels[side];\n panel.pinned = pinned;\n }\n);\n\n/** @internal */\nexport function getPanelState(state: NineZoneState, side: PanelSide) {\n const panel = state.panels[side];\n return panel.collapsed ? StagePanelState.Minimized : StagePanelState.Open;\n}\n"]}
@@ -6,7 +6,7 @@ import * as React from "react";
6
6
  import "./Field.scss";
7
7
  /** Properties of [[StatusBarField]] component.
8
8
  * @beta
9
- * @deprecated in 4.13.x. Props of deprecated component {@link StatusBarField}.
9
+ * @deprecated in 4.13.0. Props of deprecated component {@link StatusBarField}.
10
10
  */
11
11
  export interface StatusBarFieldProps extends CommonProps {
12
12
  /** Field content. */
@@ -18,7 +18,7 @@ export interface StatusBarFieldProps extends CommonProps {
18
18
  }
19
19
  /** Field component used in [[StatusBar]] component.
20
20
  * @beta
21
- * @deprecated in 4.13.x. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.
21
+ * @deprecated in 4.13.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.
22
22
  */
23
23
  export declare const StatusBarField: React.ForwardRefExoticComponent<StatusBarFieldProps & React.RefAttributes<HTMLDivElement>>;
24
24
  //# sourceMappingURL=Field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AAEtB;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4FA0BzB,CAAC"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AAEtB;;;GAGG;AAEH,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,4FA0BzB,CAAC"}
@@ -13,7 +13,7 @@ const React = require("react");
13
13
  require("./Field.scss");
14
14
  /** Field component used in [[StatusBar]] component.
15
15
  * @beta
16
- * @deprecated in 4.13.x. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.
16
+ * @deprecated in 4.13.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.
17
17
  */
18
18
  exports.StatusBarField = React.forwardRef(function StatusBarField(props, ref) {
19
19
  const hasClickAction = !!props.onClick;
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,2CAAoC;AACpC,+BAA+B;AAC/B,wBAAsB;AAetB;;;GAGG;AACU,QAAA,cAAc,GAAG,KAAK,CAAC,UAAU,CAG5C,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IAClC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;IACvC,MAAM,UAAU,GAAG,IAAA,oBAAU,EAC3B,sBAAsB,EACtB,cAAc,IAAI,aAAa,EAC/B,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO;IACL,iEAAiE;IACjE,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,EAEpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,CAAC,IAGb,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC,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 StatusBar\n */\n\nimport type { CommonProps } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport \"./Field.scss\";\n\n/** Properties of [[StatusBarField]] component.\n * @beta\n * @deprecated in 4.13.x. Props of deprecated component {@link StatusBarField}.\n */\nexport interface StatusBarFieldProps extends CommonProps {\n /** Field content. */\n children?: React.ReactNode;\n /** Function called when field is clicked. */\n onClick?: () => void;\n /** Title of a field. */\n title?: string;\n}\n\n/** Field component used in [[StatusBar]] component.\n * @beta\n * @deprecated in 4.13.x. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.\n */\nexport const StatusBarField = React.forwardRef<\n HTMLDivElement,\n StatusBarFieldProps // eslint-disable-line deprecation/deprecation\n>(function StatusBarField(props, ref) {\n const hasClickAction = !!props.onClick;\n const classNames = classnames(\n \"uifw-statusbar-field\",\n hasClickAction && \"uifw-action\",\n props.className\n );\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n ref={ref}\n className={classNames}\n title={props.title}\n style={props.style}\n onClick={props.onClick}\n {...{\n role: \"button\",\n tabIndex: -1,\n }}\n >\n {props.children}\n </div>\n );\n});\n"]}
1
+ {"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Field.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,2CAAoC;AACpC,+BAA+B;AAC/B,wBAAsB;AAgBtB;;;GAGG;AACU,QAAA,cAAc,GAAG,KAAK,CAAC,UAAU,CAG5C,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IAClC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;IACvC,MAAM,UAAU,GAAG,IAAA,oBAAU,EAC3B,sBAAsB,EACtB,cAAc,IAAI,aAAa,EAC/B,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO;IACL,iEAAiE;IACjE,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,EAEpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,CAAC,IAGb,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC,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 StatusBar\n */\n\nimport type { CommonProps } from \"@itwin/core-react\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport \"./Field.scss\";\n\n/** Properties of [[StatusBarField]] component.\n * @beta\n * @deprecated in 4.13.0. Props of deprecated component {@link StatusBarField}.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface StatusBarFieldProps extends CommonProps {\n /** Field content. */\n children?: React.ReactNode;\n /** Function called when field is clicked. */\n onClick?: () => void;\n /** Title of a field. */\n title?: string;\n}\n\n/** Field component used in [[StatusBar]] component.\n * @beta\n * @deprecated in 4.13.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.\n */\nexport const StatusBarField = React.forwardRef<\n HTMLDivElement,\n StatusBarFieldProps // eslint-disable-line deprecation/deprecation\n>(function StatusBarField(props, ref) {\n const hasClickAction = !!props.onClick;\n const classNames = classnames(\n \"uifw-statusbar-field\",\n hasClickAction && \"uifw-action\",\n props.className\n );\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n ref={ref}\n className={classNames}\n title={props.title}\n style={props.style}\n onClick={props.onClick}\n {...{\n role: \"button\",\n tabIndex: -1,\n }}\n >\n {props.children}\n </div>\n );\n});\n"]}
@@ -5,7 +5,7 @@ import * as React from "react";
5
5
  import type { CommonProps } from "@itwin/core-react";
6
6
  /** Properties of [[StatusBarIndicator]] component.
7
7
  * @beta
8
- * @deprecated in 4.13.x. Props of deprecated component {@link StatusBarIndicator}.
8
+ * @deprecated in 4.14.0. Props of deprecated component {@link StatusBarIndicator}.
9
9
  */
10
10
  export interface StatusBarIndicatorProps extends CommonProps {
11
11
  /** Indicator content. */
@@ -21,7 +21,7 @@ export interface StatusBarIndicatorProps extends CommonProps {
21
21
  }
22
22
  /** General-purpose [[StatusBar]] indicator.
23
23
  * @beta
24
- * @deprecated in 4.13.x. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) (or other components) and {@link StatusBarPopover AppUI StatusBarPopover} instead.
24
+ * @deprecated in 4.14.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) (or other components) and {@link StatusBarPopover AppUI StatusBarPopover} instead.
25
25
  */
26
26
  export declare function StatusBarIndicator(props: StatusBarIndicatorProps): React.JSX.Element;
27
27
  //# sourceMappingURL=Indicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Indicator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Indicator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AAEH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAgChE"}
1
+ {"version":3,"file":"Indicator.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/statusbar/Indicator.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD;;;GAGG;AAEH,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AAEH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,qBAgChE"}
@@ -13,7 +13,7 @@ const Popup_1 = require("./popup/Popup");
13
13
  const Field_1 = require("./Field");
14
14
  /** General-purpose [[StatusBar]] indicator.
15
15
  * @beta
16
- * @deprecated in 4.13.x. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) (or other components) and {@link StatusBarPopover AppUI StatusBarPopover} instead.
16
+ * @deprecated in 4.14.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) (or other components) and {@link StatusBarPopover AppUI StatusBarPopover} instead.
17
17
  */
18
18
  // eslint-disable-next-line deprecation/deprecation
19
19
  function StatusBarIndicator(props) {