@itwin/appui-react 4.14.0 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1247) hide show
  1. package/CHANGELOG.md +36 -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/configurableui/ConfigurableUiContent.scss +0 -25
  53. package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
  54. package/lib/cjs/appui-react/content/ContentControl.js +1 -1
  55. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  56. package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
  57. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  59. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  60. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
  62. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  63. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
  64. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  65. package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
  66. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  67. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  68. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  69. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  70. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
  71. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  72. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  73. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  74. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  75. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  76. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  78. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  79. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  80. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  82. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  83. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  84. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
  85. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  86. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
  87. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  88. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  89. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
  90. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  91. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
  94. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  96. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
  97. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  99. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
  100. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  101. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
  102. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  103. package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
  104. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  105. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  106. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
  107. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
  111. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  112. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  113. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  114. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  115. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +8 -20
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  118. package/lib/cjs/appui-react/feedback/ElementTooltip.js +51 -87
  119. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  120. package/lib/cjs/appui-react/feedback/ElementTooltip.scss +29 -0
  121. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  122. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  123. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  124. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  125. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  126. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  127. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  128. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  129. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  130. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  131. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
  132. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  133. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  134. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  135. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
  136. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  137. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  138. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  139. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  140. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  141. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
  142. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  143. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  144. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  145. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
  146. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  147. package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
  148. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  149. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  150. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  151. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
  155. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  157. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  158. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
  159. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  160. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  161. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  162. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
  163. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  164. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  165. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  166. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  167. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  168. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  169. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  170. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  171. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  172. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  173. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
  174. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  175. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  176. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  177. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
  178. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  179. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  180. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  181. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  182. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  183. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  184. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
  185. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  189. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  190. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  191. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  192. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  193. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  194. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  195. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  196. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  197. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  198. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  199. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  200. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
  201. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  202. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  203. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  204. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
  205. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  206. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  208. package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  210. package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
  212. package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  213. package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
  214. package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
  215. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  217. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  219. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  221. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  223. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  225. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  227. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  229. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  230. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  231. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  232. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  234. package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
  236. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  238. package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
  240. package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  241. package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
  242. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  244. package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
  245. package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  247. package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  248. package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
  249. package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
  250. package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
  252. package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
  253. package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
  254. package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  257. package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
  259. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  260. package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
  261. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  262. package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  263. package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
  264. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  265. package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  268. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  269. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  270. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  271. package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
  272. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  273. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  275. package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  277. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  279. package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  280. package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
  281. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  282. package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  283. package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
  284. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  285. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  286. package/lib/cjs/appui-react/messages/InputField.js +6 -2
  287. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  288. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
  290. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
  292. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  293. package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
  294. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  295. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  296. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  297. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  298. package/lib/cjs/appui-react/messages/Pointer.js +11 -3
  299. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  300. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  301. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  302. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  303. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  304. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  305. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  307. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  308. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  309. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  311. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  313. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  315. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  316. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  317. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
  318. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  319. package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
  320. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  321. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  322. package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
  323. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  324. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  325. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  326. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
  327. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  328. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  329. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  331. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  332. package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
  333. package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
  334. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  335. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  336. package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
  337. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  338. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  339. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  340. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  341. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  342. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  343. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  344. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  345. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  346. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  347. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  348. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  349. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  350. package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
  351. package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
  352. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
  353. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  354. package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
  355. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  356. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
  357. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  358. package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
  359. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  360. package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
  361. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  362. package/lib/cjs/appui-react/redux/SessionState.js +11 -10
  363. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
  365. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  366. package/lib/cjs/appui-react/redux/StateManager.js +3 -3
  367. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  368. package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
  369. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  370. package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
  371. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  372. package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
  373. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  374. package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
  375. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  378. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
  379. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
  382. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  383. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  384. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  386. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
  387. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  390. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
  391. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  392. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
  393. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  395. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  396. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
  398. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  399. package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
  400. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  401. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
  402. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
  404. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
  406. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  407. package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
  408. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  409. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -0
  410. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  411. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  413. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  415. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  416. package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
  417. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  418. package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
  419. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  420. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -0
  421. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  422. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  423. package/lib/cjs/appui-react/shared/MenuItem.d.ts +45 -12
  424. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  425. package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
  426. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  427. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
  428. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  429. package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
  430. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  431. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  432. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  433. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  434. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
  435. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
  437. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/Field.js +1 -1
  439. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
  441. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  442. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
  443. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  444. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  445. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
  446. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  448. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  449. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
  451. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
  453. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  454. package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
  455. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  456. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  458. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  463. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
  465. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
  467. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
  468. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  470. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  471. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
  472. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  473. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  475. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  476. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  477. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  478. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  479. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
  480. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  481. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
  482. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  483. package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
  484. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  485. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
  486. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
  488. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  490. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
  492. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  493. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  494. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  495. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  497. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  498. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  499. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  500. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  501. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  502. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  504. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  505. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  506. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  507. package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  508. package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
  509. package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
  510. package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
  511. package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
  512. package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
  513. package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
  514. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
  515. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  516. package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
  517. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  518. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
  519. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  520. package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
  521. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  522. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
  523. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  524. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  525. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  527. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
  528. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  529. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  530. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  531. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  534. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  535. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.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 +35 -20
  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/configurableui/ConfigurableUiContent.scss +0 -25
  671. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  672. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  673. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  674. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  675. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  676. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  677. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  678. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  679. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  680. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  681. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  682. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  683. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  684. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  685. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  686. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  687. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  688. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  689. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  690. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  692. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  693. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  694. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  696. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  697. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  698. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  699. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  700. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  701. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  702. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  703. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  704. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  705. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  706. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  707. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  708. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  710. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  711. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  712. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  713. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  714. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  715. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  717. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  718. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  719. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  720. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  721. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  722. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  723. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  724. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  725. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  727. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  728. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  729. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  731. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  732. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  733. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  734. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +8 -20
  735. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  736. package/lib/esm/appui-react/feedback/ElementTooltip.js +50 -86
  737. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  738. package/lib/esm/appui-react/feedback/ElementTooltip.scss +29 -0
  739. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  740. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  741. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  742. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  743. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  745. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  746. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  747. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  748. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  749. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  750. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  752. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  754. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  755. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  756. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  757. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  759. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  760. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  761. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  762. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  763. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  764. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  765. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  766. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  767. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  768. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  769. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  771. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  773. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  775. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  776. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  778. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  779. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  780. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  781. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  782. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  783. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  784. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  785. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  786. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  787. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  788. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  790. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  791. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  792. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  793. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  794. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  795. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  796. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  797. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  798. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  799. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  800. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  801. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  802. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  803. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  805. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  807. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  820. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  821. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  822. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  823. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  824. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  828. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  829. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  830. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  831. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  832. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  848. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  849. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  850. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  852. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  854. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  856. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  857. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  858. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  860. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  866. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  867. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  868. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  869. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  870. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  872. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  875. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  877. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  878. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  879. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  880. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  882. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  884. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  886. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  895. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  896. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  897. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  898. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  899. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  900. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  901. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  902. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  903. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  904. package/lib/esm/appui-react/messages/InputField.js +6 -2
  905. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  906. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  908. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  910. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  911. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  912. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  913. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  914. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  915. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  916. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  917. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  918. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  919. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  920. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  921. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  922. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  923. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  925. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  927. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  929. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  930. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  931. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  932. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  933. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  934. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  935. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  936. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  937. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  938. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  939. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  940. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  941. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  942. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  943. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  944. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  945. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  946. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  947. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  948. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  949. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  950. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  951. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  952. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  953. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  954. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  955. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  956. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  957. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  958. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  959. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  960. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  961. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  962. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  963. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  964. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  965. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  966. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  967. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  968. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  969. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  970. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  971. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  972. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  973. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  974. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  975. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  976. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  977. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  978. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  979. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  980. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  981. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  982. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  983. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  984. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  985. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  986. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  987. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  988. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  989. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  990. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  991. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  992. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  993. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  994. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  995. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  996. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  997. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  998. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  999. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  1000. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  1001. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  1002. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  1003. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1004. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1005. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1006. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1007. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1008. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1009. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1011. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1012. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1013. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1014. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1015. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1016. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1017. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1018. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1020. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1022. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1023. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1024. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1026. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1027. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1028. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1029. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1031. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1033. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1035. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1037. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1038. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1039. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1040. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1041. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1042. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1043. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1044. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1045. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1046. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1047. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1048. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1049. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1050. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1051. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1052. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1053. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1055. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1057. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1059. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1060. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1061. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1062. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1063. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1064. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1065. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1067. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1069. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1071. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1073. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1079. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1081. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1083. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1084. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1085. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1086. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1087. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1088. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1090. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1092. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1094. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1096. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1098. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1100. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1102. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1104. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1106. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1108. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1109. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1110. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1113. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1115. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1117. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1118. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1119. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1120. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1121. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1122. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1123. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1124. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1125. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1126. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1127. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1128. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1129. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1130. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1131. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1132. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1133. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1134. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1135. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1137. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1139. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1140. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1141. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1142. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1144. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1146. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1148. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1152. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1153. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.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 +35 -20
  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
@@ -12,7 +12,6 @@ require("./QuantityFormat.scss");
12
12
  const React = require("react");
13
13
  const core_geometry_1 = require("@itwin/core-geometry");
14
14
  const core_frontend_1 = require("@itwin/core-frontend");
15
- const appui_abstract_1 = require("@itwin/appui-abstract");
16
15
  const imodel_components_react_1 = require("@itwin/imodel-components-react");
17
16
  const core_react_1 = require("@itwin/core-react");
18
17
  const UiFramework_1 = require("../../UiFramework");
