@itwin/appui-react 4.14.1 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1243) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/lib/cjs/appui-react/UiFramework.d.ts +202 -140
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +432 -301
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/UiFramework.json +8 -4
  7. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  8. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  9. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  10. package/lib/cjs/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  11. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  12. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  13. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +6 -7
  14. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  15. package/lib/cjs/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  16. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  17. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  18. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  19. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  20. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  21. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  22. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  23. package/lib/cjs/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  24. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  25. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  26. package/lib/cjs/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  27. package/lib/cjs/appui-react/accudraw/Calculator.d.ts.map +1 -1
  28. package/lib/cjs/appui-react/accudraw/Calculator.js.map +1 -1
  29. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  30. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  31. package/lib/cjs/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  32. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts +0 -1
  33. package/lib/cjs/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  34. package/lib/cjs/appui-react/accudraw/SquareButton.js.map +1 -1
  35. package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  36. package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
  37. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts +3 -2
  38. package/lib/cjs/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/backstage/BackstageManager.js +5 -7
  40. package/lib/cjs/appui-react/backstage/BackstageManager.js.map +1 -1
  41. package/lib/cjs/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  42. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js +1 -0
  43. package/lib/cjs/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  44. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  45. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  46. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  47. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  48. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  49. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  50. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +64 -18
  51. package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  52. package/lib/cjs/appui-react/content/ContentControl.d.ts +2 -2
  53. package/lib/cjs/appui-react/content/ContentControl.js +1 -1
  54. package/lib/cjs/appui-react/content/ContentControl.js.map +1 -1
  55. package/lib/cjs/appui-react/content/ContentGroup.d.ts +3 -3
  56. package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
  57. package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
  58. package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -2
  59. package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/content/ContentLayout.js +1 -1
  61. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  62. package/lib/cjs/appui-react/content/IModelViewport.d.ts +5 -6
  63. package/lib/cjs/appui-react/content/IModelViewport.d.ts.map +1 -1
  64. package/lib/cjs/appui-react/content/IModelViewport.js +25 -13
  65. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  66. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  67. package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  69. package/lib/cjs/appui-react/cursor/CursorInformation.d.ts +2 -2
  70. package/lib/cjs/appui-react/cursor/CursorInformation.js +1 -1
  71. package/lib/cjs/appui-react/cursor/CursorInformation.js.map +1 -1
  72. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  73. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  74. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  75. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  76. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  77. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  78. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  79. package/lib/cjs/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  80. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  81. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  82. package/lib/cjs/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  83. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts +2 -5
  84. package/lib/cjs/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  85. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -46
  86. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  87. package/lib/cjs/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  88. package/lib/cjs/appui-react/dialog/ContentDialogManager.js +2 -0
  89. package/lib/cjs/appui-react/dialog/ContentDialogManager.js.map +1 -1
  90. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  91. package/lib/cjs/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  92. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -1
  93. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  94. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  95. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js +1 -0
  96. package/lib/cjs/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  97. package/lib/cjs/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  98. package/lib/cjs/appui-react/dialog/ModalDialogManager.js +2 -0
  99. package/lib/cjs/appui-react/dialog/ModalDialogManager.js.map +1 -1
  100. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts +2 -0
  101. package/lib/cjs/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  102. package/lib/cjs/appui-react/dialog/ModelessDialog.js +1 -0
  103. package/lib/cjs/appui-react/dialog/ModelessDialog.js.map +1 -1
  104. package/lib/cjs/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  105. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js +2 -0
  106. package/lib/cjs/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  107. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  108. package/lib/cjs/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  109. package/lib/cjs/appui-react/dialog/StandardMessageBox.js +135 -92
  110. package/lib/cjs/appui-react/dialog/StandardMessageBox.js.map +1 -1
  111. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  112. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  113. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  114. package/lib/cjs/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  115. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts +4 -3
  116. package/lib/cjs/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  117. package/lib/cjs/appui-react/feedback/ElementTooltip.js +1 -1
  118. package/lib/cjs/appui-react/feedback/ElementTooltip.js.map +1 -1
  119. package/lib/cjs/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  120. package/lib/cjs/appui-react/feedback/ValidationTextbox.js.map +1 -1
  121. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  122. package/lib/cjs/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  123. package/lib/cjs/appui-react/framework/FrameworkBackstage.js.map +1 -1
  124. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +6 -5
  125. package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  126. package/lib/cjs/appui-react/framework/FrameworkContent.js +3 -3
  127. package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
  128. package/lib/cjs/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  129. package/lib/cjs/appui-react/framework/FrameworkDialogs.js +2 -2
  130. package/lib/cjs/appui-react/framework/FrameworkDialogs.js.map +1 -1
  131. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  132. package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  133. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js +8 -8
  134. package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  135. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  136. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  137. package/lib/cjs/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  138. package/lib/cjs/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  139. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js +1 -1
  140. package/lib/cjs/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  141. package/lib/cjs/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  142. package/lib/cjs/appui-react/framework/FrameworkVisibility.js.map +1 -1
  143. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts +9 -0
  144. package/lib/cjs/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  145. package/lib/cjs/appui-react/frontstage/Frontstage.js +10 -0
  146. package/lib/cjs/appui-react/frontstage/Frontstage.js.map +1 -0
  147. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  148. package/lib/cjs/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  149. package/lib/cjs/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  150. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  151. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  152. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +19 -7
  153. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  154. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  155. package/lib/cjs/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  156. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js +1 -0
  157. package/lib/cjs/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  158. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  159. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  160. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js +77 -0
  161. package/lib/cjs/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  162. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  163. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  164. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  165. package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  166. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  167. package/lib/cjs/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  168. package/lib/cjs/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  169. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  170. package/lib/cjs/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  171. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js +6 -5
  172. package/lib/cjs/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  173. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  174. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  175. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js +32 -0
  176. package/lib/cjs/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  177. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  178. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  179. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  180. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  181. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  182. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js +1 -0
  183. package/lib/cjs/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  184. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  185. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  186. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  187. package/lib/cjs/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  188. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  189. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  190. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  191. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  192. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  193. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  194. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  195. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  196. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  197. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  198. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js +3 -0
  199. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  200. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  201. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  202. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +32 -0
  203. package/lib/cjs/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  204. package/lib/cjs/appui-react/layout/StandardLayout.d.ts.map +1 -1
  205. package/lib/cjs/appui-react/layout/StandardLayout.js.map +1 -1
  206. package/lib/cjs/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  207. package/lib/cjs/appui-react/layout/backstage/Backstage.js.map +1 -1
  208. package/lib/cjs/appui-react/layout/backstage/Item.d.ts.map +1 -1
  209. package/lib/cjs/appui-react/layout/backstage/Item.js.map +1 -1
  210. package/lib/cjs/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  211. package/lib/cjs/appui-react/layout/backstage/Separator.js +1 -0
  212. package/lib/cjs/appui-react/layout/backstage/Separator.js.map +1 -1
  213. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  214. package/lib/cjs/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  215. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  216. package/lib/cjs/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  217. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  218. package/lib/cjs/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  219. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  220. package/lib/cjs/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  221. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  222. package/lib/cjs/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  223. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  224. package/lib/cjs/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  225. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  226. package/lib/cjs/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  227. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  228. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  229. package/lib/cjs/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  230. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  231. package/lib/cjs/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  232. package/lib/cjs/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  233. package/lib/cjs/appui-react/layout/outline/SectionOutline.js.map +1 -1
  234. package/lib/cjs/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  235. package/lib/cjs/appui-react/layout/popup/Tooltip.js.map +1 -1
  236. package/lib/cjs/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  237. package/lib/cjs/appui-react/layout/target/TargetContainer.js.map +1 -1
  238. package/lib/cjs/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  239. package/lib/cjs/appui-react/layout/tool-settings/Docked.js +1 -0
  240. package/lib/cjs/appui-react/layout/tool-settings/Docked.js.map +1 -1
  241. package/lib/cjs/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  242. package/lib/cjs/appui-react/layout/tool-settings/Handle.js.map +1 -1
  243. package/lib/cjs/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  244. package/lib/cjs/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  245. package/lib/cjs/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  246. package/lib/cjs/appui-react/layout/tool-settings/Panel.js +3 -1
  247. package/lib/cjs/appui-react/layout/tool-settings/Panel.js.map +1 -1
  248. package/lib/cjs/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  249. package/lib/cjs/appui-react/layout/tool-settings/Setting.js.map +1 -1
  250. package/lib/cjs/appui-react/layout/widget/Menu.d.ts.map +1 -1
  251. package/lib/cjs/appui-react/layout/widget/Menu.js +3 -1
  252. package/lib/cjs/appui-react/layout/widget/Menu.js.map +1 -1
  253. package/lib/cjs/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  254. package/lib/cjs/appui-react/layout/widget/MenuTab.js.map +1 -1
  255. package/lib/cjs/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  256. package/lib/cjs/appui-react/layout/widget/NavigationArea.js.map +1 -1
  257. package/lib/cjs/appui-react/layout/widget/Tab.d.ts.map +1 -1
  258. package/lib/cjs/appui-react/layout/widget/Tab.js +1 -0
  259. package/lib/cjs/appui-react/layout/widget/Tab.js.map +1 -1
  260. package/lib/cjs/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  261. package/lib/cjs/appui-react/layout/widget/TabBar.js +1 -0
  262. package/lib/cjs/appui-react/layout/widget/TabBar.js.map +1 -1
  263. package/lib/cjs/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  264. package/lib/cjs/appui-react/layout/widget/ToolsArea.js.map +1 -1
  265. package/lib/cjs/appui-react/layout/widget/Widget.d.ts.map +1 -1
  266. package/lib/cjs/appui-react/layout/widget/Widget.js.map +1 -1
  267. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  268. package/lib/cjs/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  269. package/lib/cjs/appui-react/layout/widget/tools/button/App.js.map +1 -1
  270. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  271. package/lib/cjs/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  272. package/lib/cjs/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  273. package/lib/cjs/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  274. package/lib/cjs/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  275. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  276. package/lib/cjs/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  277. package/lib/cjs/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  278. package/lib/cjs/appui-react/layout/widget-panels/Expander.js +1 -0
  279. package/lib/cjs/appui-react/layout/widget-panels/Expander.js.map +1 -1
  280. package/lib/cjs/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  281. package/lib/cjs/appui-react/layout/widget-panels/Grip.js +3 -0
  282. package/lib/cjs/appui-react/layout/widget-panels/Grip.js.map +1 -1
  283. package/lib/cjs/appui-react/messages/InputField.d.ts.map +1 -1
  284. package/lib/cjs/appui-react/messages/InputField.js +6 -2
  285. package/lib/cjs/appui-react/messages/InputField.js.map +1 -1
  286. package/lib/cjs/appui-react/messages/MessageLabel.d.ts.map +1 -1
  287. package/lib/cjs/appui-react/messages/MessageLabel.js +1 -0
  288. package/lib/cjs/appui-react/messages/MessageLabel.js.map +1 -1
  289. package/lib/cjs/appui-react/messages/MessageManager.d.ts +12 -12
  290. package/lib/cjs/appui-react/messages/MessageManager.d.ts.map +1 -1
  291. package/lib/cjs/appui-react/messages/MessageManager.js +22 -11
  292. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  293. package/lib/cjs/appui-react/messages/MessageRenderer.js.map +1 -1
  294. package/lib/cjs/appui-react/messages/Pointer.d.ts +2 -2
  295. package/lib/cjs/appui-react/messages/Pointer.d.ts.map +1 -1
  296. package/lib/cjs/appui-react/messages/Pointer.js +11 -3
  297. package/lib/cjs/appui-react/messages/Pointer.js.map +1 -1
  298. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  299. package/lib/cjs/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  300. package/lib/cjs/appui-react/messages/getToastCategory.d.ts +1 -1
  301. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  302. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js +1 -1
  303. package/lib/cjs/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  304. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  305. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  306. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  307. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  308. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  309. package/lib/cjs/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  310. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  311. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  312. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  313. package/lib/cjs/appui-react/pickers/ListPicker.d.ts.map +1 -1
  314. package/lib/cjs/appui-react/pickers/ListPicker.js.map +1 -1
  315. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts +6 -3
  316. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  317. package/lib/cjs/appui-react/pickers/ViewSelector.js +11 -3
  318. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  319. package/lib/cjs/appui-react/popup/CardPopup.d.ts.map +1 -1
  320. package/lib/cjs/appui-react/popup/CardPopup.js +3 -1
  321. package/lib/cjs/appui-react/popup/CardPopup.js.map +1 -1
  322. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  323. package/lib/cjs/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  324. package/lib/cjs/appui-react/popup/HTMLElementPopup.js +1 -1
  325. package/lib/cjs/appui-react/popup/HTMLElementPopup.js.map +1 -1
  326. package/lib/cjs/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  327. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  328. package/lib/cjs/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  329. package/lib/cjs/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  330. package/lib/cjs/appui-react/popup/PopupManager.d.ts +2 -2
  331. package/lib/cjs/appui-react/popup/PopupManager.js +5 -5
  332. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  333. package/lib/cjs/appui-react/popup/PositionPopup.d.ts.map +1 -1
  334. package/lib/cjs/appui-react/popup/PositionPopup.js +1 -0
  335. package/lib/cjs/appui-react/popup/PositionPopup.js.map +1 -1
  336. package/lib/cjs/appui-react/popup/ToolbarPopup.js.map +1 -1
  337. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  338. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  339. package/lib/cjs/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  340. package/lib/cjs/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  341. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  342. package/lib/cjs/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  343. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  344. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  345. package/lib/cjs/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  346. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  347. package/lib/cjs/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  348. package/lib/cjs/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +14 -10
  349. package/lib/cjs/appui-react/redux/ConfigurableUiState.js.map +1 -0
  350. package/lib/cjs/appui-react/redux/FrameworkState.d.ts +7 -10
  351. package/lib/cjs/appui-react/redux/FrameworkState.d.ts.map +1 -1
  352. package/lib/cjs/appui-react/redux/FrameworkState.js +5 -4
  353. package/lib/cjs/appui-react/redux/FrameworkState.js.map +1 -1
  354. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts +3 -0
  355. package/lib/cjs/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  356. package/lib/cjs/appui-react/redux/ReducerRegistry.js +2 -0
  357. package/lib/cjs/appui-react/redux/ReducerRegistry.js.map +1 -1
  358. package/lib/cjs/appui-react/redux/SessionState.d.ts +29 -12
  359. package/lib/cjs/appui-react/redux/SessionState.d.ts.map +1 -1
  360. package/lib/cjs/appui-react/redux/SessionState.js +11 -10
  361. package/lib/cjs/appui-react/redux/SessionState.js.map +1 -1
  362. package/lib/cjs/appui-react/redux/StateManager.d.ts +5 -4
  363. package/lib/cjs/appui-react/redux/StateManager.d.ts.map +1 -1
  364. package/lib/cjs/appui-react/redux/StateManager.js +3 -3
  365. package/lib/cjs/appui-react/redux/StateManager.js.map +1 -1
  366. package/lib/cjs/appui-react/redux/connectIModel.d.ts +5 -1
  367. package/lib/cjs/appui-react/redux/connectIModel.d.ts.map +1 -1
  368. package/lib/cjs/appui-react/redux/connectIModel.js +5 -3
  369. package/lib/cjs/appui-react/redux/connectIModel.js.map +1 -1
  370. package/lib/cjs/appui-react/redux/redux-ts.d.ts +35 -32
  371. package/lib/cjs/appui-react/redux/redux-ts.d.ts.map +1 -1
  372. package/lib/cjs/appui-react/redux/redux-ts.js +3 -2
  373. package/lib/cjs/appui-react/redux/redux-ts.js.map +1 -1
  374. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  375. package/lib/cjs/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  376. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +21 -18
  377. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  378. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  379. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +9 -8
  380. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  381. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  382. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  383. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  384. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js +18 -17
  385. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  386. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  387. package/lib/cjs/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  388. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js +2 -0
  389. package/lib/cjs/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  390. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts +1 -0
  391. package/lib/cjs/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  392. package/lib/cjs/appui-react/shared/AnyItemDef.js.map +1 -1
  393. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  394. package/lib/cjs/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  395. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts +1 -0
  396. package/lib/cjs/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  397. package/lib/cjs/appui-react/shared/CommandItemDef.js +2 -0
  398. package/lib/cjs/appui-react/shared/CommandItemDef.js.map +1 -1
  399. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts +1 -0
  400. package/lib/cjs/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  401. package/lib/cjs/appui-react/shared/CustomItemDef.js +2 -0
  402. package/lib/cjs/appui-react/shared/CustomItemDef.js.map +1 -1
  403. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts +1 -3
  404. package/lib/cjs/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  405. package/lib/cjs/appui-react/shared/CustomItemProps.js +0 -7
  406. package/lib/cjs/appui-react/shared/CustomItemProps.js.map +1 -1
  407. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts +1 -0
  408. package/lib/cjs/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  409. package/lib/cjs/appui-react/shared/GroupItemProps.js.map +1 -1
  410. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts +3 -1
  411. package/lib/cjs/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  412. package/lib/cjs/appui-react/shared/ItemDefBase.js +1 -0
  413. package/lib/cjs/appui-react/shared/ItemDefBase.js.map +1 -1
  414. package/lib/cjs/appui-react/shared/ItemMap.d.ts +2 -0
  415. package/lib/cjs/appui-react/shared/ItemMap.d.ts.map +1 -1
  416. package/lib/cjs/appui-react/shared/ItemMap.js +3 -0
  417. package/lib/cjs/appui-react/shared/ItemMap.js.map +1 -1
  418. package/lib/cjs/appui-react/shared/ItemProps.d.ts +4 -0
  419. package/lib/cjs/appui-react/shared/ItemProps.d.ts.map +1 -1
  420. package/lib/cjs/appui-react/shared/ItemProps.js.map +1 -1
  421. package/lib/cjs/appui-react/shared/MenuItem.d.ts +45 -12
  422. package/lib/cjs/appui-react/shared/MenuItem.d.ts.map +1 -1
  423. package/lib/cjs/appui-react/shared/MenuItem.js +8 -1
  424. package/lib/cjs/appui-react/shared/MenuItem.js.map +1 -1
  425. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts +4 -1
  426. package/lib/cjs/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  427. package/lib/cjs/appui-react/shared/ToolItemDef.js +5 -1
  428. package/lib/cjs/appui-react/shared/ToolItemDef.js.map +1 -1
  429. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  430. package/lib/cjs/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  431. package/lib/cjs/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  432. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +2 -2
  433. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  434. package/lib/cjs/appui-react/statusbar/Field.d.ts +2 -2
  435. package/lib/cjs/appui-react/statusbar/Field.d.ts.map +1 -1
  436. package/lib/cjs/appui-react/statusbar/Field.js +1 -1
  437. package/lib/cjs/appui-react/statusbar/Field.js.map +1 -1
  438. package/lib/cjs/appui-react/statusbar/Indicator.d.ts +2 -2
  439. package/lib/cjs/appui-react/statusbar/Indicator.d.ts.map +1 -1
  440. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -1
  441. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  442. package/lib/cjs/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  443. package/lib/cjs/appui-react/statusbar/LabelIndicator.js +1 -1
  444. package/lib/cjs/appui-react/statusbar/LabelIndicator.js.map +1 -1
  445. package/lib/cjs/appui-react/statusbar/Overflow.d.ts.map +1 -1
  446. package/lib/cjs/appui-react/statusbar/Overflow.js.map +1 -1
  447. package/lib/cjs/appui-react/statusbar/Separator.d.ts.map +1 -1
  448. package/lib/cjs/appui-react/statusbar/Separator.js +1 -0
  449. package/lib/cjs/appui-react/statusbar/Separator.js.map +1 -1
  450. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts +4 -4
  451. package/lib/cjs/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  452. package/lib/cjs/appui-react/statusbar/StatusBar.js +8 -4
  453. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  454. package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  455. package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  456. package/lib/cjs/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  457. package/lib/cjs/appui-react/statusbar/dialog/Button.js.map +1 -1
  458. package/lib/cjs/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  459. package/lib/cjs/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  460. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  461. package/lib/cjs/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  462. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts +1 -1
  463. package/lib/cjs/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  464. package/lib/cjs/appui-react/statusbar/popup/Popup.js +5 -2
  465. package/lib/cjs/appui-react/statusbar/popup/Popup.js.map +1 -1
  466. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  467. package/lib/cjs/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  468. package/lib/cjs/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  469. package/lib/cjs/appui-react/statusfields/ActivityCenter.js +1 -0
  470. package/lib/cjs/appui-react/statusfields/ActivityCenter.js.map +1 -1
  471. package/lib/cjs/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  472. package/lib/cjs/appui-react/statusfields/SectionsField.js.map +1 -1
  473. package/lib/cjs/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  474. package/lib/cjs/appui-react/statusfields/SelectionCount.js.map +1 -1
  475. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  476. package/lib/cjs/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  477. package/lib/cjs/appui-react/statusfields/SelectionInfo.js +9 -13
  478. package/lib/cjs/appui-react/statusfields/SelectionInfo.js.map +1 -1
  479. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts +14 -19
  480. package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  481. package/lib/cjs/appui-react/statusfields/SelectionScope.js +27 -29
  482. package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
  483. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +9 -12
  484. package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  485. package/lib/cjs/appui-react/statusfields/SnapMode.js +29 -31
  486. package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
  487. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  488. package/lib/cjs/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  489. package/lib/cjs/appui-react/statusfields/ViewAttributes.js +1 -0
  490. package/lib/cjs/appui-react/statusfields/ViewAttributes.js.map +1 -1
  491. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  492. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  493. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  494. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  495. package/lib/cjs/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  496. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  497. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  498. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  499. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  500. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  501. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  502. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  503. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  504. package/lib/cjs/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  505. package/lib/cjs/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  506. package/lib/cjs/appui-react/syncui/UiSyncEvent.js +1 -1
  507. package/lib/cjs/appui-react/syncui/UiSyncEvent.js.map +1 -1
  508. package/lib/cjs/appui-react/theme/ThemeId.d.ts +38 -0
  509. package/lib/cjs/appui-react/theme/ThemeId.d.ts.map +1 -0
  510. package/lib/cjs/appui-react/theme/ThemeId.js +41 -0
  511. package/lib/cjs/appui-react/theme/ThemeId.js.map +1 -0
  512. package/lib/cjs/appui-react/theme/ThemeManager.d.ts +8 -58
  513. package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
  514. package/lib/cjs/appui-react/theme/ThemeManager.js +33 -108
  515. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  516. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts +1 -0
  517. package/lib/cjs/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  518. package/lib/cjs/appui-react/toolbar/GroupItem.js +2 -3
  519. package/lib/cjs/appui-react/toolbar/GroupItem.js.map +1 -1
  520. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts +1 -1
  521. package/lib/cjs/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  522. package/lib/cjs/appui-react/toolbar/Toolbar.js.map +1 -1
  523. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  524. package/lib/cjs/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  525. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +39 -8
  526. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  527. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  528. package/lib/cjs/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  529. package/lib/cjs/appui-react/toolbar/ToolbarItem.js.map +1 -1
  530. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  531. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  532. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  533. package/lib/cjs/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  534. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  535. package/lib/cjs/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  536. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  537. package/lib/cjs/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  538. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +2 -0
  539. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  540. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts +76 -0
  541. package/lib/cjs/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  542. package/lib/cjs/appui-react/tools/ToolbarItems.js +186 -0
  543. package/lib/cjs/appui-react/tools/ToolbarItems.js.map +1 -0
  544. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  545. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  546. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  547. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  548. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  549. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  550. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  551. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  552. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  553. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  554. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  555. package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  556. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  557. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  558. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  559. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  560. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  561. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  562. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  563. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  564. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  565. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  566. package/lib/cjs/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  567. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  568. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  569. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  570. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts +3 -2
  571. package/lib/cjs/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  572. package/lib/cjs/appui-react/uistate/AppUiSettings.js +10 -9
  573. package/lib/cjs/appui-react/uistate/AppUiSettings.js.map +1 -1
  574. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts +17 -0
  575. package/lib/cjs/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  576. package/lib/cjs/appui-react/uistate/useGlobalStore.js +21 -0
  577. package/lib/cjs/appui-react/uistate/useGlobalStore.js.map +1 -0
  578. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  579. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  580. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js +32 -0
  581. package/lib/cjs/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  582. package/lib/cjs/appui-react/utils/PropsHelper.d.ts.map +1 -1
  583. package/lib/cjs/appui-react/utils/PropsHelper.js +1 -0
  584. package/lib/cjs/appui-react/utils/PropsHelper.js.map +1 -1
  585. package/lib/cjs/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  586. package/lib/cjs/appui-react/widget-panels/DockedBar.js.map +1 -1
  587. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  588. package/lib/cjs/appui-react/widget-panels/Frontstage.js +21 -17
  589. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  590. package/lib/cjs/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  591. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -0
  592. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  593. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  594. package/lib/cjs/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  595. package/lib/cjs/appui-react/widgets/BackstageAppButton.js +17 -19
  596. package/lib/cjs/appui-react/widgets/BackstageAppButton.js.map +1 -1
  597. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  598. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +26 -11
  599. package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  600. package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  601. package/lib/cjs/appui-react/widgets/BasicToolWidget.js +30 -6
  602. package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
  603. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  604. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  605. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  606. package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  607. package/lib/cjs/appui-react/widgets/Widget.d.ts +3 -4
  608. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  609. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  610. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +2 -2
  611. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  612. package/lib/cjs/appui-react/widgets/WidgetDef.js +4 -3
  613. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  614. package/lib/cjs/appui-react.d.ts +10 -3
  615. package/lib/cjs/appui-react.d.ts.map +1 -1
  616. package/lib/cjs/appui-react.js +10 -3
  617. package/lib/cjs/appui-react.js.map +1 -1
  618. package/lib/esm/appui-react/UiFramework.d.ts +202 -140
  619. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  620. package/lib/esm/appui-react/UiFramework.js +428 -297
  621. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  622. package/lib/esm/appui-react/UiFramework.json +8 -4
  623. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts +1 -0
  624. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.d.ts.map +1 -1
  625. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js +2 -0
  626. package/lib/esm/appui-react/accudraw/AccuDrawCommandItems.js.map +1 -1
  627. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +4 -2
  628. package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
  629. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +6 -7
  630. package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
  631. package/lib/esm/appui-react/accudraw/AccuDrawDialog.scss +0 -4
  632. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
  633. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
  634. package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
  635. package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
  636. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts +1 -1
  637. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.d.ts.map +1 -1
  638. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js +28 -65
  639. package/lib/esm/appui-react/accudraw/AccuDrawKeyboardShortcuts.js.map +1 -1
  640. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.d.ts.map +1 -1
  641. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js +2 -0
  642. package/lib/esm/appui-react/accudraw/AccuDrawPopupManager.js.map +1 -1
  643. package/lib/esm/appui-react/accudraw/Calculator.d.ts.map +1 -1
  644. package/lib/esm/appui-react/accudraw/Calculator.js.map +1 -1
  645. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.d.ts +12 -12
  646. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js +7 -7
  647. package/lib/esm/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  648. package/lib/esm/appui-react/accudraw/SquareButton.d.ts +0 -1
  649. package/lib/esm/appui-react/accudraw/SquareButton.d.ts.map +1 -1
  650. package/lib/esm/appui-react/accudraw/SquareButton.js.map +1 -1
  651. package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
  652. package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
  653. package/lib/esm/appui-react/backstage/BackstageManager.d.ts +3 -2
  654. package/lib/esm/appui-react/backstage/BackstageManager.d.ts.map +1 -1
  655. package/lib/esm/appui-react/backstage/BackstageManager.js +5 -7
  656. package/lib/esm/appui-react/backstage/BackstageManager.js.map +1 -1
  657. package/lib/esm/appui-react/backstage/InternalBackstageManager.d.ts.map +1 -1
  658. package/lib/esm/appui-react/backstage/InternalBackstageManager.js +1 -0
  659. package/lib/esm/appui-react/backstage/InternalBackstageManager.js.map +1 -1
  660. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  661. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +8 -18
  662. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  663. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +4 -0
  664. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +16 -0
  665. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  666. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +63 -17
  667. package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  668. package/lib/esm/appui-react/content/ContentControl.d.ts +2 -2
  669. package/lib/esm/appui-react/content/ContentControl.js +1 -1
  670. package/lib/esm/appui-react/content/ContentControl.js.map +1 -1
  671. package/lib/esm/appui-react/content/ContentGroup.d.ts +3 -3
  672. package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
  673. package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
  674. package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -2
  675. package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
  676. package/lib/esm/appui-react/content/ContentLayout.js +1 -1
  677. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  678. package/lib/esm/appui-react/content/IModelViewport.d.ts +5 -6
  679. package/lib/esm/appui-react/content/IModelViewport.d.ts.map +1 -1
  680. package/lib/esm/appui-react/content/IModelViewport.js +24 -13
  681. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  682. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -1
  683. package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
  684. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  685. package/lib/esm/appui-react/cursor/CursorInformation.d.ts +2 -2
  686. package/lib/esm/appui-react/cursor/CursorInformation.js +1 -1
  687. package/lib/esm/appui-react/cursor/CursorInformation.js.map +1 -1
  688. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts +2 -1
  689. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.d.ts.map +1 -1
  690. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +4 -1
  691. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  692. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts +3 -2
  693. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.d.ts.map +1 -1
  694. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js +1 -0
  695. package/lib/esm/appui-react/cursor/cursorpopup/CursorPopup.js.map +1 -1
  696. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.d.ts.map +1 -1
  697. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js +1 -0
  698. package/lib/esm/appui-react/cursor/cursorprompt/CursorPrompt.js.map +1 -1
  699. package/lib/esm/appui-react/dialog/ContentDialog.d.ts +2 -5
  700. package/lib/esm/appui-react/dialog/ContentDialog.d.ts.map +1 -1
  701. package/lib/esm/appui-react/dialog/ContentDialog.js +2 -44
  702. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  703. package/lib/esm/appui-react/dialog/ContentDialogManager.d.ts.map +1 -1
  704. package/lib/esm/appui-react/dialog/ContentDialogManager.js +2 -0
  705. package/lib/esm/appui-react/dialog/ContentDialogManager.js.map +1 -1
  706. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts +2 -2
  707. package/lib/esm/appui-react/dialog/DialogManagerBase.d.ts.map +1 -1
  708. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -1
  709. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  710. package/lib/esm/appui-react/dialog/InternalContentDialogManager.d.ts.map +1 -1
  711. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js +1 -0
  712. package/lib/esm/appui-react/dialog/InternalContentDialogManager.js.map +1 -1
  713. package/lib/esm/appui-react/dialog/ModalDialogManager.d.ts.map +1 -1
  714. package/lib/esm/appui-react/dialog/ModalDialogManager.js +2 -0
  715. package/lib/esm/appui-react/dialog/ModalDialogManager.js.map +1 -1
  716. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts +2 -0
  717. package/lib/esm/appui-react/dialog/ModelessDialog.d.ts.map +1 -1
  718. package/lib/esm/appui-react/dialog/ModelessDialog.js +1 -0
  719. package/lib/esm/appui-react/dialog/ModelessDialog.js.map +1 -1
  720. package/lib/esm/appui-react/dialog/ModelessDialogManager.d.ts.map +1 -1
  721. package/lib/esm/appui-react/dialog/ModelessDialogManager.js +2 -0
  722. package/lib/esm/appui-react/dialog/ModelessDialogManager.js.map +1 -1
  723. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts +9 -22
  724. package/lib/esm/appui-react/dialog/StandardMessageBox.d.ts.map +1 -1
  725. package/lib/esm/appui-react/dialog/StandardMessageBox.js +135 -92
  726. package/lib/esm/appui-react/dialog/StandardMessageBox.js.map +1 -1
  727. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts +5 -1
  728. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.d.ts.map +1 -1
  729. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js +69 -6
  730. package/lib/esm/appui-react/dialog/UiDataProvidedDialog.js.map +1 -1
  731. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts +4 -3
  732. package/lib/esm/appui-react/feedback/ElementTooltip.d.ts.map +1 -1
  733. package/lib/esm/appui-react/feedback/ElementTooltip.js +1 -1
  734. package/lib/esm/appui-react/feedback/ElementTooltip.js.map +1 -1
  735. package/lib/esm/appui-react/feedback/ValidationTextbox.d.ts.map +1 -1
  736. package/lib/esm/appui-react/feedback/ValidationTextbox.js.map +1 -1
  737. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts +2 -2
  738. package/lib/esm/appui-react/framework/FrameworkBackstage.d.ts.map +1 -1
  739. package/lib/esm/appui-react/framework/FrameworkBackstage.js.map +1 -1
  740. package/lib/esm/appui-react/framework/FrameworkContent.d.ts +6 -5
  741. package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
  742. package/lib/esm/appui-react/framework/FrameworkContent.js +3 -3
  743. package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
  744. package/lib/esm/appui-react/framework/FrameworkDialogs.d.ts +2 -2
  745. package/lib/esm/appui-react/framework/FrameworkDialogs.js +2 -2
  746. package/lib/esm/appui-react/framework/FrameworkDialogs.js.map +1 -1
  747. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +24 -19
  748. package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
  749. package/lib/esm/appui-react/framework/FrameworkFrontstages.js +8 -8
  750. package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
  751. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts +25 -24
  752. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.d.ts.map +1 -1
  753. package/lib/esm/appui-react/framework/FrameworkKeyboardShortcuts.js.map +1 -1
  754. package/lib/esm/appui-react/framework/FrameworkToolSettings.d.ts +2 -2
  755. package/lib/esm/appui-react/framework/FrameworkToolSettings.js +1 -1
  756. package/lib/esm/appui-react/framework/FrameworkToolSettings.js.map +1 -1
  757. package/lib/esm/appui-react/framework/FrameworkVisibility.d.ts +1 -1
  758. package/lib/esm/appui-react/framework/FrameworkVisibility.js.map +1 -1
  759. package/lib/esm/appui-react/frontstage/Frontstage.d.ts +9 -0
  760. package/lib/esm/appui-react/frontstage/Frontstage.d.ts.map +1 -0
  761. package/lib/esm/appui-react/frontstage/Frontstage.js +9 -0
  762. package/lib/esm/appui-react/frontstage/Frontstage.js.map +1 -0
  763. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts +1 -0
  764. package/lib/esm/appui-react/frontstage/FrontstageConfig.d.ts.map +1 -1
  765. package/lib/esm/appui-react/frontstage/FrontstageConfig.js.map +1 -1
  766. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +7 -6
  767. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  768. package/lib/esm/appui-react/frontstage/FrontstageDef.js +19 -7
  769. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  770. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts +3 -2
  771. package/lib/esm/appui-react/frontstage/FrontstageProvider.d.ts.map +1 -1
  772. package/lib/esm/appui-react/frontstage/FrontstageProvider.js +1 -0
  773. package/lib/esm/appui-react/frontstage/FrontstageProvider.js.map +1 -1
  774. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts +13 -0
  775. package/lib/esm/appui-react/frontstage/FrontstageUtilities.d.ts.map +1 -0
  776. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js +74 -0
  777. package/lib/esm/appui-react/frontstage/FrontstageUtilities.js.map +1 -0
  778. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +4 -4
  779. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
  780. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +41 -17
  781. package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
  782. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts +2 -2
  783. package/lib/esm/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  784. package/lib/esm/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  785. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts +2 -3
  786. package/lib/esm/appui-react/frontstage/NestedFrontstage.d.ts.map +1 -1
  787. package/lib/esm/appui-react/frontstage/NestedFrontstage.js +6 -5
  788. package/lib/esm/appui-react/frontstage/NestedFrontstage.js.map +1 -1
  789. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts +19 -0
  790. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.d.ts.map +1 -0
  791. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js +28 -0
  792. package/lib/esm/appui-react/frontstage/NestedFrontstageAppButton.js.map +1 -0
  793. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts +8 -10
  794. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.d.ts.map +1 -1
  795. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +6 -58
  796. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  797. package/lib/esm/appui-react/hooks/useActiveIModelConnection.d.ts.map +1 -1
  798. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js +1 -0
  799. package/lib/esm/appui-react/hooks/useActiveIModelConnection.js.map +1 -1
  800. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts +1 -1
  801. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.d.ts.map +1 -1
  802. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js +0 -1
  803. package/lib/esm/appui-react/keyboardshortcut/InternalKeyboardShortcut.js.map +1 -1
  804. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts +4 -1
  805. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.d.ts.map +1 -1
  806. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js +9 -2
  807. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcut.js.map +1 -1
  808. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts +4 -2
  809. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.d.ts.map +1 -1
  810. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js +3 -3
  811. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutMenu.js.map +1 -1
  812. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts +60 -0
  813. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.d.ts.map +1 -0
  814. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js +2 -0
  815. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutProps.js.map +1 -0
  816. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts +13 -0
  817. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.d.ts.map +1 -0
  818. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js +29 -0
  819. package/lib/esm/appui-react/keyboardshortcut/KeyboardShortcutUtilities.js.map +1 -0
  820. package/lib/esm/appui-react/layout/StandardLayout.d.ts.map +1 -1
  821. package/lib/esm/appui-react/layout/StandardLayout.js.map +1 -1
  822. package/lib/esm/appui-react/layout/backstage/Backstage.d.ts.map +1 -1
  823. package/lib/esm/appui-react/layout/backstage/Backstage.js.map +1 -1
  824. package/lib/esm/appui-react/layout/backstage/Item.d.ts.map +1 -1
  825. package/lib/esm/appui-react/layout/backstage/Item.js.map +1 -1
  826. package/lib/esm/appui-react/layout/backstage/Separator.d.ts.map +1 -1
  827. package/lib/esm/appui-react/layout/backstage/Separator.js +1 -0
  828. package/lib/esm/appui-react/layout/backstage/Separator.js.map +1 -1
  829. package/lib/esm/appui-react/layout/footer/dialog/Dialog.d.ts.map +1 -1
  830. package/lib/esm/appui-react/layout/footer/dialog/Dialog.js.map +1 -1
  831. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.d.ts.map +1 -1
  832. package/lib/esm/appui-react/layout/footer/dialog/TitleBar.js.map +1 -1
  833. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.d.ts.map +1 -1
  834. package/lib/esm/appui-react/layout/footer/snap-mode/Panel.js.map +1 -1
  835. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.d.ts.map +1 -1
  836. package/lib/esm/appui-react/layout/footer/snap-mode/Snap.js.map +1 -1
  837. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.d.ts.map +1 -1
  838. package/lib/esm/appui-react/layout/footer/tool-assistance/Dialog.js.map +1 -1
  839. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.d.ts.map +1 -1
  840. package/lib/esm/appui-react/layout/footer/tool-assistance/Instruction.js.map +1 -1
  841. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.d.ts.map +1 -1
  842. package/lib/esm/appui-react/layout/footer/tool-assistance/Item.js.map +1 -1
  843. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.d.ts.map +1 -1
  844. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js +1 -0
  845. package/lib/esm/appui-react/layout/footer/tool-assistance/NewDot.js.map +1 -1
  846. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.d.ts.map +1 -1
  847. package/lib/esm/appui-react/layout/footer/tool-assistance/Separator.js.map +1 -1
  848. package/lib/esm/appui-react/layout/outline/SectionOutline.d.ts.map +1 -1
  849. package/lib/esm/appui-react/layout/outline/SectionOutline.js.map +1 -1
  850. package/lib/esm/appui-react/layout/popup/Tooltip.d.ts.map +1 -1
  851. package/lib/esm/appui-react/layout/popup/Tooltip.js.map +1 -1
  852. package/lib/esm/appui-react/layout/target/TargetContainer.d.ts.map +1 -1
  853. package/lib/esm/appui-react/layout/target/TargetContainer.js.map +1 -1
  854. package/lib/esm/appui-react/layout/tool-settings/Docked.d.ts.map +1 -1
  855. package/lib/esm/appui-react/layout/tool-settings/Docked.js +1 -0
  856. package/lib/esm/appui-react/layout/tool-settings/Docked.js.map +1 -1
  857. package/lib/esm/appui-react/layout/tool-settings/Handle.d.ts.map +1 -1
  858. package/lib/esm/appui-react/layout/tool-settings/Handle.js.map +1 -1
  859. package/lib/esm/appui-react/layout/tool-settings/Overflow.d.ts.map +1 -1
  860. package/lib/esm/appui-react/layout/tool-settings/Overflow.js.map +1 -1
  861. package/lib/esm/appui-react/layout/tool-settings/Panel.d.ts.map +1 -1
  862. package/lib/esm/appui-react/layout/tool-settings/Panel.js +3 -1
  863. package/lib/esm/appui-react/layout/tool-settings/Panel.js.map +1 -1
  864. package/lib/esm/appui-react/layout/tool-settings/Setting.d.ts.map +1 -1
  865. package/lib/esm/appui-react/layout/tool-settings/Setting.js.map +1 -1
  866. package/lib/esm/appui-react/layout/widget/Menu.d.ts.map +1 -1
  867. package/lib/esm/appui-react/layout/widget/Menu.js +3 -1
  868. package/lib/esm/appui-react/layout/widget/Menu.js.map +1 -1
  869. package/lib/esm/appui-react/layout/widget/MenuTab.d.ts.map +1 -1
  870. package/lib/esm/appui-react/layout/widget/MenuTab.js.map +1 -1
  871. package/lib/esm/appui-react/layout/widget/NavigationArea.d.ts.map +1 -1
  872. package/lib/esm/appui-react/layout/widget/NavigationArea.js.map +1 -1
  873. package/lib/esm/appui-react/layout/widget/Tab.d.ts.map +1 -1
  874. package/lib/esm/appui-react/layout/widget/Tab.js +1 -0
  875. package/lib/esm/appui-react/layout/widget/Tab.js.map +1 -1
  876. package/lib/esm/appui-react/layout/widget/TabBar.d.ts.map +1 -1
  877. package/lib/esm/appui-react/layout/widget/TabBar.js +1 -0
  878. package/lib/esm/appui-react/layout/widget/TabBar.js.map +1 -1
  879. package/lib/esm/appui-react/layout/widget/ToolsArea.d.ts.map +1 -1
  880. package/lib/esm/appui-react/layout/widget/ToolsArea.js.map +1 -1
  881. package/lib/esm/appui-react/layout/widget/Widget.d.ts.map +1 -1
  882. package/lib/esm/appui-react/layout/widget/Widget.js.map +1 -1
  883. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts +2 -1
  884. package/lib/esm/appui-react/layout/widget/tools/button/App.d.ts.map +1 -1
  885. package/lib/esm/appui-react/layout/widget/tools/button/App.js.map +1 -1
  886. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts +2 -1
  887. package/lib/esm/appui-react/layout/widget/tools/button/Back.d.ts.map +1 -1
  888. package/lib/esm/appui-react/layout/widget/tools/button/Back.js.map +1 -1
  889. package/lib/esm/appui-react/layout/widget/tools/button/Button.d.ts.map +1 -1
  890. package/lib/esm/appui-react/layout/widget/tools/button/Button.js.map +1 -1
  891. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.d.ts.map +1 -1
  892. package/lib/esm/appui-react/layout/widget/tools/button/Expandable.js.map +1 -1
  893. package/lib/esm/appui-react/layout/widget-panels/Expander.d.ts.map +1 -1
  894. package/lib/esm/appui-react/layout/widget-panels/Expander.js +1 -0
  895. package/lib/esm/appui-react/layout/widget-panels/Expander.js.map +1 -1
  896. package/lib/esm/appui-react/layout/widget-panels/Grip.d.ts.map +1 -1
  897. package/lib/esm/appui-react/layout/widget-panels/Grip.js +3 -0
  898. package/lib/esm/appui-react/layout/widget-panels/Grip.js.map +1 -1
  899. package/lib/esm/appui-react/messages/InputField.d.ts.map +1 -1
  900. package/lib/esm/appui-react/messages/InputField.js +6 -2
  901. package/lib/esm/appui-react/messages/InputField.js.map +1 -1
  902. package/lib/esm/appui-react/messages/MessageLabel.d.ts.map +1 -1
  903. package/lib/esm/appui-react/messages/MessageLabel.js +1 -0
  904. package/lib/esm/appui-react/messages/MessageLabel.js.map +1 -1
  905. package/lib/esm/appui-react/messages/MessageManager.d.ts +12 -12
  906. package/lib/esm/appui-react/messages/MessageManager.d.ts.map +1 -1
  907. package/lib/esm/appui-react/messages/MessageManager.js +22 -11
  908. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  909. package/lib/esm/appui-react/messages/MessageRenderer.js.map +1 -1
  910. package/lib/esm/appui-react/messages/Pointer.d.ts +2 -2
  911. package/lib/esm/appui-react/messages/Pointer.d.ts.map +1 -1
  912. package/lib/esm/appui-react/messages/Pointer.js +11 -3
  913. package/lib/esm/appui-react/messages/Pointer.js.map +1 -1
  914. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.d.ts.map +1 -1
  915. package/lib/esm/appui-react/messages/ReactNotifyMessageDetails.js.map +1 -1
  916. package/lib/esm/appui-react/messages/getToastCategory.d.ts +1 -1
  917. package/lib/esm/appui-react/navigationaids/NavigationAidControl.d.ts +2 -2
  918. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js +1 -1
  919. package/lib/esm/appui-react/navigationaids/NavigationAidControl.js.map +1 -1
  920. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.d.ts.map +1 -1
  921. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.js.map +1 -1
  922. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts +2 -2
  923. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.d.ts.map +1 -1
  924. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js +1 -1
  925. package/lib/esm/appui-react/navigationaids/SheetsModalFrontstage.js.map +1 -1
  926. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts +2 -1
  927. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.d.ts.map +1 -1
  928. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.js.map +1 -1
  929. package/lib/esm/appui-react/pickers/ListPicker.d.ts.map +1 -1
  930. package/lib/esm/appui-react/pickers/ListPicker.js.map +1 -1
  931. package/lib/esm/appui-react/pickers/ViewSelector.d.ts +6 -3
  932. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  933. package/lib/esm/appui-react/pickers/ViewSelector.js +10 -3
  934. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  935. package/lib/esm/appui-react/popup/CardPopup.d.ts.map +1 -1
  936. package/lib/esm/appui-react/popup/CardPopup.js +3 -1
  937. package/lib/esm/appui-react/popup/CardPopup.js.map +1 -1
  938. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts +2 -2
  939. package/lib/esm/appui-react/popup/HTMLElementPopup.d.ts.map +1 -1
  940. package/lib/esm/appui-react/popup/HTMLElementPopup.js +1 -1
  941. package/lib/esm/appui-react/popup/HTMLElementPopup.js.map +1 -1
  942. package/lib/esm/appui-react/popup/KeyinPalettePanel.d.ts.map +1 -1
  943. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  944. package/lib/esm/appui-react/popup/KeyinPalettePopup.d.ts +1 -1
  945. package/lib/esm/appui-react/popup/KeyinPalettePopup.js.map +1 -1
  946. package/lib/esm/appui-react/popup/PopupManager.d.ts +2 -2
  947. package/lib/esm/appui-react/popup/PopupManager.js +5 -5
  948. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  949. package/lib/esm/appui-react/popup/PositionPopup.d.ts.map +1 -1
  950. package/lib/esm/appui-react/popup/PositionPopup.js +1 -0
  951. package/lib/esm/appui-react/popup/PositionPopup.js.map +1 -1
  952. package/lib/esm/appui-react/popup/ToolbarPopup.js.map +1 -1
  953. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.d.ts.map +1 -1
  954. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js +15 -9
  955. package/lib/esm/appui-react/preview/horizontal-panel-alignment/PreviewHorizontalPanelAlign.js.map +1 -1
  956. package/lib/esm/appui-react/preview/new-toolbars/GroupItem.d.ts +1 -1
  957. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.d.ts.map +1 -1
  958. package/lib/esm/appui-react/preview/new-toolbars/ToolGroup.js.map +1 -1
  959. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.d.ts.map +1 -1
  960. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js +7 -3
  961. package/lib/esm/appui-react/preview/reparent-popout-widgets/PopoutThemeProvider.js.map +1 -1
  962. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts +79 -0
  963. package/lib/esm/appui-react/redux/ConfigurableUiState.d.ts.map +1 -0
  964. package/lib/esm/appui-react/{configurableui/state.js → redux/ConfigurableUiState.js} +11 -7
  965. package/lib/esm/appui-react/redux/ConfigurableUiState.js.map +1 -0
  966. package/lib/esm/appui-react/redux/FrameworkState.d.ts +7 -10
  967. package/lib/esm/appui-react/redux/FrameworkState.d.ts.map +1 -1
  968. package/lib/esm/appui-react/redux/FrameworkState.js +3 -2
  969. package/lib/esm/appui-react/redux/FrameworkState.js.map +1 -1
  970. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts +3 -0
  971. package/lib/esm/appui-react/redux/ReducerRegistry.d.ts.map +1 -1
  972. package/lib/esm/appui-react/redux/ReducerRegistry.js +2 -0
  973. package/lib/esm/appui-react/redux/ReducerRegistry.js.map +1 -1
  974. package/lib/esm/appui-react/redux/SessionState.d.ts +29 -12
  975. package/lib/esm/appui-react/redux/SessionState.d.ts.map +1 -1
  976. package/lib/esm/appui-react/redux/SessionState.js +11 -10
  977. package/lib/esm/appui-react/redux/SessionState.js.map +1 -1
  978. package/lib/esm/appui-react/redux/StateManager.d.ts +5 -4
  979. package/lib/esm/appui-react/redux/StateManager.d.ts.map +1 -1
  980. package/lib/esm/appui-react/redux/StateManager.js +3 -3
  981. package/lib/esm/appui-react/redux/StateManager.js.map +1 -1
  982. package/lib/esm/appui-react/redux/connectIModel.d.ts +5 -1
  983. package/lib/esm/appui-react/redux/connectIModel.d.ts.map +1 -1
  984. package/lib/esm/appui-react/redux/connectIModel.js +3 -1
  985. package/lib/esm/appui-react/redux/connectIModel.js.map +1 -1
  986. package/lib/esm/appui-react/redux/redux-ts.d.ts +35 -32
  987. package/lib/esm/appui-react/redux/redux-ts.d.ts.map +1 -1
  988. package/lib/esm/appui-react/redux/redux-ts.js +3 -2
  989. package/lib/esm/appui-react/redux/redux-ts.js.map +1 -1
  990. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts +17 -8
  991. package/lib/esm/appui-react/selection/SelectionContextItemDef.d.ts.map +1 -1
  992. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +21 -18
  993. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  994. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.d.ts.map +1 -1
  995. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +11 -10
  996. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  997. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +5 -0
  998. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts +1 -1
  999. package/lib/esm/appui-react/settings/ui/UiSettingsPage.d.ts.map +1 -1
  1000. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js +12 -11
  1001. package/lib/esm/appui-react/settings/ui/UiSettingsPage.js.map +1 -1
  1002. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts +1 -0
  1003. package/lib/esm/appui-react/shared/ActionButtonItemDef.d.ts.map +1 -1
  1004. package/lib/esm/appui-react/shared/ActionButtonItemDef.js +2 -0
  1005. package/lib/esm/appui-react/shared/ActionButtonItemDef.js.map +1 -1
  1006. package/lib/esm/appui-react/shared/AnyItemDef.d.ts +1 -0
  1007. package/lib/esm/appui-react/shared/AnyItemDef.d.ts.map +1 -1
  1008. package/lib/esm/appui-react/shared/AnyItemDef.js.map +1 -1
  1009. package/lib/esm/appui-react/shared/AnyToolbarItemDef.d.ts.map +1 -1
  1010. package/lib/esm/appui-react/shared/AnyToolbarItemDef.js.map +1 -1
  1011. package/lib/esm/appui-react/shared/CommandItemDef.d.ts +1 -0
  1012. package/lib/esm/appui-react/shared/CommandItemDef.d.ts.map +1 -1
  1013. package/lib/esm/appui-react/shared/CommandItemDef.js +2 -0
  1014. package/lib/esm/appui-react/shared/CommandItemDef.js.map +1 -1
  1015. package/lib/esm/appui-react/shared/CustomItemDef.d.ts +1 -0
  1016. package/lib/esm/appui-react/shared/CustomItemDef.d.ts.map +1 -1
  1017. package/lib/esm/appui-react/shared/CustomItemDef.js +2 -0
  1018. package/lib/esm/appui-react/shared/CustomItemDef.js.map +1 -1
  1019. package/lib/esm/appui-react/shared/CustomItemProps.d.ts +1 -3
  1020. package/lib/esm/appui-react/shared/CustomItemProps.d.ts.map +1 -1
  1021. package/lib/esm/appui-react/shared/CustomItemProps.js +0 -7
  1022. package/lib/esm/appui-react/shared/CustomItemProps.js.map +1 -1
  1023. package/lib/esm/appui-react/shared/GroupItemProps.d.ts +1 -0
  1024. package/lib/esm/appui-react/shared/GroupItemProps.d.ts.map +1 -1
  1025. package/lib/esm/appui-react/shared/GroupItemProps.js.map +1 -1
  1026. package/lib/esm/appui-react/shared/ItemDefBase.d.ts +3 -1
  1027. package/lib/esm/appui-react/shared/ItemDefBase.d.ts.map +1 -1
  1028. package/lib/esm/appui-react/shared/ItemDefBase.js +1 -0
  1029. package/lib/esm/appui-react/shared/ItemDefBase.js.map +1 -1
  1030. package/lib/esm/appui-react/shared/ItemMap.d.ts +2 -0
  1031. package/lib/esm/appui-react/shared/ItemMap.d.ts.map +1 -1
  1032. package/lib/esm/appui-react/shared/ItemMap.js +3 -0
  1033. package/lib/esm/appui-react/shared/ItemMap.js.map +1 -1
  1034. package/lib/esm/appui-react/shared/ItemProps.d.ts +4 -0
  1035. package/lib/esm/appui-react/shared/ItemProps.d.ts.map +1 -1
  1036. package/lib/esm/appui-react/shared/ItemProps.js.map +1 -1
  1037. package/lib/esm/appui-react/shared/MenuItem.d.ts +45 -12
  1038. package/lib/esm/appui-react/shared/MenuItem.d.ts.map +1 -1
  1039. package/lib/esm/appui-react/shared/MenuItem.js +8 -1
  1040. package/lib/esm/appui-react/shared/MenuItem.js.map +1 -1
  1041. package/lib/esm/appui-react/shared/ToolItemDef.d.ts +4 -1
  1042. package/lib/esm/appui-react/shared/ToolItemDef.d.ts.map +1 -1
  1043. package/lib/esm/appui-react/shared/ToolItemDef.js +5 -1
  1044. package/lib/esm/appui-react/shared/ToolItemDef.js.map +1 -1
  1045. package/lib/esm/appui-react/stagepanels/StagePanelConfig.d.ts +4 -4
  1046. package/lib/esm/appui-react/stagepanels/StagePanelConfig.js.map +1 -1
  1047. package/lib/esm/appui-react/stagepanels/StagePanelDef.d.ts +4 -4
  1048. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +2 -2
  1049. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  1050. package/lib/esm/appui-react/statusbar/Field.d.ts +2 -2
  1051. package/lib/esm/appui-react/statusbar/Field.d.ts.map +1 -1
  1052. package/lib/esm/appui-react/statusbar/Field.js +1 -1
  1053. package/lib/esm/appui-react/statusbar/Field.js.map +1 -1
  1054. package/lib/esm/appui-react/statusbar/Indicator.d.ts +2 -2
  1055. package/lib/esm/appui-react/statusbar/Indicator.d.ts.map +1 -1
  1056. package/lib/esm/appui-react/statusbar/Indicator.js +1 -1
  1057. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  1058. package/lib/esm/appui-react/statusbar/LabelIndicator.d.ts +2 -2
  1059. package/lib/esm/appui-react/statusbar/LabelIndicator.js +1 -1
  1060. package/lib/esm/appui-react/statusbar/LabelIndicator.js.map +1 -1
  1061. package/lib/esm/appui-react/statusbar/Overflow.d.ts.map +1 -1
  1062. package/lib/esm/appui-react/statusbar/Overflow.js.map +1 -1
  1063. package/lib/esm/appui-react/statusbar/Separator.d.ts.map +1 -1
  1064. package/lib/esm/appui-react/statusbar/Separator.js +1 -0
  1065. package/lib/esm/appui-react/statusbar/Separator.js.map +1 -1
  1066. package/lib/esm/appui-react/statusbar/StatusBar.d.ts +4 -4
  1067. package/lib/esm/appui-react/statusbar/StatusBar.d.ts.map +1 -1
  1068. package/lib/esm/appui-react/statusbar/StatusBar.js +8 -4
  1069. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  1070. package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
  1071. package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
  1072. package/lib/esm/appui-react/statusbar/dialog/Button.d.ts.map +1 -1
  1073. package/lib/esm/appui-react/statusbar/dialog/Button.js.map +1 -1
  1074. package/lib/esm/appui-react/statusbar/dialog/Dialog.d.ts.map +1 -1
  1075. package/lib/esm/appui-react/statusbar/dialog/Dialog.js.map +1 -1
  1076. package/lib/esm/appui-react/statusbar/dialog/TitleBar.d.ts.map +1 -1
  1077. package/lib/esm/appui-react/statusbar/dialog/TitleBar.js.map +1 -1
  1078. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts +1 -1
  1079. package/lib/esm/appui-react/statusbar/popup/Popup.d.ts.map +1 -1
  1080. package/lib/esm/appui-react/statusbar/popup/Popup.js +5 -2
  1081. package/lib/esm/appui-react/statusbar/popup/Popup.js.map +1 -1
  1082. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.d.ts.map +1 -1
  1083. package/lib/esm/appui-react/statusbar/popup/StatusBarPopover.js.map +1 -1
  1084. package/lib/esm/appui-react/statusfields/ActivityCenter.d.ts.map +1 -1
  1085. package/lib/esm/appui-react/statusfields/ActivityCenter.js +1 -0
  1086. package/lib/esm/appui-react/statusfields/ActivityCenter.js.map +1 -1
  1087. package/lib/esm/appui-react/statusfields/SectionsField.d.ts.map +1 -1
  1088. package/lib/esm/appui-react/statusfields/SectionsField.js.map +1 -1
  1089. package/lib/esm/appui-react/statusfields/SelectionCount.d.ts.map +1 -1
  1090. package/lib/esm/appui-react/statusfields/SelectionCount.js.map +1 -1
  1091. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts +3 -4
  1092. package/lib/esm/appui-react/statusfields/SelectionInfo.d.ts.map +1 -1
  1093. package/lib/esm/appui-react/statusfields/SelectionInfo.js +9 -13
  1094. package/lib/esm/appui-react/statusfields/SelectionInfo.js.map +1 -1
  1095. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts +14 -19
  1096. package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
  1097. package/lib/esm/appui-react/statusfields/SelectionScope.js +26 -29
  1098. package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
  1099. package/lib/esm/appui-react/statusfields/SnapMode.d.ts +9 -12
  1100. package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
  1101. package/lib/esm/appui-react/statusfields/SnapMode.js +28 -31
  1102. package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
  1103. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts +2 -1
  1104. package/lib/esm/appui-react/statusfields/ViewAttributes.d.ts.map +1 -1
  1105. package/lib/esm/appui-react/statusfields/ViewAttributes.js +1 -0
  1106. package/lib/esm/appui-react/statusfields/ViewAttributes.js.map +1 -1
  1107. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.d.ts.map +1 -1
  1108. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js +1 -0
  1109. package/lib/esm/appui-react/statusfields/message-center/MessageCenterField.js.map +1 -1
  1110. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.d.ts.map +1 -1
  1111. package/lib/esm/appui-react/statusfields/message-center/MessageCenterMessage.js.map +1 -1
  1112. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts +2 -1
  1113. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.d.ts.map +1 -1
  1114. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js +1 -0
  1115. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.js.map +1 -1
  1116. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.d.ts.map +1 -1
  1117. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  1118. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.d.ts.map +1 -1
  1119. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js +1 -2
  1120. package/lib/esm/appui-react/syncui/SyncUiEventDispatcher.js.map +1 -1
  1121. package/lib/esm/appui-react/syncui/UiSyncEvent.d.ts +2 -2
  1122. package/lib/esm/appui-react/syncui/UiSyncEvent.js +1 -1
  1123. package/lib/esm/appui-react/syncui/UiSyncEvent.js.map +1 -1
  1124. package/lib/esm/appui-react/theme/ThemeId.d.ts +38 -0
  1125. package/lib/esm/appui-react/theme/ThemeId.d.ts.map +1 -0
  1126. package/lib/esm/appui-react/theme/ThemeId.js +38 -0
  1127. package/lib/esm/appui-react/theme/ThemeId.js.map +1 -0
  1128. package/lib/esm/appui-react/theme/ThemeManager.d.ts +8 -58
  1129. package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
  1130. package/lib/esm/appui-react/theme/ThemeManager.js +24 -100
  1131. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  1132. package/lib/esm/appui-react/toolbar/GroupItem.d.ts +1 -0
  1133. package/lib/esm/appui-react/toolbar/GroupItem.d.ts.map +1 -1
  1134. package/lib/esm/appui-react/toolbar/GroupItem.js +2 -3
  1135. package/lib/esm/appui-react/toolbar/GroupItem.js.map +1 -1
  1136. package/lib/esm/appui-react/toolbar/Toolbar.d.ts +1 -1
  1137. package/lib/esm/appui-react/toolbar/Toolbar.d.ts.map +1 -1
  1138. package/lib/esm/appui-react/toolbar/Toolbar.js.map +1 -1
  1139. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts +20 -5
  1140. package/lib/esm/appui-react/toolbar/ToolbarHelper.d.ts.map +1 -1
  1141. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +36 -7
  1142. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  1143. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts +3 -4
  1144. package/lib/esm/appui-react/toolbar/ToolbarItem.d.ts.map +1 -1
  1145. package/lib/esm/appui-react/toolbar/ToolbarItem.js.map +1 -1
  1146. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts +4 -1
  1147. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.d.ts.map +1 -1
  1148. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js +12 -1
  1149. package/lib/esm/appui-react/toolbar/ToolbarItemUtilities.js.map +1 -1
  1150. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.d.ts.map +1 -1
  1151. package/lib/esm/appui-react/toolbar/ToolbarWithOverflow.js.map +1 -1
  1152. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts +1 -0
  1153. package/lib/esm/appui-react/tools/CoreToolDefinitions.d.ts.map +1 -1
  1154. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +2 -0
  1155. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  1156. package/lib/esm/appui-react/tools/ToolbarItems.d.ts +76 -0
  1157. package/lib/esm/appui-react/tools/ToolbarItems.d.ts.map +1 -0
  1158. package/lib/esm/appui-react/tools/ToolbarItems.js +183 -0
  1159. package/lib/esm/appui-react/tools/ToolbarItems.js.map +1 -0
  1160. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
  1161. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +2 -0
  1162. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
  1163. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
  1164. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +41 -13
  1165. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  1166. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
  1167. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +1 -0
  1168. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
  1169. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
  1170. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +28 -11
  1171. package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
  1172. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
  1173. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +1 -0
  1174. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
  1175. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
  1176. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +3 -1
  1177. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  1178. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.d.ts +1 -1
  1179. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  1180. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts +8 -14
  1181. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.d.ts.map +1 -1
  1182. package/lib/esm/appui-react/ui-items-provider/UiItemsProvider.js.map +1 -1
  1183. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.d.ts +19 -19
  1184. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +19 -19
  1185. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  1186. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts +3 -2
  1187. package/lib/esm/appui-react/uistate/AppUiSettings.d.ts.map +1 -1
  1188. package/lib/esm/appui-react/uistate/AppUiSettings.js +10 -9
  1189. package/lib/esm/appui-react/uistate/AppUiSettings.js.map +1 -1
  1190. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts +17 -0
  1191. package/lib/esm/appui-react/uistate/useGlobalStore.d.ts.map +1 -0
  1192. package/lib/esm/appui-react/uistate/useGlobalStore.js +18 -0
  1193. package/lib/esm/appui-react/uistate/useGlobalStore.js.map +1 -0
  1194. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts +7 -0
  1195. package/lib/esm/appui-react/uistate/useReduxFrameworkState.d.ts.map +1 -0
  1196. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js +28 -0
  1197. package/lib/esm/appui-react/uistate/useReduxFrameworkState.js.map +1 -0
  1198. package/lib/esm/appui-react/utils/PropsHelper.d.ts.map +1 -1
  1199. package/lib/esm/appui-react/utils/PropsHelper.js +1 -0
  1200. package/lib/esm/appui-react/utils/PropsHelper.js.map +1 -1
  1201. package/lib/esm/appui-react/widget-panels/DockedBar.d.ts.map +1 -1
  1202. package/lib/esm/appui-react/widget-panels/DockedBar.js.map +1 -1
  1203. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  1204. package/lib/esm/appui-react/widget-panels/Frontstage.js +21 -17
  1205. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  1206. package/lib/esm/appui-react/widget-panels/StatusBar.d.ts.map +1 -1
  1207. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -0
  1208. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  1209. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts +7 -9
  1210. package/lib/esm/appui-react/widgets/BackstageAppButton.d.ts.map +1 -1
  1211. package/lib/esm/appui-react/widgets/BackstageAppButton.js +17 -19
  1212. package/lib/esm/appui-react/widgets/BackstageAppButton.js.map +1 -1
  1213. package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
  1214. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +26 -11
  1215. package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
  1216. package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
  1217. package/lib/esm/appui-react/widgets/BasicToolWidget.js +30 -6
  1218. package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
  1219. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
  1220. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  1221. package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
  1222. package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
  1223. package/lib/esm/appui-react/widgets/Widget.d.ts +3 -4
  1224. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  1225. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  1226. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +2 -2
  1227. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  1228. package/lib/esm/appui-react/widgets/WidgetDef.js +4 -3
  1229. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  1230. package/lib/esm/appui-react.d.ts +10 -3
  1231. package/lib/esm/appui-react.d.ts.map +1 -1
  1232. package/lib/esm/appui-react.js +10 -3
  1233. package/lib/esm/appui-react.js.map +1 -1
  1234. package/lib/public/locales/en/UiFramework.json +8 -4
  1235. package/package.json +8 -8
  1236. package/lib/cjs/appui-react/configurableui/state.d.ts +0 -62
  1237. package/lib/cjs/appui-react/configurableui/state.d.ts.map +0 -1
  1238. package/lib/cjs/appui-react/configurableui/state.js.map +0 -1
  1239. package/lib/cjs/appui-react/dialog/ContentDialog.scss +0 -25
  1240. package/lib/esm/appui-react/configurableui/state.d.ts +0 -62
  1241. package/lib/esm/appui-react/configurableui/state.d.ts.map +0 -1
  1242. package/lib/esm/appui-react/configurableui/state.js.map +0 -1
  1243. package/lib/esm/appui-react/dialog/ContentDialog.scss +0 -25
@@ -1 +1 @@
1
- {"version":3,"file":"redux-ts.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/redux-ts.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA+D;AAyG/D,SAAgB,YAAY,CAAsB,IAAO,EAAE,OAAW;IACpE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC9D,CAAC;AAFD,oCAEC;AAsHD,8EAA8E;AAC9E;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,eAAe,GAC1B,uBAA0B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { combineReducers as baseCombineReducers } from \"redux\";\n\n/* eslint-disable */\n\n/** Shorthand for \"any function\". TSLint doesn't like the built-in `Function` type for some reason.\n * @public\n */\nexport type FunctionType = (...args: any[]) => any;\n\n/**\n * Similar to the built-in [Readonly](https://www.typescriptlang.org/docs/handbook/advanced-types.html#mapped-types), type alias but applied recursively.\n * This basically makes all nested properties/members of an object/array immutable.\n * @public\n */\nexport type DeepReadonly<T> = T extends ReadonlyArray<infer R>\n ? R extends object\n ? DeepReadonlyArray<R>\n : ReadonlyArray<R>\n : T extends FunctionType\n ? T\n : T extends object\n ? DeepReadonlyObject<T>\n : T;\n\n/** TypeScript doesn't actually allow recursive type aliases, so these are just sort of a hack to make DeepReadonly work\n * @public\n */\nexport interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {}\n/** TypeScript doesn't actually allow recursive type aliases, so these are just sort of a hack to make DeepReadonly work\n * @public\n */\nexport type DeepReadonlyObject<T> = {\n readonly [P in keyof T]: DeepReadonly<T[P]>;\n};\n\n/**\n * A basic Redux [Action](https://redux.js.org/basics/actions).\n * Technically, redux only requires actions to have a `type` property.\n *\n * We use a TypeScript [Generic](https://www.typescriptlang.org/docs/handbook/generics.html) interface here to preserve the \"literal-ness\" of the `type` property.\n * In other words, `Action<\"FOO\">` will be of type `{ type: \"FOO\" }`; it won't be simplified to `{ type: string }`.\n *\n * See the [TS Handbook](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types) for more info on TypeScript string literal types.\n * @public\n */\nexport interface Action<T extends string> {\n type: T;\n}\n\n/**\n * A Redux [Action](https://redux.js.org/basics/actions), with additional \"payload\" information.\n * Technically, Redux allows actions to take any shape, provided they specify a `type` property.\n *\n * However, in order to simplify TypeScript typings, we follow this [Flux Standard Actions](https://github.com/redux-utilities/flux-standard-action)-like\n * convention, where all additional action information goes into a `payload` property.\n * @public\n */\nexport interface ActionWithPayload<T extends string, P> extends Action<T> {\n payload: P;\n}\n\n/**\n * Creates a basic Redux Redux [Action](https://redux.js.org/basics/actions) without a payload.\n * **This is meant to be used as a shortcut for defining Action Creators.**\n *\n * For example,\n * ```\n * () => createAction(\"FOO\", ids)\n * ```\n * defines an action creator of type:\n * ```\n * () => { type: \"FOO\" }\n * // which is equivalent to:\n * () => Action<\"FOO\">\n * ```\n *\n * Note that the generic type parameters can always be omitted - TypeScript will be able to infer them.\n * @param type The string to use as the action's type property. Should have a [string literal type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types).\n * @public\n */\nexport function createAction<T extends string>(type: T): Action<T>;\n/**\n * Creates a basic Redux Redux [Action](https://redux.js.org/basics/actions) _with_ a payload value.\n * **This is meant to be used as a shortcut for defining Action Creators.**\n *\n * For example,\n * ```\n * (ids: number[]) => createAction(\"FOO\", ids)\n * ```\n * defines an action creator of type:\n * ```\n * (ids: number[]) => { type: \"FOO\", payload: ReadonlyArray<number> }\n * // which is equivalent to:\n * (ids: number[]) => ActionWithPayload<\"FOO\", ReadonlyArray<number>>\n * ```\n *\n * Note that the generic type parameters can always be omitted - TypeScript will be able to infer them.\n * @param type The string to use as the action's type property. Should have a [string literal type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types).\n * @param payload The value to use as the action's payload property. May be of any type.\n * @public\n */\nexport function createAction<T extends string, P>(\n type: T,\n payload: P\n): ActionWithPayload<T, DeepReadonly<P>>;\nexport function createAction<T extends string, P>(type: T, payload?: P) {\n return payload === undefined ? { type } : { type, payload };\n}\n\n/**\n * Just an object where every property is a Redux [Action Creator](https://redux.js.org/basics/actions#action-creators).\n * @public\n */\nexport type ActionCreatorsObject = {\n [actionCreatorName: string]: FunctionType;\n};\n\n/**\n * A TypeScript type alias that represents the [Union Type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types) of all actions\n * possibly created by _any_ of the action creators in a given `ActionCreatorsObject`.\n *\n * For example,\n * ```\n * // given:\n * const MyActionCreators = {\n * createBanana: () => createAction(\"BANANA\"),\n * createApple: () => createAction(\"APPLE\", true),\n * createOrange: (n: number) => createAction(\"BANANA\", n),\n * }\n * // then:\n * type X = ActionsUnion<typeof MyActionCreators>;\n * // is equivalent to:\n * type X = Action<\"BANANA\">\n * | ActionWithPayload<\"APPLE\", boolean>\n * | ActionWithPayload<\"ORANGE\", number>;\n * ```\n * @public\n */\nexport type ActionsUnion<A extends ActionCreatorsObject> = ReturnType<\n A[keyof A]\n>;\n\n/**\n * A TypeScript type alias that uses [conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html) (read: magic)\n * to represent the _exact_ (literal) type of an action's `type` property.\n *\n * More importantly, this can be used to determine a union type which represents the `type` string literal types for _any_ action in a given `ActionsUnion`.\n *\n * For example,\n * ```\n * // given:\n * type MyActions = Action<\"BANANA\">\n * | ActionWithPayload<\"APPLE\", boolean>\n * | ActionWithPayload<\"ORANGE\", number>;\n * // then:\n * type X = ActionTypes<MyActions>;\n * // is equivalent to:\n * type X = \"BANANA\" | \"APPLE\" | \"ORANGE\";\n * ```\n * @public\n */\nexport type ActionTypes<A extends Action<any>> = A[\"type\"] extends infer X\n ? X extends string\n ? X\n : never\n : never;\n\n/**\n * A Redux [Reducer](https://redux.js.org/basics/reducers).\n * @public\n */\nexport type Reducer<S, A> = (state: S, action: A) => S;\n\n/**\n * A TypeScript type alias that represents a union of all action types handled by a Redux [Reducer](https://redux.js.org/basics/reducers).\n *\n * If you have created a type-safe reducer function using `combineReducers`, you can use this to infer your actions union type instead of having to define it manually.\n * @public\n */\nexport type ReducerActions<R> = R extends Reducer<any, infer X>\n ? X extends ActionWithPayload<infer T, infer P>\n ? DeepReadonly<ActionWithPayload<T, P>>\n : X extends Action<infer T2>\n ? DeepReadonly<Action<T2>>\n : X\n : R;\n\n/**\n * A TypeScript type alias that represents the return type of a Redux [Reducer](https://redux.js.org/basics/reducers).\n *\n * If you have created a type-safe reducer function using `combineReducers`, you can use this to infer your state type instead of having to define it manually.\n * @public\n */\nexport type StateType<R extends Reducer<any, any>> = DeepReadonly<\n ReturnType<R>\n>;\n\n/**\n * So we don't actually need to implement our own version of combineReducers, but we are going to cast it\n * to this type, which will do a better job of preserving/deducing the Action and State types.\n * @public\n */\nexport type CombineReducersFunction = <A>(\n reducers: A\n) => (\n state: CombinedReducerState<A>,\n action: ReducerMapActions<A>\n) => CombinedReducerState<A>;\n\n/**\n * A type alias which represents the state created by the reducer returned by combineReducers for a given `reducers` argument.\n * Used above by `CombineReducersFunction`, our custom type definition for combineReducers.\n * @public\n */\nexport type CombinedReducerState<R> = {\n readonly [K in keyof R]: R[K] extends FunctionType ? StateType<R[K]> : never;\n};\n\n/**\n * A type alias which represents the union type of all actions handled by the reducer returned by combineReducers for a given `reducers` argument.\n * Used above by `CombineReducersFunction`, our custom type definition for combineReducers.\n * @public\n */\nexport type ReducerMapActions<R> = ReducerActions<R[keyof R]>;\n\n// Since the implementation is copied from redux, we'll copy the docs as well:\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * //@template S Combined state object type.\n *\n * @param reducers An object whose values correspond to different reducer\n * functions that need to be combined into one. One handy way to obtain it\n * is to use ES6 `import * as reducers` syntax. The reducers may never\n * return undefined for any action. Instead, they should return their\n * initial state if the state passed to them was undefined, and the current\n * state for any unrecognized action.\n *\n * Returns: A reducer function that invokes every reducer inside the passed\n * object, and builds a state object with the same shape.\n * @public\n */\nexport const combineReducers: CombineReducersFunction =\n baseCombineReducers as any;\n"]}
1
+ {"version":3,"file":"redux-ts.js","sourceRoot":"","sources":["../../../../src/appui-react/redux/redux-ts.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,iCAA+D;AAgH/D,MAAM;AACN,SAAgB,YAAY,CAAsB,IAAO,EAAE,OAAW;IACpE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC9D,CAAC;AAFD,oCAEC;AAsHD,8EAA8E;AAC9E;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,eAAe,GAC1B,uBAA0B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module State\n */\n\nimport { combineReducers as baseCombineReducers } from \"redux\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Shorthand for \"any function\". TSLint doesn't like the built-in `Function` type for some reason.\n * @public\n * @deprecated in 4.15.0. Use `(...args: any[]) => any` instead.\n */\nexport type FunctionType = (...args: any[]) => any;\n\n/** Similar to the built-in [Readonly](https://www.typescriptlang.org/docs/handbook/advanced-types.html#mapped-types), type alias but applied recursively.\n * This basically makes all nested properties/members of an object/array immutable.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type DeepReadonly<T> = T extends ReadonlyArray<infer R>\n ? R extends object\n ? DeepReadonlyArray<R>\n : ReadonlyArray<R>\n : T extends FunctionType\n ? T\n : T extends object\n ? DeepReadonlyObject<T>\n : T;\n\n/** TypeScript doesn't actually allow recursive type aliases, so these are just sort of a hack to make DeepReadonly work\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type DeepReadonlyArray<T> = ReadonlyArray<DeepReadonly<T>>;\n\n/** TypeScript doesn't actually allow recursive type aliases, so these are just sort of a hack to make DeepReadonly work\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type DeepReadonlyObject<T> = {\n readonly [P in keyof T]: DeepReadonly<T[P]>;\n};\n\n/** A basic Redux [Action](https://redux.js.org/basics/actions).\n * Technically, redux only requires actions to have a `type` property.\n *\n * We use a TypeScript [Generic](https://www.typescriptlang.org/docs/handbook/generics.html) interface here to preserve the \"literal-ness\" of the `type` property.\n * In other words, `Action<\"FOO\">` will be of type `{ type: \"FOO\" }`; it won't be simplified to `{ type: string }`.\n *\n * See the [TS Handbook](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types) for more info on TypeScript string literal types.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport interface Action<T extends string> {\n type: T;\n}\n\n/** A Redux [Action](https://redux.js.org/basics/actions), with additional \"payload\" information.\n * Technically, Redux allows actions to take any shape, provided they specify a `type` property.\n *\n * However, in order to simplify TypeScript typings, we follow this [Flux Standard Actions](https://github.com/redux-utilities/flux-standard-action)-like\n * convention, where all additional action information goes into a `payload` property.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport interface ActionWithPayload<T extends string, P> extends Action<T> {\n payload: P;\n}\n\n/** Creates a basic Redux Redux [Action](https://redux.js.org/basics/actions) without a payload.\n * **This is meant to be used as a shortcut for defining Action Creators.**\n *\n * For example,\n * ```\n * () => createAction(\"FOO\", ids)\n * ```\n * defines an action creator of type:\n * ```\n * () => { type: \"FOO\" }\n * // which is equivalent to:\n * () => Action<\"FOO\">\n * ```\n *\n * Note that the generic type parameters can always be omitted - TypeScript will be able to infer them.\n * @param type The string to use as the action's type property. Should have a [string literal type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types).\n * @public\n * @deprecated in 4.15.0. Use your state management types instead, i.e. {@link https://redux-toolkit.js.org/api/createAction createAction} from `@reduxjs/toolkit` instead.\n */\nexport function createAction<T extends string>(type: T): Action<T>;\n\n/**\n * Creates a basic Redux Redux [Action](https://redux.js.org/basics/actions) _with_ a payload value.\n * **This is meant to be used as a shortcut for defining Action Creators.**\n *\n * For example,\n * ```\n * (ids: number[]) => createAction(\"FOO\", ids)\n * ```\n * defines an action creator of type:\n * ```\n * (ids: number[]) => { type: \"FOO\", payload: ReadonlyArray<number> }\n * // which is equivalent to:\n * (ids: number[]) => ActionWithPayload<\"FOO\", ReadonlyArray<number>>\n * ```\n *\n * Note that the generic type parameters can always be omitted - TypeScript will be able to infer them.\n * @param type The string to use as the action's type property. Should have a [string literal type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#string-literal-types).\n * @param payload The value to use as the action's payload property. May be of any type.\n * @public\n * @deprecated in 4.15.0. Use {@link https://redux-toolkit.js.org/api/createAction createAction} from `@reduxjs/toolkit` instead.\n */\nexport function createAction<T extends string, P>(\n type: T,\n payload: P\n): ActionWithPayload<T, DeepReadonly<P>>;\n\n/** */\nexport function createAction<T extends string, P>(type: T, payload?: P) {\n return payload === undefined ? { type } : { type, payload };\n}\n\n/** Just an object where every property is a Redux [Action Creator](https://redux.js.org/basics/actions#action-creators).\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport interface ActionCreatorsObject {\n [actionCreatorName: string]: FunctionType;\n}\n\n/** A TypeScript type alias that represents the [Union Type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types) of all actions\n * possibly created by _any_ of the action creators in a given `ActionCreatorsObject`.\n *\n * For example,\n * ```\n * // given:\n * const MyActionCreators = {\n * createBanana: () => createAction(\"BANANA\"),\n * createApple: () => createAction(\"APPLE\", true),\n * createOrange: (n: number) => createAction(\"BANANA\", n),\n * }\n * // then:\n * type X = ActionsUnion<typeof MyActionCreators>;\n * // is equivalent to:\n * type X = Action<\"BANANA\">\n * | ActionWithPayload<\"APPLE\", boolean>\n * | ActionWithPayload<\"ORANGE\", number>;\n * ```\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type ActionsUnion<A extends ActionCreatorsObject> = ReturnType<\n A[keyof A]\n>;\n\n/** A TypeScript type alias that uses [conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html) (read: magic)\n * to represent the _exact_ (literal) type of an action's `type` property.\n *\n * More importantly, this can be used to determine a union type which represents the `type` string literal types for _any_ action in a given `ActionsUnion`.\n *\n * For example,\n * ```\n * // given:\n * type MyActions = Action<\"BANANA\">\n * | ActionWithPayload<\"APPLE\", boolean>\n * | ActionWithPayload<\"ORANGE\", number>;\n * // then:\n * type X = ActionTypes<MyActions>;\n * // is equivalent to:\n * type X = \"BANANA\" | \"APPLE\" | \"ORANGE\";\n * ```\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type ActionTypes<A extends Action<any>> = A[\"type\"] extends infer X\n ? X extends string\n ? X\n : never\n : never;\n\n/** A Redux [Reducer](https://redux.js.org/basics/reducers).\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type Reducer<S, A> = (state: S, action: A) => S;\n\n/** A TypeScript type alias that represents a union of all action types handled by a Redux [Reducer](https://redux.js.org/basics/reducers).\n *\n * If you have created a type-safe reducer function using `combineReducers`, you can use this to infer your actions union type instead of having to define it manually.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type ReducerActions<R> = R extends Reducer<any, infer X>\n ? X extends ActionWithPayload<infer T, infer P>\n ? DeepReadonly<ActionWithPayload<T, P>>\n : X extends Action<infer T2>\n ? DeepReadonly<Action<T2>>\n : X\n : R;\n\n/** A TypeScript type alias that represents the return type of a Redux [Reducer](https://redux.js.org/basics/reducers).\n *\n * If you have created a type-safe reducer function using `combineReducers`, you can use this to infer your state type instead of having to define it manually.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type StateType<R extends Reducer<any, any>> = DeepReadonly<\n ReturnType<R>\n>;\n\n/** So we don't actually need to implement our own version of combineReducers, but we are going to cast it\n * to this type, which will do a better job of preserving/deducing the Action and State types.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type CombineReducersFunction = <A>(\n reducers: A\n) => (\n state: CombinedReducerState<A>,\n action: ReducerMapActions<A>\n) => CombinedReducerState<A>;\n\n/** A type alias which represents the state created by the reducer returned by combineReducers for a given `reducers` argument.\n * Used above by `CombineReducersFunction`, our custom type definition for combineReducers.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type CombinedReducerState<R> = {\n readonly [K in keyof R]: R[K] extends FunctionType ? StateType<R[K]> : never;\n};\n\n/** A type alias which represents the union type of all actions handled by the reducer returned by combineReducers for a given `reducers` argument.\n * Used above by `CombineReducersFunction`, our custom type definition for combineReducers.\n * @public\n * @deprecated in 4.15.0. Use your state management types instead.\n */\nexport type ReducerMapActions<R> = ReducerActions<R[keyof R]>;\n\n// Since the implementation is copied from redux, we'll copy the docs as well:\n/** Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * //@template S Combined state object type.\n *\n * @param reducers An object whose values correspond to different reducer\n * functions that need to be combined into one. One handy way to obtain it\n * is to use ES6 `import * as reducers` syntax. The reducers may never\n * return undefined for any action. Instead, they should return their\n * initial state if the state passed to them was undefined, and the current\n * state for any unrecognized action.\n *\n * Returns: A reducer function that invokes every reducer inside the passed\n * object, and builds a state object with the same shape.\n * @public\n * @deprecated in 4.15.0. Use your state management APIs instead.\n */\nexport const combineReducers: CombineReducersFunction =\n baseCombineReducers as any;\n"]}
@@ -5,40 +5,49 @@ import { ConditionalBooleanValue } from "@itwin/appui-abstract";
5
5
  import { CommandItemDef } from "../shared/CommandItemDef";