@@ -180,6 +179,7 @@ function QuantityFormatSettingsPage({ initialQuantityType, availableUnitSystems,
180
179
  }
181
180
  exports.QuantityFormatSettingsPage = QuantityFormatSettingsPage;
182
181
  function SaveFormatModalDialog({ formatProps, quantityType, onDialogCloseArgs, onDialogClose, }) {
182
+ const { translate } = (0, useTranslation_1.useTranslation)();
183
183
  const [isOpen, setIsOpen] = React.useState(true);
184
184
  const handleClose = React.useCallback(() => {
185
185
  setIsOpen(false);
@@ -193,12 +193,13 @@ function SaveFormatModalDialog({ formatProps, quantityType, onDialogCloseArgs, o
193
193
  const handleCancel = React.useCallback(() => {
194
194
  handleClose();
195
195
  }, [handleClose]);
196
- return (
197
- // eslint-disable-next-line deprecation/deprecation
198
- React.createElement(core_react_1.Dialog, { title: "Save Format Changes", opened: isOpen, resizable: false, movable: false, modal: true, buttonCluster: [
199
- { type: appui_abstract_1.DialogButtonType.Yes, onClick: handleOK },
200
- { type: appui_abstract_1.DialogButtonType.No, onClick: handleCancel },
201
- ], onEscape: handleCancel, onClose: handleCancel, onOutsideClick: handleCancel, minHeight: 150, maxHeight: 400, maxWidth: 400, minWidth: 200 },
202
- React.createElement("div", { className: "modal-dialog2" }, "Do you want to save changes to format before changing to another type?")));
196
+ return (React.createElement(itwinui_react_1.Dialog, { isOpen: isOpen, onClose: handleCancel, className: "uifw-settings-quantityFormatting-saveFormatModalDialog", closeOnEsc: true, closeOnExternalClick: true, preventDocumentScroll: true },
197
+ React.createElement(itwinui_react_1.Dialog.Backdrop, null),
198
+ React.createElement(itwinui_react_1.Dialog.Main, { style: { minWidth: 200, maxWidth: 400, minHeight: 150, maxHeight: 400 } },
199
+ React.createElement(itwinui_react_1.Dialog.TitleBar, { titleText: "Save Format Changes" }),
200
+ React.createElement(itwinui_react_1.Dialog.Content, null, "Do you want to save changes to format before changing to another type?"),
201
+ React.createElement(itwinui_react_1.Dialog.ButtonBar, null,
202
+ React.createElement(itwinui_react_1.Button, { styleType: "high-visibility", onClick: handleOK }, translate("dialog.yes")),
203
+ React.createElement(itwinui_react_1.Button, { onClick: handleCancel }, translate("dialog.no"))))));
203
204
  }
204
205
  //# sourceMappingURL=QuantityFormat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityFormat.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quantityformatting/QuantityFormat.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA+B;AAC/B,+BAA+B;AAC/B,wDAAmD;AAMnD,wDAI8B;AAM9B,0DAAyD;AACzD,4EAGwC;AAExC,kDAM2B;AAC3B,mDAAgD;AAChD,6DAA0D;AAC1D,wDAA8C;AAC9C,oEAAwD;AACxD,+DAA4D;AAE5D,SAAS,cAAc,CAAC,IAAiB,EAAE,IAAiB;IAC1D,MAAM,OAAO,GAAG,IAAI,2BAAW,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC;AAUD;;;;;GAKG;AACH,SAAgB,sCAAsC,CACpD,YAAoB,EACpB,IAAgD;IAEhD,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;IAClE,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,oCAAoC,CAAC;QAClE,QAAQ,EAAE,yBAAW,CAAC,SAAS,CAAC,uCAAuC,CAAC;QACxE,IAAI,EAAE,CACJ,oBAAC,0BAA0B,IACzB,mBAAmB,EAAE,mBAAmB,IAAI,4BAAY,CAAC,MAAM,EAC/D,oBAAoB,EAClB,oBAAoB;gBACpB,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,GAE5D,CACH;QACD,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,oBAAC,gCAAU,OAAG;QACpB,OAAO,EAAE,yBAAW,CAAC,SAAS,CAAC,sCAAsC,CAAC;QACtE,0BAA0B,EAAE,IAAI;KACjC,CAAC;AACJ,CAAC;AAxBD,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,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO;IACL,mDAAmD;IACnD,oBAAC,mBAAM,IACL,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,KAAK,EAChB,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,IAAI,EACX,aAAa,EAAE;YACb,EAAE,IAAI,EAAE,iCAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE;YACjD,EAAE,IAAI,EAAE,iCAAgB,CAAC,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;SACrD,EACD,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,YAAY,EACrB,cAAc,EAAE,YAAY,EAC5B,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,GAAG,EACd,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG;QAEb,6BAAK,SAAS,EAAC,eAAe,6EAExB,CACC,CACV,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport \"./QuantityFormat.scss\";\nimport * as React from \"react\";\nimport { DeepCompare } from \"@itwin/core-geometry\";\nimport type {\n QuantityFormatsChangedArgs,\n QuantityTypeArg,\n QuantityTypeKey,\n} from \"@itwin/core-frontend\";\nimport {\n getQuantityTypeKey,\n IModelApp,\n QuantityType,\n} from \"@itwin/core-frontend\";\nimport type {\n FormatProps,\n FormatterSpec,\n UnitSystemKey,\n} from \"@itwin/core-quantity\";\nimport { DialogButtonType } from \"@itwin/appui-abstract\";\nimport {\n FormatSample,\n QuantityFormatPanel,\n} from \"@itwin/imodel-components-react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport {\n Dialog,\n Listbox,\n ListboxItem,\n useSaveBeforeActivatingNewSettingsTab,\n useSaveBeforeClosingSettingsContainer,\n} from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport { UnitSystemSelector } from \"./UnitSystemSelector\";\nimport { Button } from \"@itwin/itwinui-react\";\nimport { SvgMeasure } from \"@itwin/itwinui-icons-react\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\n\nfunction formatAreEqual(obj1: FormatProps, obj2: FormatProps) {\n const compare = new DeepCompare();\n return compare.compare(obj1, obj2);\n}\n\n/** Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport interface QuantityFormatterSettingsOptions {\n initialQuantityType: QuantityTypeArg;\n availableUnitSystems: Set<UnitSystemKey>;\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @param opts - Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport function getQuantityFormatsSettingsManagerEntry(\n itemPriority: number,\n opts?: Partial<QuantityFormatterSettingsOptions>\n): SettingsTabEntry {\n const { availableUnitSystems, initialQuantityType } = { ...opts };\n return {\n itemPriority,\n tabId: \"uifw:Quantity\",\n label: UiFramework.translate(\"settings.quantity-formatting.label\"),\n subLabel: UiFramework.translate(\"settings.quantity-formatting.subLabel\"),\n page: (\n <QuantityFormatSettingsPage\n initialQuantityType={initialQuantityType ?? QuantityType.Length}\n availableUnitSystems={\n availableUnitSystems ??\n new Set([\"metric\", \"imperial\", \"usCustomary\", \"usSurvey\"])\n }\n />\n ),\n isDisabled: false,\n icon: <SvgMeasure />,\n tooltip: UiFramework.translate(\"settings.quantity-formatting.tooltip\"),\n pageWillHandleCloseRequest: true,\n };\n}\n\n/** UI Component shown in settings page to set the active Presentation Unit System and to set format overrides.\n * @beta\n */\nexport function QuantityFormatSettingsPage({\n initialQuantityType,\n availableUnitSystems,\n}: QuantityFormatterSettingsOptions) {\n const { translate } = useTranslation();\n const [activeUnitSystemKey, setActiveUnitSystemKey] = React.useState(\n IModelApp.quantityFormatter.activeUnitSystem\n );\n const [activeQuantityType, setActiveQuantityType] = React.useState(\n getQuantityTypeKey(initialQuantityType)\n );\n const [activeFormatterSpec, setActiveFormatterSpec] = React.useState<\n FormatterSpec | undefined\n >(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n getQuantityTypeKey(activeQuantityType)\n )\n );\n const [saveEnabled, setSaveEnabled] = React.useState(false);\n const [clearEnabled, setClearEnabled] = React.useState(\n IModelApp.quantityFormatter.hasActiveOverride(initialQuantityType, true)\n );\n const newQuantityTypeRef = React.useRef<QuantityTypeKey>();\n\n React.useEffect(() => {\n const handleUnitSystemChanged = (): void => {\n if (\n activeUnitSystemKey !== IModelApp.quantityFormatter.activeUnitSystem\n ) {\n setActiveUnitSystemKey(IModelApp.quantityFormatter.activeUnitSystem);\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n };\n\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(\n handleUnitSystemChanged\n );\n return () => {\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.removeListener(\n handleUnitSystemChanged\n );\n };\n }, [activeQuantityType, activeUnitSystemKey]);\n\n React.useEffect(() => {\n const handleFormatChanged = (args: QuantityFormatsChangedArgs): void => {\n if (!newQuantityTypeRef.current) {\n const quantityKey =\n IModelApp.quantityFormatter.getQuantityTypeKey(activeQuantityType);\n if (args.quantityType === quantityKey) {\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n }\n newQuantityTypeRef.current = undefined;\n };\n IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener(\n handleFormatChanged\n );\n return () => {\n IModelApp.quantityFormatter.onQuantityFormatsChanged.removeListener(\n handleFormatChanged\n );\n };\n }, [activeQuantityType]);\n\n const saveChanges = React.useCallback(\n (afterSaveFunction: (args: any) => void, args?: any) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={args}\n onDialogClose={afterSaveFunction}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n afterSaveFunction(args);\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n useSaveBeforeActivatingNewSettingsTab(\n UiFramework.settingsManager,\n saveChanges\n );\n useSaveBeforeClosingSettingsContainer(\n UiFramework.settingsManager,\n saveChanges\n );\n\n const processListboxValueChange = React.useCallback(\n (newQuantityType: QuantityTypeKey) => {\n const volumeFormatterSpec =\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n newQuantityType\n );\n setActiveFormatterSpec(volumeFormatterSpec);\n setActiveQuantityType(newQuantityType);\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(newQuantityType, true)\n );\n },\n []\n );\n\n const onListboxValueChange = React.useCallback(\n (newQuantityType: string) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n newQuantityTypeRef.current = newQuantityType;\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={newQuantityType}\n onDialogClose={processListboxValueChange}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n processListboxValueChange(newQuantityType);\n },\n [activeFormatterSpec, activeQuantityType, processListboxValueChange]\n );\n\n const handleOnFormatChanged = React.useCallback(\n async (formatProps: FormatProps) => {\n if (activeFormatterSpec) {\n const newSpec =\n await IModelApp.quantityFormatter.generateFormatterSpecByType(\n activeQuantityType,\n formatProps\n );\n const formatPropsInUse =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(\n activeQuantityType\n );\n if (formatPropsInUse)\n setSaveEnabled(!formatAreEqual(formatProps, formatPropsInUse));\n setActiveFormatterSpec(newSpec);\n }\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n const handleOnFormatSave = React.useCallback(async () => {\n if (activeFormatterSpec) {\n const format = activeFormatterSpec.format.toJSON();\n await IModelApp.quantityFormatter.setOverrideFormat(\n activeQuantityType,\n format\n );\n setClearEnabled(true);\n }\n }, [activeFormatterSpec, activeQuantityType]);\n\n const handleOnFormatReset = React.useCallback(async () => {\n await IModelApp.quantityFormatter.clearOverrideFormats(activeQuantityType);\n setClearEnabled(false);\n }, [activeQuantityType]);\n\n const processNewUnitSystem = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n await IModelApp.quantityFormatter.setActiveUnitSystem(unitSystem);\n },\n []\n );\n\n const handleUnitSystemSelected = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n if (unitSystem === activeUnitSystemKey) return;\n saveChanges(processNewUnitSystem, unitSystem);\n },\n [activeUnitSystemKey, processNewUnitSystem, saveChanges]\n );\n\n return (\n <div className=\"quantity-formatting-container\">\n <UnitSystemSelector\n selectedUnitSystemKey={activeUnitSystemKey}\n availableUnitSystems={availableUnitSystems}\n onUnitSystemSelected={handleUnitSystemSelected}\n />\n <span className=\"uifw-quantity-format-section-label\">\n {translate(\"settings.quantity-formatting.formatSectionLabel\")}\n </span>\n <div className=\"uifw-quantity-types-container\">\n <div className=\"left-panel\">\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Listbox\n id=\"uifw-quantity-types-list\"\n className=\"uifw-quantity-types\"\n onListboxValueChange={onListboxValueChange}\n selectedValue={activeQuantityType}\n >\n {[...IModelApp.quantityFormatter.quantityTypesRegistry.keys()].map(\n (key) => {\n const entry =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(key)!;\n const description = entry.description;\n const label = entry.label;\n return (\n // eslint-disable-next-line deprecation/deprecation\n <ListboxItem\n key={entry.key}\n className=\"quantity-type-list-entry\"\n value={entry.key}\n >\n <span\n className=\"map-source-list-entry-name\"\n title={description}\n >\n {label}\n </span>\n </ListboxItem>\n );\n }\n )}\n </Listbox>\n </div>\n <div className=\"right-panel\">\n {activeFormatterSpec && (\n <>\n <div className=\"uifw-quantity-types-right-top\">\n <div className=\"uifw-quantity-types-right-top-sample\">\n <FormatSample\n formatSpec={activeFormatterSpec}\n initialMagnitude={1234.56}\n hideLabels\n />\n </div>\n </div>\n <div className=\"uifw-quantity-types-formats\">\n <QuantityFormatPanel\n onFormatChange={handleOnFormatChanged}\n quantityType={activeQuantityType}\n />\n </div>\n <div className=\"components-button-panel\">\n <Button\n styleType=\"cta\"\n onClick={handleOnFormatSave}\n disabled={!saveEnabled}\n >\n {translate(\"settings.quantity-formatting.setButtonLabel\")}\n </Button>\n <Button\n styleType=\"default\"\n onClick={handleOnFormatReset}\n disabled={!clearEnabled}\n >\n {translate(\"settings.quantity-formatting.clearButtonLabel\")}\n </Button>\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction SaveFormatModalDialog({\n formatProps,\n quantityType,\n onDialogCloseArgs,\n onDialogClose,\n}: {\n formatProps: FormatProps;\n quantityType: QuantityTypeKey;\n onDialogCloseArgs?: any;\n onDialogClose: (args?: any) => void;\n}) {\n const [isOpen, setIsOpen] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setIsOpen(false);\n UiFramework.dialogs.modal.close();\n onDialogClose && onDialogClose(onDialogCloseArgs);\n }, [onDialogClose, onDialogCloseArgs]);\n\n const handleOK = React.useCallback(() => {\n void IModelApp.quantityFormatter.setOverrideFormat(\n quantityType,\n formatProps\n );\n handleClose();\n }, [formatProps, handleClose, quantityType]);\n\n const handleCancel = React.useCallback(() => {\n handleClose();\n }, [handleClose]);\n\n return (\n // eslint-disable-next-line deprecation/deprecation\n <Dialog\n title={\"Save Format Changes\"}\n opened={isOpen}\n resizable={false}\n movable={false}\n modal={true}\n buttonCluster={[\n { type: DialogButtonType.Yes, onClick: handleOK },\n { type: DialogButtonType.No, onClick: handleCancel },\n ]}\n onEscape={handleCancel}\n onClose={handleCancel}\n onOutsideClick={handleCancel}\n minHeight={150}\n maxHeight={400}\n maxWidth={400}\n minWidth={200}\n >\n <div className=\"modal-dialog2\">\n Do you want to save changes to format before changing to another type?\n </div>\n </Dialog>\n );\n}\n"]}
1
+ {"version":3,"file":"QuantityFormat.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quantityformatting/QuantityFormat.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA+B;AAC/B,+BAA+B;AAC/B,wDAAmD;AAMnD,wDAI8B;AAM9B,4EAGwC;AAExC,kDAK2B;AAC3B,mDAAgD;AAChD,6DAA0D;AAC1D,wDAAsD;AACtD,oEAAwD;AACxD,+DAA4D;AAE5D,SAAS,cAAc,CAAC,IAAiB,EAAE,IAAiB;IAC1D,MAAM,OAAO,GAAG,IAAI,2BAAW,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC;AAUD;;;;;GAKG;AACH,SAAgB,sCAAsC,CACpD,YAAoB,EACpB,IAAgD;IAEhD,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;IAClE,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,yBAAW,CAAC,SAA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,WAAW,CAAC,CAAU,CAC/C,CACP,CACP,CACV,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Settings\n */\n\nimport \"./QuantityFormat.scss\";\nimport * as React from \"react\";\nimport { DeepCompare } from \"@itwin/core-geometry\";\nimport type {\n QuantityFormatsChangedArgs,\n QuantityTypeArg,\n QuantityTypeKey,\n} from \"@itwin/core-frontend\";\nimport {\n getQuantityTypeKey,\n IModelApp,\n QuantityType,\n} from \"@itwin/core-frontend\";\nimport type {\n FormatProps,\n FormatterSpec,\n UnitSystemKey,\n} from \"@itwin/core-quantity\";\nimport {\n FormatSample,\n QuantityFormatPanel,\n} from \"@itwin/imodel-components-react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport {\n Listbox,\n ListboxItem,\n useSaveBeforeActivatingNewSettingsTab,\n useSaveBeforeClosingSettingsContainer,\n} from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport { UnitSystemSelector } from \"./UnitSystemSelector\";\nimport { Button, Dialog } from \"@itwin/itwinui-react\";\nimport { SvgMeasure } from \"@itwin/itwinui-icons-react\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\n\nfunction formatAreEqual(obj1: FormatProps, obj2: FormatProps) {\n const compare = new DeepCompare();\n return compare.compare(obj1, obj2);\n}\n\n/** Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport interface QuantityFormatterSettingsOptions {\n initialQuantityType: QuantityTypeArg;\n availableUnitSystems: Set<UnitSystemKey>;\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @param opts - Options to initialize the settings page that allows users to set Quantity formatting overrides.\n * @beta\n */\nexport function getQuantityFormatsSettingsManagerEntry(\n itemPriority: number,\n opts?: Partial<QuantityFormatterSettingsOptions>\n): SettingsTabEntry {\n const { availableUnitSystems, initialQuantityType } = { ...opts };\n return {\n itemPriority,\n tabId: \"uifw:Quantity\",\n label: UiFramework.translate(\"settings.quantity-formatting.label\"),\n subLabel: UiFramework.translate(\"settings.quantity-formatting.subLabel\"),\n page: (\n <QuantityFormatSettingsPage\n initialQuantityType={initialQuantityType ?? QuantityType.Length}\n availableUnitSystems={\n availableUnitSystems ??\n new Set([\"metric\", \"imperial\", \"usCustomary\", \"usSurvey\"])\n }\n />\n ),\n isDisabled: false,\n icon: <SvgMeasure />,\n tooltip: UiFramework.translate(\"settings.quantity-formatting.tooltip\"),\n pageWillHandleCloseRequest: true,\n };\n}\n\n/** UI Component shown in settings page to set the active Presentation Unit System and to set format overrides.\n * @beta\n */\nexport function QuantityFormatSettingsPage({\n initialQuantityType,\n availableUnitSystems,\n}: QuantityFormatterSettingsOptions) {\n const { translate } = useTranslation();\n const [activeUnitSystemKey, setActiveUnitSystemKey] = React.useState(\n IModelApp.quantityFormatter.activeUnitSystem\n );\n const [activeQuantityType, setActiveQuantityType] = React.useState(\n getQuantityTypeKey(initialQuantityType)\n );\n const [activeFormatterSpec, setActiveFormatterSpec] = React.useState<\n FormatterSpec | undefined\n >(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n getQuantityTypeKey(activeQuantityType)\n )\n );\n const [saveEnabled, setSaveEnabled] = React.useState(false);\n const [clearEnabled, setClearEnabled] = React.useState(\n IModelApp.quantityFormatter.hasActiveOverride(initialQuantityType, true)\n );\n const newQuantityTypeRef = React.useRef<QuantityTypeKey>();\n\n React.useEffect(() => {\n const handleUnitSystemChanged = (): void => {\n if (\n activeUnitSystemKey !== IModelApp.quantityFormatter.activeUnitSystem\n ) {\n setActiveUnitSystemKey(IModelApp.quantityFormatter.activeUnitSystem);\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n };\n\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.addListener(\n handleUnitSystemChanged\n );\n return () => {\n IModelApp.quantityFormatter.onActiveFormattingUnitSystemChanged.removeListener(\n handleUnitSystemChanged\n );\n };\n }, [activeQuantityType, activeUnitSystemKey]);\n\n React.useEffect(() => {\n const handleFormatChanged = (args: QuantityFormatsChangedArgs): void => {\n if (!newQuantityTypeRef.current) {\n const quantityKey =\n IModelApp.quantityFormatter.getQuantityTypeKey(activeQuantityType);\n if (args.quantityType === quantityKey) {\n setActiveFormatterSpec(\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n activeQuantityType\n )\n );\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(\n activeQuantityType,\n true\n )\n );\n }\n }\n newQuantityTypeRef.current = undefined;\n };\n IModelApp.quantityFormatter.onQuantityFormatsChanged.addListener(\n handleFormatChanged\n );\n return () => {\n IModelApp.quantityFormatter.onQuantityFormatsChanged.removeListener(\n handleFormatChanged\n );\n };\n }, [activeQuantityType]);\n\n const saveChanges = React.useCallback(\n (afterSaveFunction: (args: any) => void, args?: any) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={args}\n onDialogClose={afterSaveFunction}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n afterSaveFunction(args);\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n useSaveBeforeActivatingNewSettingsTab(\n UiFramework.settingsManager,\n saveChanges\n );\n useSaveBeforeClosingSettingsContainer(\n UiFramework.settingsManager,\n saveChanges\n );\n\n const processListboxValueChange = React.useCallback(\n (newQuantityType: QuantityTypeKey) => {\n const volumeFormatterSpec =\n IModelApp.quantityFormatter.findFormatterSpecByQuantityType(\n newQuantityType\n );\n setActiveFormatterSpec(volumeFormatterSpec);\n setActiveQuantityType(newQuantityType);\n setSaveEnabled(false);\n setClearEnabled(\n IModelApp.quantityFormatter.hasActiveOverride(newQuantityType, true)\n );\n },\n []\n );\n\n const onListboxValueChange = React.useCallback(\n (newQuantityType: string) => {\n if (activeFormatterSpec) {\n const formatProps = activeFormatterSpec.format.toJSON();\n const formatPropsInUse = IModelApp.quantityFormatter\n .findFormatterSpecByQuantityType(activeQuantityType)!\n .format.toJSON();\n if (\n formatPropsInUse &&\n !formatAreEqual(formatProps, formatPropsInUse)\n ) {\n newQuantityTypeRef.current = newQuantityType;\n UiFramework.dialogs.modal.open(\n <SaveFormatModalDialog\n formatProps={formatProps}\n quantityType={activeQuantityType}\n onDialogCloseArgs={newQuantityType}\n onDialogClose={processListboxValueChange}\n />,\n \"saveQuantityFormat\"\n );\n return;\n }\n }\n processListboxValueChange(newQuantityType);\n },\n [activeFormatterSpec, activeQuantityType, processListboxValueChange]\n );\n\n const handleOnFormatChanged = React.useCallback(\n async (formatProps: FormatProps) => {\n if (activeFormatterSpec) {\n const newSpec =\n await IModelApp.quantityFormatter.generateFormatterSpecByType(\n activeQuantityType,\n formatProps\n );\n const formatPropsInUse =\n IModelApp.quantityFormatter.getFormatPropsByQuantityType(\n activeQuantityType\n );\n if (formatPropsInUse)\n setSaveEnabled(!formatAreEqual(formatProps, formatPropsInUse));\n setActiveFormatterSpec(newSpec);\n }\n },\n [activeFormatterSpec, activeQuantityType]\n );\n\n const handleOnFormatSave = React.useCallback(async () => {\n if (activeFormatterSpec) {\n const format = activeFormatterSpec.format.toJSON();\n await IModelApp.quantityFormatter.setOverrideFormat(\n activeQuantityType,\n format\n );\n setClearEnabled(true);\n }\n }, [activeFormatterSpec, activeQuantityType]);\n\n const handleOnFormatReset = React.useCallback(async () => {\n await IModelApp.quantityFormatter.clearOverrideFormats(activeQuantityType);\n setClearEnabled(false);\n }, [activeQuantityType]);\n\n const processNewUnitSystem = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n await IModelApp.quantityFormatter.setActiveUnitSystem(unitSystem);\n },\n []\n );\n\n const handleUnitSystemSelected = React.useCallback(\n async (unitSystem: UnitSystemKey) => {\n if (unitSystem === activeUnitSystemKey) return;\n saveChanges(processNewUnitSystem, unitSystem);\n },\n [activeUnitSystemKey, processNewUnitSystem, saveChanges]\n );\n\n return (\n <div className=\"quantity-formatting-container\">\n <UnitSystemSelector\n selectedUnitSystemKey={activeUnitSystemKey}\n availableUnitSystems={availableUnitSystems}\n onUnitSystemSelected={handleUnitSystemSelected}\n />\n <span className=\"uifw-quantity-format-section-label\">\n {translate(\"settings.quantity-formatting.formatSectionLabel\")}\n </span>\n <div className=\"uifw-quantity-types-container\">\n <div className=\"left-panel\">\n {/* eslint-disable-next-line deprecation/deprecation */}\n <Listbox\n id=\"uifw-quantity-types-list\"\n className=\"uifw-quantity-types\"\n onListboxValueChange={onListboxValueChange}\n selectedValue={activeQuantityType}\n >\n {[...IModelApp.quantityFormatter.quantityTypesRegistry.keys()].map(\n (key) => {\n const entry =\n IModelApp.quantityFormatter.quantityTypesRegistry.get(key)!;\n const description = entry.description;\n const label = entry.label;\n return (\n // eslint-disable-next-line deprecation/deprecation\n <ListboxItem\n key={entry.key}\n className=\"quantity-type-list-entry\"\n value={entry.key}\n >\n <span\n className=\"map-source-list-entry-name\"\n title={description}\n >\n {label}\n </span>\n </ListboxItem>\n );\n }\n )}\n </Listbox>\n </div>\n <div className=\"right-panel\">\n {activeFormatterSpec && (\n <>\n <div className=\"uifw-quantity-types-right-top\">\n <div className=\"uifw-quantity-types-right-top-sample\">\n <FormatSample\n formatSpec={activeFormatterSpec}\n initialMagnitude={1234.56}\n hideLabels\n />\n </div>\n </div>\n <div className=\"uifw-quantity-types-formats\">\n <QuantityFormatPanel\n onFormatChange={handleOnFormatChanged}\n quantityType={activeQuantityType}\n />\n </div>\n <div className=\"components-button-panel\">\n <Button\n styleType=\"cta\"\n onClick={handleOnFormatSave}\n disabled={!saveEnabled}\n >\n {translate(\"settings.quantity-formatting.setButtonLabel\")}\n </Button>\n <Button\n styleType=\"default\"\n onClick={handleOnFormatReset}\n disabled={!clearEnabled}\n >\n {translate(\"settings.quantity-formatting.clearButtonLabel\")}\n </Button>\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction SaveFormatModalDialog({\n formatProps,\n quantityType,\n onDialogCloseArgs,\n onDialogClose,\n}: {\n formatProps: FormatProps;\n quantityType: QuantityTypeKey;\n onDialogCloseArgs?: any;\n onDialogClose: (args?: any) => void;\n}) {\n const { translate } = useTranslation();\n const [isOpen, setIsOpen] = React.useState(true);\n\n const handleClose = React.useCallback(() => {\n setIsOpen(false);\n UiFramework.dialogs.modal.close();\n onDialogClose && onDialogClose(onDialogCloseArgs);\n }, [onDialogClose, onDialogCloseArgs]);\n\n const handleOK = React.useCallback(() => {\n void IModelApp.quantityFormatter.setOverrideFormat(\n quantityType,\n formatProps\n );\n handleClose();\n }, [formatProps, handleClose, quantityType]);\n\n const handleCancel = React.useCallback(() => {\n handleClose();\n }, [handleClose]);\n\n return (\n <Dialog\n isOpen={isOpen}\n onClose={handleCancel}\n className=\"uifw-settings-quantityFormatting-saveFormatModalDialog\"\n closeOnEsc\n closeOnExternalClick\n preventDocumentScroll\n >\n <Dialog.Backdrop />\n <Dialog.Main\n style={{ minWidth: 200, maxWidth: 400, minHeight: 150, maxHeight: 400 }}\n >\n <Dialog.TitleBar titleText={\"Save Format Changes\"} />\n <Dialog.Content>\n Do you want to save changes to format before changing to another type?\n </Dialog.Content>\n <Dialog.ButtonBar>\n <Button styleType=\"high-visibility\" onClick={handleOK}>\n {translate(\"dialog.yes\")}\n </Button>\n <Button onClick={handleCancel}>{translate(\"dialog.no\")}</Button>\n </Dialog.ButtonBar>\n </Dialog.Main>\n </Dialog>\n );\n}\n"]}
@@ -4,6 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "~@itwin/core-react/lib/cjs/core-react/inputs/variables";
6
6
  @import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";
7
+ @import "~@itwin/core-react/lib/cjs/core-react/z-index";
7
8
 
8
9
  .quantity-formatting-container {
9
10
  box-sizing: border-box;
@@ -114,3 +115,7 @@
114
115
  }
115
116
  }
116
117
  }
118
+
119
+ .uifw-settings-quantityFormatting-saveFormatModalDialog {
120
+ @include uicore-z-index(dialog);
121
+ }
@@ -14,8 +14,8 @@ import type { SettingsTabEntry } from "@itwin/core-react";
14
14
  * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.
15
15
  * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.
16
16
  * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.
17
- *
18
17
  * @beta
18
+ * @deprecated in 4.15.0. Use iTwinUI components to build a settings page.
19
19
  */
20
20
  export declare function UiSettingsPage(): React.JSX.Element;
21
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"UiSettingsPage.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAe1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,sBA+U7B;AAsBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,GACnB,gBAAgB,CAUlB"}
1
+ {"version":3,"file":"UiSettingsPage.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAe1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,sBA+U7B;AAsBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,GACnB,gBAAgB,CAUlB"}
@@ -8,15 +8,16 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.getUiSettingsManagerEntry = exports.UiSettingsPage = void 0;
11
- // cSpell:ignore configurableui checkmark
12
11
  const window_settings_svg_1 = require("@bentley/icons-generic/icons/window-settings.svg");
13
12
  require("./UiSettingsPage.scss");
14
13
  const React = require("react");
15
14
  const UiFramework_1 = require("../../UiFramework");
16
- const ThemeManager_1 = require("../../theme/ThemeManager");
17
15
  const SyncUiEventDispatcher_1 = require("../../syncui/SyncUiEventDispatcher");
18
16
  const itwinui_react_1 = require("@itwin/itwinui-react");
19
17
  const useTranslation_1 = require("../../hooks/useTranslation");
18
+ const ThemeId_1 = require("../../theme/ThemeId");
19
+ const ConfigurableUiState_1 = require("../../redux/ConfigurableUiState");
20
+ /* eslint-disable deprecation/deprecation */
20
21
  /** UiSettingsPage displaying the active UI settings. This page lets users set the following settings.
21
22
  *
22
23
  * - theme - Dark, Light, with or without High contrast, or based on OS preference.
@@ -27,8 +28,8 @@ const useTranslation_1 = require("../../hooks/useTranslation");
27
28
  * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.
28
29
  * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.
29
30
  * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.
30
- *
31
31
  * @beta
32
+ * @deprecated in 4.15.0. Use iTwinUI components to build a settings page.
32
33
  */
33
34
  function UiSettingsPage() {
34
35
  const { translate } = (0, useTranslation_1.useTranslation)();
@@ -47,14 +48,14 @@ function UiSettingsPage() {
47
48
  const [toolbarOpacity, setToolbarOpacity] = React.useState(() => UiFramework_1.UiFramework.getToolbarOpacity());
48
49
  React.useEffect(() => {
49
50
  const syncIdsOfInterest = [
50
- "configurableui:set_theme",
51
- "configurableui:set_widget_opacity",
52
- "configurableui:set-show-widget-icon",
53
- "configurableui:set-drag-interaction",
54
- "configurableui:set-auto-collapse-unpinned-panels",
55
- "configurableui:set-animate-tool-settings",
56
- "configurableui:set-use-tool-as-tool-settings-label",
57
- "configurableui:set-toolbar-opacity",
51
+ ConfigurableUiState_1.ConfigurableUiActionId.SetTheme,
52
+ ConfigurableUiState_1.ConfigurableUiActionId.SetWidgetOpacity,
53
+ ConfigurableUiState_1.ConfigurableUiActionId.SetShowWidgetIcon,
54
+ ConfigurableUiState_1.ConfigurableUiActionId.SetDragInteraction,
55
+ ConfigurableUiState_1.ConfigurableUiActionId.AutoCollapseUnpinnedPanels,
56
+ ConfigurableUiState_1.ConfigurableUiActionId.AnimateToolSettings,
57
+ ConfigurableUiState_1.ConfigurableUiActionId.UseToolAsToolSettingsLabel,
58
+ ConfigurableUiState_1.ConfigurableUiActionId.SetToolbarOpacity,
58
59
  SyncUiEventDispatcher_1.SyncUiEventId.ShowHideManagerSettingChange,
59
60
  ];
60
61
  // eslint-disable-next-line deprecation/deprecation
@@ -104,29 +105,29 @@ function UiSettingsPage() {
104
105
  ]);
105
106
  const defaultThemeOption = {
106
107
  label: translate("settings.uiSettingsPage.systemPreferred"),
107
- value: ThemeManager_1.SYSTEM_PREFERRED_COLOR_THEME,
108
+ value: ThemeId_1.SYSTEM_PREFERRED_COLOR_THEME,
108
109
  };
109
110
  const themeOptions = [
110
111
  defaultThemeOption,
111
112
  {
112
113
  label: translate("settings.uiSettingsPage.light"),
113
- value: ThemeManager_1.ColorTheme.Light,
114
+ value: ThemeId_1.ColorTheme.Light,
114
115
  },
115
116
  {
116
117
  label: translate("settings.uiSettingsPage.dark"),
117
- value: ThemeManager_1.ColorTheme.Dark,
118
+ value: ThemeId_1.ColorTheme.Dark,
118
119
  },
119
120
  {
120
121
  label: translate("settings.uiSettingsPage.lightHighContrast"),
121
- value: ThemeManager_1.ColorTheme.HighContrastLight,
122
+ value: ThemeId_1.ColorTheme.HighContrastLight,
122
123
  },
123
124
  {
124
125
  label: translate("settings.uiSettingsPage.darkHighContrast"),
125
- value: ThemeManager_1.ColorTheme.HighContrastDark,
126
+ value: ThemeId_1.ColorTheme.HighContrastDark,
126
127
  },
127
128
  {
128
129
  label: translate("settings.uiSettingsPage.inherit"),
129
- value: ThemeManager_1.ColorTheme.Inherit,
130
+ value: ThemeId_1.ColorTheme.Inherit,
130
131
  },
131
132
  ];
132
133
  const onThemeChange = React.useCallback((newValue) => {
@@ -1 +1 @@
1
- {"version":3,"file":"UiSettingsPage.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,yCAAyC;AAEzC,0FAAoF;AACpF,iCAA+B;AAC/B,+BAA+B;AAE/B,mDAAgD;AAChD,2DAGkC;AAClC,8EAG4C;AAE5C,wDAAoE;AAEpE,+DAA4D;AAE5D;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc;IAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5E,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAChE,GAAG,EAAE,CAAC,yBAAW,CAAC,kBAAkB,CACrC,CAAC;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CACxD,GAAG,EAAE,CAAC,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AE,EACpB,MAAM,EAAE,CAAC,aAAa,CAAC,EACvB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,qBAAqB,EAC/B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,QAAQ,EAAC,KAAK,EACd,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAChC,GAEJ,CACE,CACP,CAAC;AACJ,CAAC;AA/UD,wCA+UC;AAQD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,kBAAkB;YAC/B,8BAAM,SAAS,EAAC,OAAO,IAAE,KAAK,CAAQ;YACtC,8BAAM,SAAS,EAAC,aAAa,IAAE,WAAW,CAAQ,CAC9C;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,SAAS,CAAO,CAChD,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CACvC,YAAoB;IAEpB,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,+BAA+B,CAAC;QAC7D,IAAI,EAAE,6BAAoB;QAC1B,IAAI,EAAE,oBAAC,cAAc,OAAG;QACxB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,yBAAW,CAAC,SAAS,CAAC,iCAAiC,CAAC;KAClE,CAAC;AACJ,CAAC;AAZD,8DAYC","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 Settings\n */\n\n// cSpell:ignore configurableui checkmark\n\nimport widowSettingsIconSvg from \"@bentley/icons-generic/icons/window-settings.svg\";\nimport \"./UiSettingsPage.scss\";\nimport * as React from \"react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport {\n ColorTheme,\n SYSTEM_PREFERRED_COLOR_THEME,\n} from \"../../theme/ThemeManager\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"../../syncui/SyncUiEventDispatcher\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select, Slider, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport type { UiSyncEventArgs } from \"../../syncui/UiSyncEvent\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\n\n/** UiSettingsPage displaying the active UI settings. This page lets users set the following settings.\n *\n * - theme - Dark, Light, with or without High contrast, or based on OS preference.\n * - auto hide - Starts a timer and blanks out ui components that overlay content if there is no mouse movement for a period of time.\n * - drag interaction - If set, toolbar group buttons require a press and drag or a long press to open. In this mode a child action\n * item is shown as the group button and is activated when button is clicked. If a different child item is selected, it becomes the\n * active group button item.\n * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.\n * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.\n * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.\n *\n * @beta\n */\nexport function UiSettingsPage() {\n const { translate } = useTranslation();\n const [theme, setTheme] = React.useState(() => UiFramework.getColorTheme());\n const [useDragInteraction, setUseDragInteraction] = React.useState(\n () => UiFramework.useDragInteraction\n );\n const [showWidgetIcon, setShowWidgetIcon] = React.useState(\n () => UiFramework.showWidgetIcon\n );\n const [autoCollapseUnpinnedPanels, setAutoCollapseUnpinnedPanels] =\n React.useState(() => UiFramework.autoCollapseUnpinnedPanels);\n const [animateToolSettings, setAnimateToolSettings] = React.useState(\n () => UiFramework.animateToolSettings\n );\n const [useToolAsToolSettingsLabel, setUseToolAsToolSettingsLabel] =\n React.useState(() => UiFramework.useToolAsToolSettingsLabel);\n const [widgetOpacity, setWidgetOpacity] = React.useState(() =>\n UiFramework.getWidgetOpacity()\n );\n const [autoHideUi, setAutoHideUi] = React.useState(\n () => UiFramework.visibility.autoHideUi\n );\n const [useProximityOpacity, setUseProximityOpacity] = React.useState(\n // eslint-disable-next-line deprecation/deprecation\n () => UiFramework.visibility.useProximityOpacity\n );\n const [snapWidgetOpacity, setSnapWidgetOpacity] = React.useState(\n () => UiFramework.visibility.snapWidgetOpacity\n );\n const [toolbarOpacity, setToolbarOpacity] = React.useState(() =>\n UiFramework.getToolbarOpacity()\n );\n\n React.useEffect(() => {\n const syncIdsOfInterest = [\n \"configurableui:set_theme\",\n \"configurableui:set_widget_opacity\",\n \"configurableui:set-show-widget-icon\",\n \"configurableui:set-drag-interaction\",\n \"configurableui:set-auto-collapse-unpinned-panels\",\n \"configurableui:set-animate-tool-settings\",\n \"configurableui:set-use-tool-as-tool-settings-label\",\n \"configurableui:set-toolbar-opacity\",\n SyncUiEventId.ShowHideManagerSettingChange,\n ];\n\n // eslint-disable-next-line deprecation/deprecation\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\n if (\n syncIdsOfInterest.some((value: string): boolean =>\n args.eventIds.has(value)\n )\n ) {\n if (UiFramework.getColorTheme() !== theme)\n setTheme(UiFramework.getColorTheme());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n if (UiFramework.useDragInteraction !== useDragInteraction)\n setUseDragInteraction(UiFramework.useDragInteraction);\n if (UiFramework.showWidgetIcon !== showWidgetIcon)\n setShowWidgetIcon(UiFramework.showWidgetIcon);\n if (\n UiFramework.autoCollapseUnpinnedPanels !== autoCollapseUnpinnedPanels\n )\n setAutoCollapseUnpinnedPanels(UiFramework.autoCollapseUnpinnedPanels);\n if (UiFramework.getWidgetOpacity() !== widgetOpacity)\n setWidgetOpacity(UiFramework.getWidgetOpacity());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.visibility.useProximityOpacity !== useProximityOpacity)\n // eslint-disable-next-line deprecation/deprecation\n setUseProximityOpacity(UiFramework.visibility.useProximityOpacity);\n if (UiFramework.visibility.snapWidgetOpacity !== snapWidgetOpacity)\n setSnapWidgetOpacity(UiFramework.visibility.snapWidgetOpacity);\n if (UiFramework.animateToolSettings !== animateToolSettings)\n setAnimateToolSettings(UiFramework.animateToolSettings);\n if (\n UiFramework.useToolAsToolSettingsLabel !== useToolAsToolSettingsLabel\n )\n setUseToolAsToolSettingsLabel(UiFramework.useToolAsToolSettingsLabel);\n if (UiFramework.getToolbarOpacity() !== toolbarOpacity)\n setToolbarOpacity(UiFramework.getToolbarOpacity());\n }\n };\n return SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\n }, [\n autoCollapseUnpinnedPanels,\n autoHideUi,\n showWidgetIcon,\n snapWidgetOpacity,\n theme,\n useDragInteraction,\n useProximityOpacity,\n widgetOpacity,\n animateToolSettings,\n useToolAsToolSettingsLabel,\n toolbarOpacity,\n ]);\n\n const defaultThemeOption = {\n label: translate(\"settings.uiSettingsPage.systemPreferred\"),\n value: SYSTEM_PREFERRED_COLOR_THEME,\n };\n const themeOptions: SelectOption<string>[] = [\n defaultThemeOption,\n {\n label: translate(\"settings.uiSettingsPage.light\"),\n value: ColorTheme.Light,\n },\n {\n label: translate(\"settings.uiSettingsPage.dark\"),\n value: ColorTheme.Dark,\n },\n {\n label: translate(\"settings.uiSettingsPage.lightHighContrast\"),\n value: ColorTheme.HighContrastLight,\n },\n {\n label: translate(\"settings.uiSettingsPage.darkHighContrast\"),\n value: ColorTheme.HighContrastDark,\n },\n {\n label: translate(\"settings.uiSettingsPage.inherit\"),\n value: ColorTheme.Inherit,\n },\n ];\n\n const onThemeChange = React.useCallback((newValue: string) => {\n UiFramework.setColorTheme(newValue);\n }, []);\n\n const onAutoHideChange = React.useCallback(async () => {\n UiFramework.visibility.autoHideUi = !autoHideUi;\n }, [autoHideUi]);\n\n const onUseProximityOpacityChange = React.useCallback(async () => {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.visibility.useProximityOpacity = !useProximityOpacity;\n }, [useProximityOpacity]);\n\n const onSnapWidgetOpacityChange = React.useCallback(async () => {\n UiFramework.visibility.snapWidgetOpacity = !snapWidgetOpacity;\n }, [snapWidgetOpacity]);\n\n const onWidgetIconChange = React.useCallback(async () => {\n UiFramework.setShowWidgetIcon(!showWidgetIcon);\n }, [showWidgetIcon]);\n\n const onAutoCollapseUnpinnedPanelsChange = React.useCallback(async () => {\n UiFramework.setAutoCollapseUnpinnedPanels(!autoCollapseUnpinnedPanels);\n }, [autoCollapseUnpinnedPanels]);\n\n const onWidgetOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setWidgetOpacity(values[0]);\n }\n },\n []\n );\n\n const onToggleDragInteraction = React.useCallback(async () => {\n UiFramework.setUseDragInteraction(!useDragInteraction);\n }, [useDragInteraction]);\n\n const OnToggleAnimateToolSettings = React.useCallback(async () => {\n UiFramework.setAnimateToolSettings(!animateToolSettings);\n }, [animateToolSettings]);\n const currentTheme = UiFramework.getColorTheme();\n\n const OnToggleUseToolAsToolSettingsLabel = React.useCallback(async () => {\n UiFramework.setUseToolAsToolSettingsLabel(!useToolAsToolSettingsLabel);\n }, [useToolAsToolSettingsLabel]);\n\n const onToolbarOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setToolbarOpacity(values[0]);\n }\n },\n []\n );\n\n return (\n <div className=\"uifw-settings\">\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.themeTitle\")}\n description={translate(\"settings.uiSettingsPage.themeDescription\")}\n settingUi={\n <div\n data-testid=\"select-theme-container\"\n className=\"select-theme-container\"\n >\n <Select\n value={currentTheme}\n onChange={onThemeChange}\n options={themeOptions}\n data-testid=\"select-theme\"\n size=\"small\"\n />\n </div>\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.autoHideTitle\")}\n description={translate(\"settings.uiSettingsPage.autoHideDescription\")}\n settingUi={\n <ToggleSwitch checked={autoHideUi} onChange={onAutoHideChange} />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.dragInteractionTitle\")}\n description={translate(\n \"settings.uiSettingsPage.dragInteractionDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useDragInteraction}\n onChange={onToggleDragInteraction}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.useProximityOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.useProximityOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useProximityOpacity}\n onChange={onUseProximityOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.snapWidgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.snapWidgetOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={snapWidgetOpacity}\n onChange={onSnapWidgetOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetIconTitle\")}\n description={translate(\"settings.uiSettingsPage.widgetIconDescription\")}\n settingUi={\n <ToggleSwitch\n checked={showWidgetIcon}\n onChange={onWidgetIconChange}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={autoCollapseUnpinnedPanels}\n onChange={onAutoCollapseUnpinnedPanelsChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.animateToolSettingsTitle\")}\n description={translate(\n \"settings.uiSettingsPage.animateToolSettingsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={animateToolSettings}\n onChange={OnToggleAnimateToolSettings}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useToolAsToolSettingsLabel}\n onChange={OnToggleUseToolAsToolSettingsLabel}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.toolbarOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.toolbarOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[toolbarOpacity]}\n step={0.05}\n onChange={onToolbarOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.widgetOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[widgetOpacity]}\n step={0.05}\n onChange={onWidgetOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n </div>\n );\n}\n\ninterface SettingsItemProps {\n title: string;\n description: string;\n settingUi: React.ReactNode;\n}\n\nfunction SettingsItem(props: SettingsItemProps) {\n const { title, description, settingUi } = props;\n\n return (\n <div className=\"uifw-settings-item\">\n <div className=\"panel left-panel\">\n <span className=\"title\">{title}</span>\n <span className=\"description\">{description}</span>\n </div>\n <div className=\"panel right-panel\">{settingUi}</div>\n </div>\n );\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @beta\n */\nexport function getUiSettingsManagerEntry(\n itemPriority: number\n): SettingsTabEntry {\n return {\n itemPriority,\n tabId: \"uifw:UiStateStorage\",\n label: UiFramework.translate(\"settings.uiSettingsPage.label\"),\n icon: widowSettingsIconSvg,\n page: <UiSettingsPage />,\n isDisabled: false,\n tooltip: UiFramework.translate(\"settings.uiSettingsPage.tooltip\"),\n };\n}\n"]}
1
+ {"version":3,"file":"UiSettingsPage.js","sourceRoot":"","sources":["../../../../../src/appui-react/settings/ui/UiSettingsPage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0FAAoF;AACpF,iCAA+B;AAC/B,+BAA+B;AAE/B,mDAAgD;AAChD,8EAG4C;AAE5C,wDAAoE;AAEpE,+DAA4D;AAC5D,iDAA+E;AAC/E,yEAAyE;AAEzE,4CAA4C;AAE5C;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc;IAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5E,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAChE,GAAG,EAAE,CAAC,yBAAW,CAAC,kBAAkB,CACrC,CAAC;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CACxD,GAAG,EAAE,CAAC,yBAAW,CAAC,cAAc,CACjC,CAAC;IACF,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAC/D,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,0BAA0B,CAAC,CAAC;IAC/D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAClE,GAAG,EAAE,CAAC,yBAAW,CAAC,mBAAmB,CACtC,CAAC;IACF,MAAM,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,GAC/D,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,0BA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D,wCA+UC;AAQD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,kBAAkB;YAC/B,8BAAM,SAAS,EAAC,OAAO,IAAE,KAAK,CAAQ;YACtC,8BAAM,SAAS,EAAC,aAAa,IAAE,WAAW,CAAQ,CAC9C;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,SAAS,CAAO,CAChD,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CACvC,YAAoB;IAEpB,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,yBAAW,CAAC,SAAS,CAAC,+BAA+B,CAAC;QAC7D,IAAI,EAAE,6BAAoB;QAC1B,IAAI,EAAE,oBAAC,cAAc,OAAG;QACxB,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,yBAAW,CAAC,SAAS,CAAC,iCAAiC,CAAC;KAClE,CAAC;AACJ,CAAC;AAZD,8DAYC","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 Settings\n */\n\nimport widowSettingsIconSvg from \"@bentley/icons-generic/icons/window-settings.svg\";\nimport \"./UiSettingsPage.scss\";\nimport * as React from \"react\";\nimport type { SettingsTabEntry } from \"@itwin/core-react\";\nimport { UiFramework } from \"../../UiFramework\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"../../syncui/SyncUiEventDispatcher\";\nimport type { SelectOption } from \"@itwin/itwinui-react\";\nimport { Select, Slider, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport type { UiSyncEventArgs } from \"../../syncui/UiSyncEvent\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\nimport { ColorTheme, SYSTEM_PREFERRED_COLOR_THEME } from \"../../theme/ThemeId\";\nimport { ConfigurableUiActionId } from \"../../redux/ConfigurableUiState\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** UiSettingsPage displaying the active UI settings. This page lets users set the following settings.\n *\n * - theme - Dark, Light, with or without High contrast, or based on OS preference.\n * - auto hide - Starts a timer and blanks out ui components that overlay content if there is no mouse movement for a period of time.\n * - drag interaction - If set, toolbar group buttons require a press and drag or a long press to open. In this mode a child action\n * item is shown as the group button and is activated when button is clicked. If a different child item is selected, it becomes the\n * active group button item.\n * - use proximity - Changes the opacity of toolbar from transparent to opaque as the mouse moves closer.\n * - snap widget opacity - triggers an abrupt change from transparent to opaque for tool and navigation widgets, instead of a gradual change based on mouse location.\n * - widget opacity - determines how transparent floating widgets become when the mouse in not in them.\n * @beta\n * @deprecated in 4.15.0. Use iTwinUI components to build a settings page.\n */\nexport function UiSettingsPage() {\n const { translate } = useTranslation();\n const [theme, setTheme] = React.useState(() => UiFramework.getColorTheme());\n const [useDragInteraction, setUseDragInteraction] = React.useState(\n () => UiFramework.useDragInteraction\n );\n const [showWidgetIcon, setShowWidgetIcon] = React.useState(\n () => UiFramework.showWidgetIcon\n );\n const [autoCollapseUnpinnedPanels, setAutoCollapseUnpinnedPanels] =\n React.useState(() => UiFramework.autoCollapseUnpinnedPanels);\n const [animateToolSettings, setAnimateToolSettings] = React.useState(\n () => UiFramework.animateToolSettings\n );\n const [useToolAsToolSettingsLabel, setUseToolAsToolSettingsLabel] =\n React.useState(() => UiFramework.useToolAsToolSettingsLabel);\n const [widgetOpacity, setWidgetOpacity] = React.useState(() =>\n UiFramework.getWidgetOpacity()\n );\n const [autoHideUi, setAutoHideUi] = React.useState(\n () => UiFramework.visibility.autoHideUi\n );\n const [useProximityOpacity, setUseProximityOpacity] = React.useState(\n // eslint-disable-next-line deprecation/deprecation\n () => UiFramework.visibility.useProximityOpacity\n );\n const [snapWidgetOpacity, setSnapWidgetOpacity] = React.useState(\n () => UiFramework.visibility.snapWidgetOpacity\n );\n const [toolbarOpacity, setToolbarOpacity] = React.useState(() =>\n UiFramework.getToolbarOpacity()\n );\n\n React.useEffect(() => {\n const syncIdsOfInterest = [\n ConfigurableUiActionId.SetTheme,\n ConfigurableUiActionId.SetWidgetOpacity,\n ConfigurableUiActionId.SetShowWidgetIcon,\n ConfigurableUiActionId.SetDragInteraction,\n ConfigurableUiActionId.AutoCollapseUnpinnedPanels,\n ConfigurableUiActionId.AnimateToolSettings,\n ConfigurableUiActionId.UseToolAsToolSettingsLabel,\n ConfigurableUiActionId.SetToolbarOpacity,\n SyncUiEventId.ShowHideManagerSettingChange,\n ];\n\n // eslint-disable-next-line deprecation/deprecation\n const handleSyncUiEvent = (args: UiSyncEventArgs) => {\n if (\n syncIdsOfInterest.some((value: string): boolean =>\n args.eventIds.has(value)\n )\n ) {\n if (UiFramework.getColorTheme() !== theme)\n setTheme(UiFramework.getColorTheme());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n if (UiFramework.useDragInteraction !== useDragInteraction)\n setUseDragInteraction(UiFramework.useDragInteraction);\n if (UiFramework.showWidgetIcon !== showWidgetIcon)\n setShowWidgetIcon(UiFramework.showWidgetIcon);\n if (\n UiFramework.autoCollapseUnpinnedPanels !== autoCollapseUnpinnedPanels\n )\n setAutoCollapseUnpinnedPanels(UiFramework.autoCollapseUnpinnedPanels);\n if (UiFramework.getWidgetOpacity() !== widgetOpacity)\n setWidgetOpacity(UiFramework.getWidgetOpacity());\n if (UiFramework.visibility.autoHideUi !== autoHideUi)\n setAutoHideUi(UiFramework.visibility.autoHideUi);\n // eslint-disable-next-line deprecation/deprecation\n if (UiFramework.visibility.useProximityOpacity !== useProximityOpacity)\n // eslint-disable-next-line deprecation/deprecation\n setUseProximityOpacity(UiFramework.visibility.useProximityOpacity);\n if (UiFramework.visibility.snapWidgetOpacity !== snapWidgetOpacity)\n setSnapWidgetOpacity(UiFramework.visibility.snapWidgetOpacity);\n if (UiFramework.animateToolSettings !== animateToolSettings)\n setAnimateToolSettings(UiFramework.animateToolSettings);\n if (\n UiFramework.useToolAsToolSettingsLabel !== useToolAsToolSettingsLabel\n )\n setUseToolAsToolSettingsLabel(UiFramework.useToolAsToolSettingsLabel);\n if (UiFramework.getToolbarOpacity() !== toolbarOpacity)\n setToolbarOpacity(UiFramework.getToolbarOpacity());\n }\n };\n return SyncUiEventDispatcher.onSyncUiEvent.addListener(handleSyncUiEvent);\n }, [\n autoCollapseUnpinnedPanels,\n autoHideUi,\n showWidgetIcon,\n snapWidgetOpacity,\n theme,\n useDragInteraction,\n useProximityOpacity,\n widgetOpacity,\n animateToolSettings,\n useToolAsToolSettingsLabel,\n toolbarOpacity,\n ]);\n\n const defaultThemeOption = {\n label: translate(\"settings.uiSettingsPage.systemPreferred\"),\n value: SYSTEM_PREFERRED_COLOR_THEME,\n };\n const themeOptions: SelectOption<string>[] = [\n defaultThemeOption,\n {\n label: translate(\"settings.uiSettingsPage.light\"),\n value: ColorTheme.Light,\n },\n {\n label: translate(\"settings.uiSettingsPage.dark\"),\n value: ColorTheme.Dark,\n },\n {\n label: translate(\"settings.uiSettingsPage.lightHighContrast\"),\n value: ColorTheme.HighContrastLight,\n },\n {\n label: translate(\"settings.uiSettingsPage.darkHighContrast\"),\n value: ColorTheme.HighContrastDark,\n },\n {\n label: translate(\"settings.uiSettingsPage.inherit\"),\n value: ColorTheme.Inherit,\n },\n ];\n\n const onThemeChange = React.useCallback((newValue: string) => {\n UiFramework.setColorTheme(newValue);\n }, []);\n\n const onAutoHideChange = React.useCallback(async () => {\n UiFramework.visibility.autoHideUi = !autoHideUi;\n }, [autoHideUi]);\n\n const onUseProximityOpacityChange = React.useCallback(async () => {\n // eslint-disable-next-line deprecation/deprecation\n UiFramework.visibility.useProximityOpacity = !useProximityOpacity;\n }, [useProximityOpacity]);\n\n const onSnapWidgetOpacityChange = React.useCallback(async () => {\n UiFramework.visibility.snapWidgetOpacity = !snapWidgetOpacity;\n }, [snapWidgetOpacity]);\n\n const onWidgetIconChange = React.useCallback(async () => {\n UiFramework.setShowWidgetIcon(!showWidgetIcon);\n }, [showWidgetIcon]);\n\n const onAutoCollapseUnpinnedPanelsChange = React.useCallback(async () => {\n UiFramework.setAutoCollapseUnpinnedPanels(!autoCollapseUnpinnedPanels);\n }, [autoCollapseUnpinnedPanels]);\n\n const onWidgetOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setWidgetOpacity(values[0]);\n }\n },\n []\n );\n\n const onToggleDragInteraction = React.useCallback(async () => {\n UiFramework.setUseDragInteraction(!useDragInteraction);\n }, [useDragInteraction]);\n\n const OnToggleAnimateToolSettings = React.useCallback(async () => {\n UiFramework.setAnimateToolSettings(!animateToolSettings);\n }, [animateToolSettings]);\n const currentTheme = UiFramework.getColorTheme();\n\n const OnToggleUseToolAsToolSettingsLabel = React.useCallback(async () => {\n UiFramework.setUseToolAsToolSettingsLabel(!useToolAsToolSettingsLabel);\n }, [useToolAsToolSettingsLabel]);\n\n const onToolbarOpacityChange = React.useCallback(\n async (values: readonly number[]) => {\n if (values.length > 0) {\n UiFramework.setToolbarOpacity(values[0]);\n }\n },\n []\n );\n\n return (\n <div className=\"uifw-settings\">\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.themeTitle\")}\n description={translate(\"settings.uiSettingsPage.themeDescription\")}\n settingUi={\n <div\n data-testid=\"select-theme-container\"\n className=\"select-theme-container\"\n >\n <Select\n value={currentTheme}\n onChange={onThemeChange}\n options={themeOptions}\n data-testid=\"select-theme\"\n size=\"small\"\n />\n </div>\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.autoHideTitle\")}\n description={translate(\"settings.uiSettingsPage.autoHideDescription\")}\n settingUi={\n <ToggleSwitch checked={autoHideUi} onChange={onAutoHideChange} />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.dragInteractionTitle\")}\n description={translate(\n \"settings.uiSettingsPage.dragInteractionDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useDragInteraction}\n onChange={onToggleDragInteraction}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.useProximityOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.useProximityOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useProximityOpacity}\n onChange={onUseProximityOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.snapWidgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.snapWidgetOpacityDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={snapWidgetOpacity}\n onChange={onSnapWidgetOpacityChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetIconTitle\")}\n description={translate(\"settings.uiSettingsPage.widgetIconDescription\")}\n settingUi={\n <ToggleSwitch\n checked={showWidgetIcon}\n onChange={onWidgetIconChange}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.autoCollapseUnpinnedPanelsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={autoCollapseUnpinnedPanels}\n onChange={onAutoCollapseUnpinnedPanelsChange}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.animateToolSettingsTitle\")}\n description={translate(\n \"settings.uiSettingsPage.animateToolSettingsDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={animateToolSettings}\n onChange={OnToggleAnimateToolSettings}\n />\n }\n />\n <SettingsItem\n title={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelTitle\"\n )}\n description={translate(\n \"settings.uiSettingsPage.useToolAsToolSettingsLabelDescription\"\n )}\n settingUi={\n <ToggleSwitch\n checked={useToolAsToolSettingsLabel}\n onChange={OnToggleUseToolAsToolSettingsLabel}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.toolbarOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.toolbarOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[toolbarOpacity]}\n step={0.05}\n onChange={onToolbarOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n <SettingsItem\n title={translate(\"settings.uiSettingsPage.widgetOpacityTitle\")}\n description={translate(\n \"settings.uiSettingsPage.widgetOpacityDescription\"\n )}\n settingUi={\n <Slider\n style={{ flex: \"1\" }}\n values={[widgetOpacity]}\n step={0.05}\n onChange={onWidgetOpacityChange}\n min={0.2}\n max={1.0}\n maxLabel=\"1.0\"\n tickLabels={[\"\", \"\", \"\", \"\", \"\"]}\n />\n }\n />\n </div>\n );\n}\n\ninterface SettingsItemProps {\n title: string;\n description: string;\n settingUi: React.ReactNode;\n}\n\nfunction SettingsItem(props: SettingsItemProps) {\n const { title, description, settingUi } = props;\n\n return (\n <div className=\"uifw-settings-item\">\n <div className=\"panel left-panel\">\n <span className=\"title\">{title}</span>\n <span className=\"description\">{description}</span>\n </div>\n <div className=\"panel right-panel\">{settingUi}</div>\n </div>\n );\n}\n\n/**\n * Return a SettingsTabEntry that can be used to define the available settings that can be set for an application.\n * @param itemPriority - Used to define the order of the entry in the Settings Stage\n * @beta\n */\nexport function getUiSettingsManagerEntry(\n itemPriority: number\n): SettingsTabEntry {\n return {\n itemPriority,\n tabId: \"uifw:UiStateStorage\",\n label: UiFramework.translate(\"settings.uiSettingsPage.label\"),\n icon: widowSettingsIconSvg,\n page: <UiSettingsPage />,\n isDisabled: false,\n tooltip: UiFramework.translate(\"settings.uiSettingsPage.tooltip\"),\n };\n}\n"]}
@@ -8,6 +8,7 @@ import { ItemDefBase } from "./ItemDefBase";
8
8
  import type { ItemProps } from "./ItemProps";
9
9
  /** Abstract base class that is used by classes to execute an action when pressed.
10
10
  * @public
11
+ * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.
11
12
  */
12
13
  export declare abstract class ActionButtonItemDef extends ItemDefBase {
13
14
  private _onItemExecuted?;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,8BAAsB,mBAAoB,SAAQ,WAAW;IAC3D,OAAO,CAAC,eAAe,CAAC,CAAqB;IAE7C,4CAA4C;IAC5C,SAAS,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;IAC3C,+CAA+C;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC;IACxB,2DAA2D;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACxB,qDAAqD;IACrD,OAAc,iBAAiB,SAAM;gBAEzB,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,kBAAkB;IAOrE,mEAAmE;IAC5D,OAAO,IAAI,IAAI;IAUtB,qFAAqF;IAC9E,eAAe,SAAU,SAAS,UAEvC;IAEF,sDAAsD;IAC/C,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;CAUtD"}
1
+ {"version":3,"file":"ActionButtonItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C;;;GAGG;AACH,8BAAsB,mBAAoB,SAAQ,WAAW;IAC3D,OAAO,CAAC,eAAe,CAAC,CAAqB;IAE7C,4CAA4C;IAC5C,SAAS,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;IAC3C,+CAA+C;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC;IACxB,2DAA2D;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACxB,qDAAqD;IACrD,OAAc,iBAAiB,SAAM;gBAEzB,SAAS,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,kBAAkB;IAOrE,mEAAmE;IAC5D,OAAO,IAAI,IAAI;IAUtB,qFAAqF;IAC9E,eAAe,SAAU,SAAS,UAEvC;IAEF,sDAAsD;IAC/C,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM;CAUtD"}
@@ -10,8 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ActionButtonItemDef = void 0;
11
11
  const core_react_1 = require("@itwin/core-react");
12
12
  const ItemDefBase_1 = require("./ItemDefBase");
13
+ /* eslint-disable deprecation/deprecation */
13
14
  /** Abstract base class that is used by classes to execute an action when pressed.
14
15
  * @public
16
+ * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.
15
17
  */
16
18
  class ActionButtonItemDef extends ItemDefBase_1.ItemDefBase {
17
19
  constructor(itemProps, onItemExecuted) {
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButtonItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/ActionButtonIt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DAAqD;AACvC,qCAAiB,GAAG,EAAE,AAAL,CAAM","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 { CommandHandler, OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { Orientation } from \"@itwin/core-react\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { ItemProps } from \"./ItemProps\";\n\n/** Abstract base class that is used by classes to execute an action when pressed.\n * @public\n */\nexport abstract class ActionButtonItemDef extends ItemDefBase {\n private _onItemExecuted?: OnItemExecutedFunc;\n\n /** Command Handler for the action button */\n protected _commandHandler?: CommandHandler;\n /** Parameters passed to the Command Handler */\n public parameters?: any;\n /** Size of the action button, as set by handleSizeKnown */\n public size?: SizeProps;\n /** The default button size for all action buttons */\n public static defaultButtonSize = 42;\n\n constructor(itemProps: ItemProps, onItemExecuted?: OnItemExecutedFunc) {\n super(itemProps);\n\n this.execute = this.execute.bind(this);\n this._onItemExecuted = onItemExecuted;\n }\n\n /** Called when the action button is invoked by a click or touch */\n public execute(): void {\n if (this._commandHandler && this._commandHandler.execute) {\n if (this._commandHandler.getCommandArgs)\n this._commandHandler.execute(this._commandHandler.getCommandArgs());\n else this._commandHandler.execute(this._commandHandler.parameters);\n }\n\n if (this._onItemExecuted) this._onItemExecuted(this);\n }\n\n /** Called when the size of the action button is initialized and the size is known */\n public handleSizeKnown = (size: SizeProps) => {\n this.size = size;\n };\n\n /** Determines the dimension in a given orientation */\n public getDimension(orientation: Orientation): number {\n let dimension = ActionButtonItemDef.defaultButtonSize;\n if (this.size)\n dimension =\n orientation === Orientation.Horizontal\n ? this.size.width\n : this.size.height;\n\n return dimension;\n }\n}\n"]}
1
+ {"version":3,"file":"ActionButtonItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react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CAAC;;AA7CH,kDA8CC;AArCC,qDAAqD;AACvC,qCAAiB,GAAG,EAAE,AAAL,CAAM","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 { CommandHandler, OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport type { SizeProps } from \"@itwin/core-react\";\nimport { Orientation } from \"@itwin/core-react\";\nimport { ItemDefBase } from \"./ItemDefBase\";\nimport type { ItemProps } from \"./ItemProps\";\nimport { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Abstract base class that is used by classes to execute an action when pressed.\n * @public\n * @deprecated in 4.15.0. Use type specific utilities for creating items instead, i.e. {@link ToolbarItemUtilities.createActionItem}.\n */\nexport abstract class ActionButtonItemDef extends ItemDefBase {\n private _onItemExecuted?: OnItemExecutedFunc;\n\n /** Command Handler for the action button */\n protected _commandHandler?: CommandHandler;\n /** Parameters passed to the Command Handler */\n public parameters?: any;\n /** Size of the action button, as set by handleSizeKnown */\n public size?: SizeProps;\n /** The default button size for all action buttons */\n public static defaultButtonSize = 42;\n\n constructor(itemProps: ItemProps, onItemExecuted?: OnItemExecutedFunc) {\n super(itemProps);\n\n this.execute = this.execute.bind(this);\n this._onItemExecuted = onItemExecuted;\n }\n\n /** Called when the action button is invoked by a click or touch */\n public execute(): void {\n if (this._commandHandler && this._commandHandler.execute) {\n if (this._commandHandler.getCommandArgs)\n this._commandHandler.execute(this._commandHandler.getCommandArgs());\n else this._commandHandler.execute(this._commandHandler.parameters);\n }\n\n if (this._onItemExecuted) this._onItemExecuted(this);\n }\n\n /** Called when the size of the action button is initialized and the size is known */\n public handleSizeKnown = (size: SizeProps) => {\n this.size = size;\n };\n\n /** Determines the dimension in a given orientation */\n public getDimension(orientation: Orientation): number {\n let dimension = ActionButtonItemDef.defaultButtonSize;\n if (this.size)\n dimension =\n orientation === Orientation.Horizontal\n ? this.size.width\n : this.size.height;\n\n return dimension;\n }\n}\n"]}
@@ -7,6 +7,7 @@ import type { CommandItemDef } from "./CommandItemDef";
7
7
  import type { ToolItemDef } from "./ToolItemDef";
8
8
  /** Union of all Item definitions that can be specified in a GroupItem
9
9
  * @public
10
+ * @deprecated in 4.15.0. Use type specific item definitions instead, i.e. {@link ToolbarItem}.
10
11
  */
11
12
  export type AnyItemDef = GroupItemDef | CommandItemDef | ToolItemDef | ActionButtonItemDef;
12
13
  //# sourceMappingURL=AnyItemDef.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnyItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,cAAc,GACd,WAAW,GACX,mBAAmB,CAAC"}
1
+ {"version":3,"file":"AnyItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,cAAc,GACd,WAAW,GACX,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnyItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyItemDef.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 { GroupItemDef } from \"../toolbar/GroupItem\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CommandItemDef } from \"./CommandItemDef\";\nimport type { ToolItemDef } from \"./ToolItemDef\";\n\n/** Union of all Item definitions that can be specified in a GroupItem\n * @public\n */\nexport type AnyItemDef =\n | GroupItemDef\n | CommandItemDef\n | ToolItemDef\n | ActionButtonItemDef;\n"]}
1
+ {"version":3,"file":"AnyItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyItemDef.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 { GroupItemDef } from \"../toolbar/GroupItem\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport type { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CommandItemDef } from \"./CommandItemDef\";\nimport type { ToolItemDef } from \"./ToolItemDef\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Union of all Item definitions that can be specified in a GroupItem\n * @public\n * @deprecated in 4.15.0. Use type specific item definitions instead, i.e. {@link ToolbarItem}.\n */\nexport type AnyItemDef =\n | GroupItemDef\n | CommandItemDef\n | ToolItemDef\n | ActionButtonItemDef;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AnyToolbarItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyToolbarItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"AnyToolbarItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyToolbarItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AAEH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnyToolbarItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyToolbarItemDef.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 { AnyItemDef } from \"./AnyItemDef\";\nimport type { CustomItemDef } from \"./CustomItemDef\";\n\n/** Union of all Item definitions that can be specified in a Toolbar\n * @public\n */\nexport type AnyToolbarItemDef = AnyItemDef | CustomItemDef;\n"]}
1
+ {"version":3,"file":"AnyToolbarItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/AnyToolbarItemDef.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 { AnyItemDef } from \"./AnyItemDef\";\nimport type { CustomItemDef } from \"./CustomItemDef\";\n\n/** Union of all Item definitions that can be specified in a Toolbar\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport type AnyToolbarItemDef = AnyItemDef | CustomItemDef;\n"]}
@@ -6,6 +6,7 @@ import { ActionButtonItemDef } from "./ActionButtonItemDef";
6
6
  import type { CommandItemProps } from "./ItemProps";
7
7
  /** An Item that executes a Command.
8
8
  * @public
9
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
9
10
  */
10
11
  export declare class CommandItemDef extends ActionButtonItemDef {
11
12
  private static _sId;
@@ -1 +1 @@
1
- {"version":3,"file":"CommandItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CommandItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;GAEG;AACH,qBAAa,cAAe,SAAQ,mBAAmB;IACrD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,eAAe,SAAc;IACpC,SAAS,EAAE,MAAM,CAAM;gBAG5B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,CAAC,EAAE,kBAAkB;IAmBrC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
1
+ {"version":3,"file":"CommandItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CommandItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAAmB;IACrD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,eAAe,SAAc;IACpC,SAAS,EAAE,MAAM,CAAM;gBAG5B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,CAAC,EAAE,kBAAkB;IAmBrC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
@@ -9,8 +9,10 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.CommandItemDef = void 0;
11
11
  const ActionButtonItemDef_1 = require("./ActionButtonItemDef");
12
+ /* eslint-disable deprecation/deprecation */
12
13
  /** An Item that executes a Command.
13
14
  * @public
15
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.
14
16
  */
15
17
  class CommandItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
16
18
  constructor(commandItemProps, onItemExecuted) {
@@ -1 +1 @@
1
- {"version":3,"file":"CommandItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CommandItemDef.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAG5D;;GAEG;AACH,MAAa,cAAe,SAAQ,yCAAmB;IAKrD,YACE,gBAAkC,EAClC,cAAmC;QAEnC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QANnC,cAAS,GAAW,EAAE,CAAC;QAQ5B,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,eAAe,GAAG;gBACrB,OAAO,EAAE,gBAAgB,CAAC,OAAO;gBACjC,UAAU,EAAE,gBAAgB,CAAC,UAAU;gBACvC,cAAc,EAAE,gBAAgB,CAAC,cAAc;aAChD,CAAC;QACJ,CAAC;QAED,IAAI,gBAAgB,CAAC,SAAS;YAAE,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;aACvE,CAAC;YACJ,cAAc,CAAC,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,eAAe,GAAG,cAAc,CAAC,IAAI,CAAC;QACxE,CAAC;IACH,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;;AA5BH,wCA6BC;AA5BgB,mBAAI,GAAG,CAAC,AAAJ,CAAK;AACV,8BAAe,GAAG,UAAU,AAAb,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 Item\n */\n\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CommandItemProps } from \"./ItemProps\";\n\n/** An Item that executes a Command.\n * @public\n */\nexport class CommandItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static commandIdPrefix = \"Command-\";\n public commandId: string = \"\";\n\n constructor(\n commandItemProps: CommandItemProps,\n onItemExecuted?: OnItemExecutedFunc\n ) {\n super(commandItemProps, onItemExecuted);\n\n if (commandItemProps.execute) {\n this._commandHandler = {\n execute: commandItemProps.execute,\n parameters: commandItemProps.parameters,\n getCommandArgs: commandItemProps.getCommandArgs,\n };\n }\n\n if (commandItemProps.commandId) this.commandId = commandItemProps.commandId;\n else {\n CommandItemDef._sId++;\n this.commandId = CommandItemDef.commandIdPrefix + CommandItemDef._sId;\n }\n }\n\n public get id(): string {\n return this.commandId;\n }\n}\n"]}
1
+ {"version":3,"file":"CommandItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CommandItemDef.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAI5D,4CAA4C;AAE5C;;;GAGG;AACH,MAAa,cAAe,SAAQ,yCAAmB;IAKrD,YACE,gBAAkC,EAClC,cAAmC;QAEnC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QANnC,cAAS,GAAW,EAAE,CAAC;QAQ5B,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,eAAe,GAAG;gBACrB,OAAO,EAAE,gBAAgB,CAAC,OAAO;gBACjC,UAAU,EAAE,gBAAgB,CAAC,UAAU;gBACvC,cAAc,EAAE,gBAAgB,CAAC,cAAc;aAChD,CAAC;QACJ,CAAC;QAED,IAAI,gBAAgB,CAAC,SAAS;YAAE,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;aACvE,CAAC;YACJ,cAAc,CAAC,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,eAAe,GAAG,cAAc,CAAC,IAAI,CAAC;QACxE,CAAC;IACH,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;;AA5BH,wCA6BC;AA5BgB,mBAAI,GAAG,CAAC,AAAJ,CAAK;AACV,8BAAe,GAAG,UAAU,AAAb,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 Item\n */\n\nimport type { OnItemExecutedFunc } from \"@itwin/appui-abstract\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CommandItemProps } from \"./ItemProps\";\nimport type { ToolbarActionItem } from \"../toolbar/ToolbarItem\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** An Item that executes a Command.\n * @public\n * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarActionItem}.\n */\nexport class CommandItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static commandIdPrefix = \"Command-\";\n public commandId: string = \"\";\n\n constructor(\n commandItemProps: CommandItemProps,\n onItemExecuted?: OnItemExecutedFunc\n ) {\n super(commandItemProps, onItemExecuted);\n\n if (commandItemProps.execute) {\n this._commandHandler = {\n execute: commandItemProps.execute,\n parameters: commandItemProps.parameters,\n getCommandArgs: commandItemProps.getCommandArgs,\n };\n }\n\n if (commandItemProps.commandId) this.commandId = commandItemProps.commandId;\n else {\n CommandItemDef._sId++;\n this.commandId = CommandItemDef.commandIdPrefix + CommandItemDef._sId;\n }\n }\n\n public get id(): string {\n return this.commandId;\n }\n}\n"]}
@@ -6,6 +6,7 @@ import { ActionButtonItemDef } from "./ActionButtonItemDef";
6
6
  import type { CustomItemProps } from "./CustomItemProps";
7
7
  /** An Item that renders a React component.
8
8
  * @public
9
+ * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.
9
10
  */
10
11
  export declare class CustomItemDef extends ActionButtonItemDef {
11
12
  private static _sId;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,qBAAa,aAAc,SAAQ,mBAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,cAAc,SAAa;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;gBAE5B,KAAK,EAAE,eAAe;IAYlC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
1
+ {"version":3,"file":"CustomItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD;;;GAGG;AACH,qBAAa,aAAc,SAAQ,mBAAmB;IACpD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAK;IACxB,OAAc,cAAc,SAAa;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;gBAE5B,KAAK,EAAE,eAAe;IAYlC,IAAW,EAAE,IAAI,MAAM,CAEtB;CACF"}
@@ -9,8 +9,10 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.CustomItemDef = void 0;
11
11
  const ActionButtonItemDef_1 = require("./ActionButtonItemDef");
12
+ /* eslint-disable deprecation/deprecation */
12
13
  /** An Item that renders a React component.
13
14
  * @public
15
+ * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.
14
16
  */
15
17
  class CustomItemDef extends ActionButtonItemDef_1.ActionButtonItemDef {
16
18
  constructor(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAG5D;;GAEG;AACH,MAAa,aAAc,SAAQ,yCAAmB;IAMpD,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;aAC9C,CAAC;YACJ,aAAa,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC;QACpE,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC7C,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;;AApBH,sCAqBC;AApBgB,kBAAI,GAAG,CAAC,CAAC;AACV,4BAAc,GAAG,SAAS,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 Item\n */\n\nimport type * as React from \"react\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CustomItemProps } from \"./CustomItemProps\";\n\n/** An Item that renders a React component.\n * @public\n */\nexport class CustomItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static customIdPrefix = \"Custom-\";\n public customId: string;\n public popupPanelNode?: React.ReactNode;\n\n constructor(props: CustomItemProps) {\n super(props);\n\n if (props.customId) this.customId = props.customId;\n else {\n CustomItemDef._sId++;\n this.customId = CustomItemDef.customIdPrefix + CustomItemDef._sId;\n }\n\n this.popupPanelNode = props.popupPanelNode;\n }\n\n public get id(): string {\n return this.customId;\n }\n}\n"]}
1
+ {"version":3,"file":"CustomItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/shared/CustomItemDef.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,+DAA4D;AAI5D,4CAA4C;AAE5C;;;GAGG;AACH,MAAa,aAAc,SAAQ,yCAAmB;IAMpD,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,KAAK,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;aAC9C,CAAC;YACJ,aAAa,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,cAAc,GAAG,aAAa,CAAC,IAAI,CAAC;QACpE,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC7C,CAAC;IAED,IAAW,EAAE;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;;AApBH,sCAqBC;AApBgB,kBAAI,GAAG,CAAC,CAAC;AACV,4BAAc,GAAG,SAAS,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 Item\n */\n\nimport type * as React from \"react\";\nimport { ActionButtonItemDef } from \"./ActionButtonItemDef\";\nimport type { CustomItemProps } from \"./CustomItemProps\";\nimport type { ToolbarItemUtilities } from \"../toolbar/ToolbarItemUtilities\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** An Item that renders a React component.\n * @public\n * @deprecated in 4.15.0. Use specific item type utilities instead, i.e. {@link ToolbarItemUtilities.createCustomItem}.\n */\nexport class CustomItemDef extends ActionButtonItemDef {\n private static _sId = 0;\n public static customIdPrefix = \"Custom-\";\n public customId: string;\n public popupPanelNode?: React.ReactNode;\n\n constructor(props: CustomItemProps) {\n super(props);\n\n if (props.customId) this.customId = props.customId;\n else {\n CustomItemDef._sId++;\n this.customId = CustomItemDef.customIdPrefix + CustomItemDef._sId;\n }\n\n this.popupPanelNode = props.popupPanelNode;\n }\n\n public get id(): string {\n return this.customId;\n }\n}\n"]}
@@ -1,10 +1,8 @@
1
- /** @packageDocumentation
2
- * @module Item
3
- */
4
1
  /// <reference types="react" />
5
2
  import type { ItemProps } from "./ItemProps";
6
3
  /** Definition for a Custom item that renders a React component.
7
4
  * @public
5
+ * @deprecated in 4.15.0. Use specific item types instead, i.e. {@link ToolbarCustomItem}.
8
6
  */
9
7
  export interface CustomItemProps extends ItemProps {
10
8
  customId?: string;