6
6
  import type { BaseItemState } from "../shared/ItemDefBase";
7
7
  import { GroupItemDef } from "../toolbar/GroupItem";
8
- /** return SyncEventIds that trigger selection state function refresh.
8
+ /** Return SyncEventIds that trigger selection state function refresh.
9
9
  * @beta
10
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
10
11
  */
11
12
  export declare function getFeatureOverrideSyncEventIds(): string[];
12
- /** return SyncEventIds that trigger selection state function refresh.
13
+ /** Return SyncEventIds that trigger selection state function refresh.
13
14
  * @beta
15
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
14
16
  */
15
17
  export declare function getSelectionContextSyncEventIds(): string[];
16
- /** return SyncEventIds that trigger selection state function refresh.
18
+ /** Return SyncEventIds that trigger selection state function refresh.
17
19
  * @beta
20
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
18
21
  */
19
22
  export declare function isNoSelectionActive(): boolean;
20
- /** return ConditionalBooleanValue object used to show items if selection set is active.
23
+ /** Return ConditionalBooleanValue object used to show items if selection set is active.
21
24
  * @beta
25
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
22
26
  */
23
27
  export declare function areNoFeatureOverridesActive(): boolean;
24
- /** return ConditionalBooleanValue object used to show item if feature overrides are active.
28
+ /** Return ConditionalBooleanValue object used to show item if feature overrides are active.
25
29
  * @beta
30
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
26
31
  */
27
32
  export declare function getIsHiddenIfFeatureOverridesActive(): ConditionalBooleanValue;
28
- /** return ConditionalBooleanValue object used to show items if selection set is active.
33
+ /** Return ConditionalBooleanValue object used to show items if selection set is active.
29
34
  * @beta
35
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
30
36
  */
31
37
  export declare function getIsHiddenIfSelectionNotActive(): ConditionalBooleanValue;
32
- /** return state with isVisible set to true is SectionSet is active.
38
+ /** Return state with isVisible set to true is SectionSet is active.
33
39
  * @beta
40
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
34
41
  */
35
42
  export declare function featureOverridesActiveStateFunc(state: Readonly<BaseItemState>): BaseItemState;
36
- /** return state with isVisible set to true is SectionSet is active.
43
+ /** Return state with isVisible set to true is SectionSet is active.
37
44
  * @beta
45
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
38
46
  */
39
47
  export declare function selectionContextStateFunc(state: Readonly<BaseItemState>): BaseItemState;
40
48
  /** Utility Class that provides definitions for tools dependent on current selection. These definitions can be used to populate toolbars.
41
49
  * @public
50
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} instead.
42
51
  */
43
52
  export declare class SelectionContextToolDefinitions {
44
53
  static get isolateModelsInSelectionItemDef(): CommandItemDef;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionContextItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/selection/SelectionContextItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAapD;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,EAAE,CAOzD;AAED;;GAEG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,EAAE,CAS1D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAoB7C;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAQrD;AAED;;GAEG;AACH,wBAAgB,mCAAmC,IAAI,uBAAuB,CAK7E;AAED;;GAEG;AACH,wBAAgB,+BAA+B,IAAI,uBAAuB,CAKzE;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC7B,aAAa,CAWf;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC7B,aAAa,CAkBf;AAED;;GAEG;AACH,qBAAa,+BAA+B;IAC1C,WAAkB,+BAA+B,mBAQhD;IAED,WAAkB,mCAAmC,mBAQpD;IAED,WAAkB,sBAAsB,mBASvC;IAED,WAAkB,yBAAyB,iBAa1C;IAED,WAAkB,4BAA4B,mBAQ7C;IAED,WAAkB,gCAAgC,mBAQjD;IAED,WAAkB,mBAAmB,mBASpC;IAED,WAAkB,oBAAoB,iBAarC;IAED,WAAkB,wBAAwB,mBASzC;IAED,WAAkB,wCAAwC,mBAYzD;CACF"}
1
+ {"version":3,"file":"SelectionContextItemDef.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/selection/SelectionContextItemDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAgBpD;;;GAGG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,EAAE,CAOzD;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,EAAE,CAU1D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAgB7C;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAQrD;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,IAAI,uBAAuB,CAK7E;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,uBAAuB,CAKzE;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC7B,aAAa,CAWf;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,GAC7B,aAAa,CAaf;AAED;;;GAGG;AACH,qBAAa,+BAA+B;IAC1C,WAAkB,+BAA+B,mBAQhD;IAED,WAAkB,mCAAmC,mBAQpD;IAED,WAAkB,sBAAsB,mBASvC;IAED,WAAkB,yBAAyB,iBAa1C;IAED,WAAkB,4BAA4B,mBAQ7C;IAED,WAAkB,gCAAgC,mBAQjD;IAED,WAAkB,mBAAmB,mBASpC;IAED,WAAkB,oBAAoB,iBAarC;IAED,WAAkB,wBAAwB,mBASzC;IAED,WAAkB,wCAAwC,mBAYzD;CACF"}
@@ -24,8 +24,10 @@ const asset_classification_hide_svg_1 = require("@bentley/icons-generic/icons/as
24
24
  const visibility_semi_transparent_svg_1 = require("@bentley/icons-generic/icons/visibility-semi-transparent.svg");
25
25
  const visibility_hide_2_svg_1 = require("@bentley/icons-generic/icons/visibility-hide_2.svg");
26
26
  const visibility_svg_1 = require("@bentley/icons-generic/icons/visibility.svg");
27
- /** return SyncEventIds that trigger selection state function refresh.
27
+ /* eslint-disable deprecation/deprecation */
28
+ /** Return SyncEventIds that trigger selection state function refresh.
28
29
  * @beta
30
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
29
31
  */
30
32
  function getFeatureOverrideSyncEventIds() {
31
33
  return [
@@ -36,30 +38,29 @@ function getFeatureOverrideSyncEventIds() {
36
38
  ];
37
39
  }
38
40
  exports.getFeatureOverrideSyncEventIds = getFeatureOverrideSyncEventIds;
39
- /** return SyncEventIds that trigger selection state function refresh.
41
+ /** Return SyncEventIds that trigger selection state function refresh.
40
42
  * @beta
43
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
41
44
  */
42
45
  function getSelectionContextSyncEventIds() {
43
46
  return [
44
47
  SyncUiEventDispatcher_1.SyncUiEventId.SelectionSetChanged,
45
48
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveContentChanged,
46
49
  SyncUiEventDispatcher_1.SyncUiEventId.ActiveViewportChanged,
50
+ // eslint-disable-next-line deprecation/deprecation
47
51
  SessionState_1.SessionStateActionId.SetNumItemsSelected,
48
52
  SyncUiEventDispatcher_1.SyncUiEventId.FeatureOverridesChanged,
49
53
  SyncUiEventDispatcher_1.SyncUiEventId.ViewedModelsChanged,
50
54
  ];
51
55
  }
52
56
  exports.getSelectionContextSyncEventIds = getSelectionContextSyncEventIds;
53
- /** return SyncEventIds that trigger selection state function refresh.
57
+ /** Return SyncEventIds that trigger selection state function refresh.
54
58
  * @beta
59
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
55
60
  */
56
61
  function isNoSelectionActive() {
57
62
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
58
- let selectionCount = 0;
59
- if (!UiFramework_1.UiFramework.frameworkStateKey)
60
- selectionCount =
61
- UiFramework_1.UiFramework.store.getState()[UiFramework_1.UiFramework.frameworkStateKey].frameworkState
62
- .sessionState.numItemsSelected;
63
+ const selectionCount = UiFramework_1.UiFramework.getNumItemsSelected();
63
64
  if (activeContentControl?.viewport) {
64
65
  const hiddenElementsSet = activeContentControl.viewport.neverDrawn;
65
66
  const selectedElementsSet = activeContentControl.viewport.view.iModel.selectionSet.elements;
@@ -71,8 +72,9 @@ function isNoSelectionActive() {
71
72
  return true;
72
73
  }
73
74
  exports.isNoSelectionActive = isNoSelectionActive;
74
- /** return ConditionalBooleanValue object used to show items if selection set is active.
75
+ /** Return ConditionalBooleanValue object used to show items if selection set is active.
75
76
  * @beta
77
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
76
78
  */
77
79
  function areNoFeatureOverridesActive() {
78
80
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
@@ -81,22 +83,25 @@ function areNoFeatureOverridesActive() {
81
83
  return true;
82
84
  }
83
85
  exports.areNoFeatureOverridesActive = areNoFeatureOverridesActive;
84
- /** return ConditionalBooleanValue object used to show item if feature overrides are active.
86
+ /** Return ConditionalBooleanValue object used to show item if feature overrides are active.
85
87
  * @beta
88
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
86
89
  */
87
90
  function getIsHiddenIfFeatureOverridesActive() {
88
91
  return new appui_abstract_1.ConditionalBooleanValue(areNoFeatureOverridesActive, getFeatureOverrideSyncEventIds());
89
92
  }
90
93
  exports.getIsHiddenIfFeatureOverridesActive = getIsHiddenIfFeatureOverridesActive;
91
- /** return ConditionalBooleanValue object used to show items if selection set is active.
94
+ /** Return ConditionalBooleanValue object used to show items if selection set is active.
92
95
  * @beta
96
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
93
97
  */
94
98
  function getIsHiddenIfSelectionNotActive() {
95
99
  return new appui_abstract_1.ConditionalBooleanValue(isNoSelectionActive, getSelectionContextSyncEventIds());
96
100
  }
97
101
  exports.getIsHiddenIfSelectionNotActive = getIsHiddenIfSelectionNotActive;
98
- /** return state with isVisible set to true is SectionSet is active.
102
+ /** Return state with isVisible set to true is SectionSet is active.
99
103
  * @beta
104
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
100
105
  */
101
106
  function featureOverridesActiveStateFunc(state) {
102
107
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
@@ -107,17 +112,14 @@ function featureOverridesActiveStateFunc(state) {
107
112
  return { ...state, isVisible };
108
113
  }
109
114
  exports.featureOverridesActiveStateFunc = featureOverridesActiveStateFunc;
110
- /** return state with isVisible set to true is SectionSet is active.
115
+ /** Return state with isVisible set to true is SectionSet is active.
111
116
  * @beta
117
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.
112
118
  */
113
119
  function selectionContextStateFunc(state) {
114
120
  const activeContentControl = UiFramework_1.UiFramework.content.getActiveContentControl();
115
121
  let isVisible = false;
116
- let selectionCount = 0;
117
- if (!UiFramework_1.UiFramework.frameworkStateKey)
118
- selectionCount =
119
- UiFramework_1.UiFramework.store.getState()[UiFramework_1.UiFramework.frameworkStateKey].frameworkState
120
- .sessionState.numItemsSelected;
122
+ const selectionCount = UiFramework_1.UiFramework.getNumItemsSelected();
121
123
  if (activeContentControl &&
122
124
  activeContentControl.viewport &&
123
125
  (activeContentControl.viewport.view.iModel.selectionSet.size > 0 ||
@@ -128,6 +130,7 @@ function selectionContextStateFunc(state) {
128
130
  exports.selectionContextStateFunc = selectionContextStateFunc;
129
131
  /** Utility Class that provides definitions for tools dependent on current selection. These definitions can be used to populate toolbars.
130
132
  * @public
133
+ * @deprecated in 4.15.0. Use {@link ToolbarItems} instead.
131
134
  */
132
135
  class SelectionContextToolDefinitions {
133
136
  static get isolateModelsInSelectionItemDef() {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionContextItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/selection/SelectionContextItemDef.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgE;AAChE,wDAA6D;AAC7D,6DAA0D;AAE1D,2EAAgE;AAChE,oDAAoD;AACpD,gDAA6C;AAC7C,sFAA6E;AAC7E,wFAA+E;AAC/E,sFAA6E;AAC7E,0EAAkE;AAClE,gFAAuE;AACvE,kFAAyE;AACzE,8GAAoG;AACpG,kHAAwG;AACxG,8FAAmF;AACnF,gFAAwE;AAExE;;GAEG;AACH,SAAgB,8BAA8B;IAC5C,OAAO;QACL,qCAAa,CAAC,oBAAoB;QAClC,qCAAa,CAAC,qBAAqB;QACnC,qCAAa,CAAC,uBAAuB;QACrC,qCAAa,CAAC,mBAAmB;KAClC,CAAC;AACJ,CAAC;AAPD,wEAOC;AAED;;GAEG;AACH,SAAgB,+BAA+B;IAC7C,OAAO;QACL,qCAAa,CAAC,mBAAmB;QACjC,qCAAa,CAAC,oBAAoB;QAClC,qCAAa,CAAC,qBAAqB;QACnC,mCAAoB,CAAC,mBAAmB;QACxC,qCAAa,CAAC,uBAAuB;QACrC,qCAAa,CAAC,mBAAmB;KAClC,CAAC;AACJ,CAAC;AATD,0EASC;AAED;;GAEG;AACH,SAAgB,mBAAmB;IACjC,MAAM,oBAAoB,GAAG,yBAAW,CAAC,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAC3E,IAAI,cAAc,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,yBAAW,CAAC,iBAAiB;QAChC,cAAc;YACZ,yBAAW,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,yBAAW,CAAC,iBAAiB,CAAC,CAAC,cAAc;iBACvE,YAAY,CAAC,gBAAgB,CAAC;IAErC,IAAI,oBAAoB,EAAE,QAAQ,EAAE,CAAC;QACnC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,QAAQ,CAAC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BAA8B,EAAE,CAAC;YACvF,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AArHD,0EAqHC","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 Tools\n */\n\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\nimport { SessionStateActionId } from \"../redux/SessionState\";\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\nimport type { BaseItemState } from \"../shared/ItemDefBase\";\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\nimport { UiFramework } from \"../UiFramework\";\nimport svgModelIsolate from \"@bentley/icons-generic/icons/model-isolate.svg\";\nimport svgLayersIsolate from \"@bentley/icons-generic/icons/layers-isolate.svg\";\nimport svgAssetIsolate from \"@bentley/icons-generic/icons/asset-isolate.svg\";\nimport svgIsolate from \"@bentley/icons-generic/icons/isolate.svg\";\nimport svgModelHide from \"@bentley/icons-generic/icons/model-hide.svg\";\nimport svgLayersHide from \"@bentley/icons-generic/icons/layers-hide.svg\";\nimport svgAssetClassificationHide from \"@bentley/icons-generic/icons/asset-classification-hide.svg\";\nimport svgVisibilitySemiTransparent from \"@bentley/icons-generic/icons/visibility-semi-transparent.svg\";\nimport svgVisibilityHide from \"@bentley/icons-generic/icons/visibility-hide_2.svg\";\nimport svgVisibility from \"@bentley/icons-generic/icons/visibility.svg\";\n\n/** return SyncEventIds that trigger selection state function refresh.\n * @beta\n */\nexport function getFeatureOverrideSyncEventIds(): string[] {\n return [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.FeatureOverridesChanged,\n SyncUiEventId.ViewedModelsChanged,\n ];\n}\n\n/** return SyncEventIds that trigger selection state function refresh.\n * @beta\n */\nexport function getSelectionContextSyncEventIds(): string[] {\n return [\n SyncUiEventId.SelectionSetChanged,\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SessionStateActionId.SetNumItemsSelected,\n SyncUiEventId.FeatureOverridesChanged,\n SyncUiEventId.ViewedModelsChanged,\n ];\n}\n\n/** return SyncEventIds that trigger selection state function refresh.\n * @beta\n */\nexport function isNoSelectionActive(): boolean {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n let selectionCount = 0;\n if (!UiFramework.frameworkStateKey)\n selectionCount =\n UiFramework.store.getState()[UiFramework.frameworkStateKey].frameworkState\n .sessionState.numItemsSelected;\n\n if (activeContentControl?.viewport) {\n const hiddenElementsSet = activeContentControl.viewport.neverDrawn;\n const selectedElementsSet =\n activeContentControl.viewport.view.iModel.selectionSet.elements;\n // TODO: add check for categories, subcategories and models\n if (\n selectionCount > 0 ||\n ![...selectedElementsSet].every((value) => hiddenElementsSet?.has(value))\n )\n return false;\n }\n return true;\n}\n\n/** return ConditionalBooleanValue object used to show items if selection set is active.\n * @beta\n */\nexport function areNoFeatureOverridesActive(): boolean {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !UiFramework.hideIsolateEmphasizeActionHandler.areFeatureOverridesActive(\n activeContentControl.viewport\n );\n\n return true;\n}\n\n/** return ConditionalBooleanValue object used to show item if feature overrides are active.\n * @beta\n */\nexport function getIsHiddenIfFeatureOverridesActive(): ConditionalBooleanValue {\n return new ConditionalBooleanValue(\n areNoFeatureOverridesActive,\n getFeatureOverrideSyncEventIds()\n );\n}\n\n/** return ConditionalBooleanValue object used to show items if selection set is active.\n * @beta\n */\nexport function getIsHiddenIfSelectionNotActive(): ConditionalBooleanValue {\n return new ConditionalBooleanValue(\n isNoSelectionActive,\n getSelectionContextSyncEventIds()\n );\n}\n\n/** return state with isVisible set to true is SectionSet is active.\n * @beta\n */\nexport function featureOverridesActiveStateFunc(\n state: Readonly<BaseItemState>\n): BaseItemState {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n let isVisible = false;\n\n if (activeContentControl && activeContentControl.viewport)\n isVisible =\n UiFramework.hideIsolateEmphasizeActionHandler.areFeatureOverridesActive(\n activeContentControl.viewport\n );\n\n return { ...state, isVisible };\n}\n\n/** return state with isVisible set to true is SectionSet is active.\n * @beta\n */\nexport function selectionContextStateFunc(\n state: Readonly<BaseItemState>\n): BaseItemState {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n let isVisible = false;\n\n let selectionCount = 0;\n if (!UiFramework.frameworkStateKey)\n selectionCount =\n UiFramework.store.getState()[UiFramework.frameworkStateKey].frameworkState\n .sessionState.numItemsSelected;\n\n if (\n activeContentControl &&\n activeContentControl.viewport &&\n (activeContentControl.viewport.view.iModel.selectionSet.size > 0 ||\n selectionCount > 0)\n )\n isVisible = true;\n return { ...state, isVisible };\n}\n\n/** Utility Class that provides definitions for tools dependent on current selection. These definitions can be used to populate toolbars.\n * @public\n */\nexport class SelectionContextToolDefinitions {\n public static get isolateModelsInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateModel\",\n iconSpec: svgModelIsolate,\n labelKey: \"UiFramework:tools.isolateModels\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelectedElementsModel(),\n });\n }\n\n public static get isolateCategoriesInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateCategory\",\n iconSpec: svgLayersIsolate,\n labelKey: \"UiFramework:tools.isolateCategories\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelectedElementsCategory(),\n });\n }\n\n public static get isolateElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateSelected\",\n iconSpec: svgAssetIsolate,\n labelKey: \"UiFramework:tools.isolateSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelected(),\n });\n }\n\n public static get isolateSelectionToolGroup() {\n return new GroupItemDef({\n groupId: \"UiFramework.IsolateSelectionGroup\",\n labelKey: \"UiFramework:tools.isolate\",\n iconSpec: svgIsolate,\n isHidden: getIsHiddenIfSelectionNotActive(),\n items: [\n this.isolateElementsItemDef,\n this.isolateCategoriesInSelectionItemDef,\n this.isolateModelsInSelectionItemDef,\n ],\n itemsInColumn: 3,\n });\n }\n\n public static get hideModelsInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideModel\",\n iconSpec: svgModelHide,\n labelKey: \"UiFramework:tools.hideModels\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelectedElementsModel(),\n });\n }\n\n public static get hideCategoriesInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideCategory\",\n iconSpec: svgLayersHide,\n labelKey: \"UiFramework:tools.hideCategories\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelectedElementsCategory(),\n });\n }\n\n public static get hideElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideSelected\",\n iconSpec: svgAssetClassificationHide,\n labelKey: \"UiFramework:tools.hideSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelected(),\n });\n }\n\n public static get hideSectionToolGroup() {\n return new GroupItemDef({\n groupId: \"UiFramework.HideSelectionGroup\",\n labelKey: \"UiFramework:tools.hide\",\n iconSpec: svgVisibilityHide,\n isHidden: getIsHiddenIfSelectionNotActive(),\n items: [\n this.hideElementsItemDef,\n this.hideCategoriesInSelectionItemDef,\n this.hideModelsInSelectionItemDef,\n ],\n itemsInColumn: 3,\n });\n }\n\n public static get emphasizeElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.EmphasizeSelected\",\n iconSpec: svgVisibilitySemiTransparent,\n labelKey: \"UiFramework:tools.emphasizeSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processEmphasizeSelected(),\n });\n }\n\n public static get clearHideIsolateEmphasizeElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.ClearHideIsolateEmphasize\",\n iconSpec: svgVisibility,\n labelKey: \"UiFramework:tools.clearVisibility\",\n isHidden: getIsHiddenIfFeatureOverridesActive(),\n execute: async () => {\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearEmphasize();\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearOverrideModels();\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearOverrideCategories();\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"SelectionContextItemDef.js","sourceRoot":"","sources":["../../../../src/appui-react/selection/SelectionContextItemDef.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,0DAAgE;AAChE,wDAA6D;AAC7D,6DAA0D;AAE1D,2EAAgE;AAChE,oDAAoD;AACpD,gDAA6C;AAC7C,sFAA6E;AAC7E,wFAA+E;AAC/E,sFAA6E;AAC7E,0EAAkE;AAClE,gFAAuE;AACvE,kFAAyE;AACzE,8GAAoG;AACpG,kHAAwG;AACxG,8FAAmF;AACnF,gFAAwE;AAGxE,4CAA4C;AAE5C;;;GAGG;AACH,SAAgB,8BAA8B;IAC5C,OAAO;QACL,qCAAa,CAAC,oBAAoB;QAClC,qCAAa,CAAC,qBAAqB;QACnC,qCAAa,CAAC,uBAAuB;QACrC,qCAAa,CAAC,mBAAmB;KAClC,CAAC;AACJ,CAAC;AAPD,wEAOC;AAED;;;GAGG;AACH,SAAgB,+BAA+B;IAC7C,OAAO;QACL,qCAAa,CAAC,mBAAmB;QACjC,qCAAa,CAAC,oBAAoB;QAClC,qCAAa,CAAC,qBAAqB;QACnC,mDAAmD;QACnD,mCAAoB,CAAC,mBAAmB;QACxC,qCAAa,CAAC,uBAAuB;QACrC,qCAAa,CAAC,mBAAmB;KAClC,CAAC;AACJ,CAAC;AAVD,0EAUC;AAED;;;GAGG;AACH,SAAg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AAM,yBAAW,CAAC,iCAAiC,CAAC,0BAA0B,EAAE,CAAC;gBACjF,MAAM,yBAAW,CAAC,iCAAiC,CAAC,8BAA8B,EAAE,CAAC;YACvF,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AArHD,0EAqHC","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 Tools\n */\n\nimport { ConditionalBooleanValue } from \"@itwin/appui-abstract\";\nimport { SessionStateActionId } from \"../redux/SessionState\";\nimport { CommandItemDef } from \"../shared/CommandItemDef\";\nimport type { BaseItemState } from \"../shared/ItemDefBase\";\nimport { SyncUiEventId } from \"../syncui/SyncUiEventDispatcher\";\nimport { GroupItemDef } from \"../toolbar/GroupItem\";\nimport { UiFramework } from \"../UiFramework\";\nimport svgModelIsolate from \"@bentley/icons-generic/icons/model-isolate.svg\";\nimport svgLayersIsolate from \"@bentley/icons-generic/icons/layers-isolate.svg\";\nimport svgAssetIsolate from \"@bentley/icons-generic/icons/asset-isolate.svg\";\nimport svgIsolate from \"@bentley/icons-generic/icons/isolate.svg\";\nimport svgModelHide from \"@bentley/icons-generic/icons/model-hide.svg\";\nimport svgLayersHide from \"@bentley/icons-generic/icons/layers-hide.svg\";\nimport svgAssetClassificationHide from \"@bentley/icons-generic/icons/asset-classification-hide.svg\";\nimport svgVisibilitySemiTransparent from \"@bentley/icons-generic/icons/visibility-semi-transparent.svg\";\nimport svgVisibilityHide from \"@bentley/icons-generic/icons/visibility-hide_2.svg\";\nimport svgVisibility from \"@bentley/icons-generic/icons/visibility.svg\";\nimport type { ToolbarItems } from \"../tools/ToolbarItems\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Return SyncEventIds that trigger selection state function refresh.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function getFeatureOverrideSyncEventIds(): string[] {\n return [\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n SyncUiEventId.FeatureOverridesChanged,\n SyncUiEventId.ViewedModelsChanged,\n ];\n}\n\n/** Return SyncEventIds that trigger selection state function refresh.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function getSelectionContextSyncEventIds(): string[] {\n return [\n SyncUiEventId.SelectionSetChanged,\n SyncUiEventId.ActiveContentChanged,\n SyncUiEventId.ActiveViewportChanged,\n // eslint-disable-next-line deprecation/deprecation\n SessionStateActionId.SetNumItemsSelected,\n SyncUiEventId.FeatureOverridesChanged,\n SyncUiEventId.ViewedModelsChanged,\n ];\n}\n\n/** Return SyncEventIds that trigger selection state function refresh.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function isNoSelectionActive(): boolean {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n const selectionCount = UiFramework.getNumItemsSelected();\n\n if (activeContentControl?.viewport) {\n const hiddenElementsSet = activeContentControl.viewport.neverDrawn;\n const selectedElementsSet =\n activeContentControl.viewport.view.iModel.selectionSet.elements;\n // TODO: add check for categories, subcategories and models\n if (\n selectionCount > 0 ||\n ![...selectedElementsSet].every((value) => hiddenElementsSet?.has(value))\n )\n return false;\n }\n return true;\n}\n\n/** Return ConditionalBooleanValue object used to show items if selection set is active.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function areNoFeatureOverridesActive(): boolean {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n if (activeContentControl && activeContentControl.viewport)\n return !UiFramework.hideIsolateEmphasizeActionHandler.areFeatureOverridesActive(\n activeContentControl.viewport\n );\n\n return true;\n}\n\n/** Return ConditionalBooleanValue object used to show item if feature overrides are active.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function getIsHiddenIfFeatureOverridesActive(): ConditionalBooleanValue {\n return new ConditionalBooleanValue(\n areNoFeatureOverridesActive,\n getFeatureOverrideSyncEventIds()\n );\n}\n\n/** Return ConditionalBooleanValue object used to show items if selection set is active.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function getIsHiddenIfSelectionNotActive(): ConditionalBooleanValue {\n return new ConditionalBooleanValue(\n isNoSelectionActive,\n getSelectionContextSyncEventIds()\n );\n}\n\n/** Return state with isVisible set to true is SectionSet is active.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function featureOverridesActiveStateFunc(\n state: Readonly<BaseItemState>\n): BaseItemState {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n let isVisible = false;\n\n if (activeContentControl && activeContentControl.viewport)\n isVisible =\n UiFramework.hideIsolateEmphasizeActionHandler.areFeatureOverridesActive(\n activeContentControl.viewport\n );\n\n return { ...state, isVisible };\n}\n\n/** Return state with isVisible set to true is SectionSet is active.\n * @beta\n * @deprecated in 4.15.0. Use {@link ToolbarItems} or a custom conditional value instead.\n */\nexport function selectionContextStateFunc(\n state: Readonly<BaseItemState>\n): BaseItemState {\n const activeContentControl = UiFramework.content.getActiveContentControl();\n let isVisible = false;\n\n const selectionCount = UiFramework.getNumItemsSelected();\n if (\n activeContentControl &&\n activeContentControl.viewport &&\n (activeContentControl.viewport.view.iModel.selectionSet.size > 0 ||\n selectionCount > 0)\n )\n isVisible = true;\n return { ...state, isVisible };\n}\n\n/** Utility Class that provides definitions for tools dependent on current selection. These definitions can be used to populate toolbars.\n * @public\n * @deprecated in 4.15.0. Use {@link ToolbarItems} instead.\n */\nexport class SelectionContextToolDefinitions {\n public static get isolateModelsInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateModel\",\n iconSpec: svgModelIsolate,\n labelKey: \"UiFramework:tools.isolateModels\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelectedElementsModel(),\n });\n }\n\n public static get isolateCategoriesInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateCategory\",\n iconSpec: svgLayersIsolate,\n labelKey: \"UiFramework:tools.isolateCategories\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelectedElementsCategory(),\n });\n }\n\n public static get isolateElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.IsolateSelected\",\n iconSpec: svgAssetIsolate,\n labelKey: \"UiFramework:tools.isolateSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processIsolateSelected(),\n });\n }\n\n public static get isolateSelectionToolGroup() {\n return new GroupItemDef({\n groupId: \"UiFramework.IsolateSelectionGroup\",\n labelKey: \"UiFramework:tools.isolate\",\n iconSpec: svgIsolate,\n isHidden: getIsHiddenIfSelectionNotActive(),\n items: [\n this.isolateElementsItemDef,\n this.isolateCategoriesInSelectionItemDef,\n this.isolateModelsInSelectionItemDef,\n ],\n itemsInColumn: 3,\n });\n }\n\n public static get hideModelsInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideModel\",\n iconSpec: svgModelHide,\n labelKey: \"UiFramework:tools.hideModels\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelectedElementsModel(),\n });\n }\n\n public static get hideCategoriesInSelectionItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideCategory\",\n iconSpec: svgLayersHide,\n labelKey: \"UiFramework:tools.hideCategories\",\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelectedElementsCategory(),\n });\n }\n\n public static get hideElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.HideSelected\",\n iconSpec: svgAssetClassificationHide,\n labelKey: \"UiFramework:tools.hideSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processHideSelected(),\n });\n }\n\n public static get hideSectionToolGroup() {\n return new GroupItemDef({\n groupId: \"UiFramework.HideSelectionGroup\",\n labelKey: \"UiFramework:tools.hide\",\n iconSpec: svgVisibilityHide,\n isHidden: getIsHiddenIfSelectionNotActive(),\n items: [\n this.hideElementsItemDef,\n this.hideCategoriesInSelectionItemDef,\n this.hideModelsInSelectionItemDef,\n ],\n itemsInColumn: 3,\n });\n }\n\n public static get emphasizeElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.EmphasizeSelected\",\n iconSpec: svgVisibilitySemiTransparent,\n labelKey: \"UiFramework:tools.emphasizeSelected\",\n isHidden: getIsHiddenIfSelectionNotActive(),\n execute: async () =>\n UiFramework.hideIsolateEmphasizeActionHandler.processEmphasizeSelected(),\n });\n }\n\n public static get clearHideIsolateEmphasizeElementsItemDef() {\n return new CommandItemDef({\n commandId: \"UiFramework.ClearHideIsolateEmphasize\",\n iconSpec: svgVisibility,\n labelKey: \"UiFramework:tools.clearVisibility\",\n isHidden: getIsHiddenIfFeatureOverridesActive(),\n execute: async () => {\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearEmphasize();\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearOverrideModels();\n await UiFramework.hideIsolateEmphasizeActionHandler.processClearOverrideCategories();\n },\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityFormat.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quantityformatting/QuantityFormat.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAGV,aAAa,EACd,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAmB1D;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,EAAE,eAAe,CAAC;IACrC,oBAAoB,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CAC1C;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,GAC/C,gBAAgB,CAqBlB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,gCAAgC,qBA6SlC"}
1
+ {"version":3,"file":"QuantityFormat.d.ts","sourceRoot":"","sources":["../../../../../src/appui-react/settings/quantityformatting/QuantityFormat.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAGV,aAAa,EACd,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAkB1D;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,EAAE,eAAe,CAAC;IACrC,oBAAoB,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CAC1C;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,GAC/C,gBAAgB,CAqBlB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,gCAAgC,qBA6SlC"}
@@ -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,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WAAW,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;IAE7C,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC1C,WAAW,EAAE,CAAC;IAChB,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,YAAo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CAAC,SAAS;gBACf,oBAAC,sBAAM,IAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,QAAQ,IAClD,SAAS,CAAC,YAAY,CAAC,CACjB;gBACT,oBAAC,sBAAM,IAAC,OAAO,EAAE,YAAY,IAAG,SAAS,CAAC,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"}