@itwin/appui-abstract 4.0.0-dev.6 → 4.0.0-dev.60

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 (330) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  3. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +1 -1
  4. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +79 -79
  5. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  6. package/lib/cjs/appui-abstract/UiAdmin.d.ts +221 -221
  7. package/lib/cjs/appui-abstract/UiAdmin.js +224 -224
  8. package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
  9. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +113 -113
  10. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +1 -1
  11. package/lib/cjs/appui-abstract/UiItemsManager.js +193 -199
  12. package/lib/cjs/appui-abstract/UiItemsManager.js.map +1 -1
  13. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +29 -29
  14. package/lib/cjs/appui-abstract/UiItemsProvider.js +9 -9
  15. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +1 -1
  16. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +91 -91
  17. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  18. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +70 -70
  19. package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +1 -1
  20. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
  21. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +133 -133
  22. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  23. package/lib/cjs/appui-abstract/common/KeyboardKey.d.ts +51 -51
  24. package/lib/cjs/appui-abstract/common/KeyboardKey.js +63 -63
  25. package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
  26. package/lib/cjs/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  27. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js +9 -9
  28. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  29. package/lib/cjs/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  30. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +108 -108
  31. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  32. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  33. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +67 -67
  34. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  35. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  36. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +66 -66
  37. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  38. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  39. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +175 -175
  40. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  41. package/lib/cjs/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  42. package/lib/cjs/appui-abstract/items/AbstractItemProps.d.ts.map +1 -1
  43. package/lib/cjs/appui-abstract/items/AbstractItemProps.js +9 -9
  44. package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
  45. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
  46. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js +9 -9
  47. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  48. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
  49. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js +9 -9
  50. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  51. package/lib/cjs/appui-abstract/items/BadgeType.d.ts +14 -14
  52. package/lib/cjs/appui-abstract/items/BadgeType.js +22 -22
  53. package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
  54. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
  55. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +60 -60
  56. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  57. package/lib/cjs/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
  58. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +62 -62
  59. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  60. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +11 -11
  61. package/lib/cjs/appui-abstract/items/ProvidedItem.js +9 -9
  62. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +1 -1
  63. package/lib/cjs/appui-abstract/items/RelativePosition.d.ts +18 -18
  64. package/lib/cjs/appui-abstract/items/RelativePosition.js +26 -26
  65. package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
  66. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +16 -16
  67. package/lib/cjs/appui-abstract/items/StageUsage.js +24 -24
  68. package/lib/cjs/appui-abstract/items/StageUsage.js.map +1 -1
  69. package/lib/cjs/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  70. package/lib/cjs/appui-abstract/notification/MessagePresenter.js +24 -24
  71. package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
  72. package/lib/cjs/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  73. package/lib/cjs/appui-abstract/notification/MessageSeverity.js +23 -23
  74. package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
  75. package/lib/cjs/appui-abstract/properties/Description.d.ts +127 -127
  76. package/lib/cjs/appui-abstract/properties/Description.js +196 -196
  77. package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
  78. package/lib/cjs/appui-abstract/properties/EditorParams.d.ts +260 -260
  79. package/lib/cjs/appui-abstract/properties/EditorParams.d.ts.map +1 -1
  80. package/lib/cjs/appui-abstract/properties/EditorParams.js +106 -106
  81. package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
  82. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  83. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js +9 -9
  84. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  85. package/lib/cjs/appui-abstract/properties/Record.d.ts +57 -57
  86. package/lib/cjs/appui-abstract/properties/Record.js +78 -78
  87. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  88. package/lib/cjs/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  89. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js +30 -30
  90. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  91. package/lib/cjs/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  92. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js +39 -39
  93. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  94. package/lib/cjs/appui-abstract/properties/Value.d.ts +49 -49
  95. package/lib/cjs/appui-abstract/properties/Value.d.ts.map +1 -1
  96. package/lib/cjs/appui-abstract/properties/Value.js +20 -20
  97. package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
  98. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
  99. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +48 -48
  100. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  101. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +128 -128
  102. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  103. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +87 -87
  104. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
  105. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
  106. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +135 -135
  107. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  108. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +121 -121
  109. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  110. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +64 -64
  111. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  112. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  113. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +235 -235
  114. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  115. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  116. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +51 -51
  117. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  118. package/lib/cjs/appui-abstract/utils/PointProps.d.ts +10 -10
  119. package/lib/cjs/appui-abstract/utils/PointProps.js +9 -9
  120. package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
  121. package/lib/cjs/appui-abstract/utils/UiError.d.ts +12 -12
  122. package/lib/cjs/appui-abstract/utils/UiError.js +22 -22
  123. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  124. package/lib/cjs/appui-abstract/utils/UiEvent.d.ts +9 -9
  125. package/lib/cjs/appui-abstract/utils/UiEvent.js +17 -17
  126. package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
  127. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  128. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +131 -131
  129. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  130. package/lib/cjs/appui-abstract/utils/callbacks.d.ts +20 -20
  131. package/lib/cjs/appui-abstract/utils/callbacks.d.ts.map +1 -1
  132. package/lib/cjs/appui-abstract/utils/callbacks.js +9 -9
  133. package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
  134. package/lib/cjs/appui-abstract/utils/filter/charCode.d.ts +416 -416
  135. package/lib/cjs/appui-abstract/utils/filter/charCode.js +6 -6
  136. package/lib/cjs/appui-abstract/utils/filter/charCode.js.map +1 -1
  137. package/lib/cjs/appui-abstract/utils/filter/filters.d.ts +98 -98
  138. package/lib/cjs/appui-abstract/utils/filter/filters.d.ts.map +1 -1
  139. package/lib/cjs/appui-abstract/utils/filter/filters.js +709 -709
  140. package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
  141. package/lib/cjs/appui-abstract/utils/filter/map.d.ts +59 -59
  142. package/lib/cjs/appui-abstract/utils/filter/map.js +402 -404
  143. package/lib/cjs/appui-abstract/utils/filter/map.js.map +1 -1
  144. package/lib/cjs/appui-abstract/utils/filter/strings.d.ts +20 -20
  145. package/lib/cjs/appui-abstract/utils/filter/strings.js +78 -78
  146. package/lib/cjs/appui-abstract/utils/filter/strings.js.map +1 -1
  147. package/lib/cjs/appui-abstract/utils/isLetter.d.ts +9 -9
  148. package/lib/cjs/appui-abstract/utils/isLetter.js +19 -19
  149. package/lib/cjs/appui-abstract/utils/isLetter.js.map +1 -1
  150. package/lib/cjs/appui-abstract/utils/misc.d.ts +11 -11
  151. package/lib/cjs/appui-abstract/utils/misc.js +36 -36
  152. package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
  153. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -86
  154. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +9 -9
  155. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  156. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +36 -36
  157. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  158. package/lib/cjs/appui-abstract/widget/StagePanel.js +46 -46
  159. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +1 -1
  160. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +19 -19
  161. package/lib/cjs/appui-abstract/widget/WidgetState.js +27 -27
  162. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +1 -1
  163. package/lib/cjs/appui-abstract.d.ts +103 -103
  164. package/lib/cjs/appui-abstract.js +123 -119
  165. package/lib/cjs/appui-abstract.js.map +1 -1
  166. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  167. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +1 -1
  168. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +75 -75
  169. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  170. package/lib/esm/appui-abstract/UiAdmin.d.ts +221 -221
  171. package/lib/esm/appui-abstract/UiAdmin.js +220 -219
  172. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  173. package/lib/esm/appui-abstract/UiItemsManager.d.ts +113 -113
  174. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +1 -1
  175. package/lib/esm/appui-abstract/UiItemsManager.js +190 -195
  176. package/lib/esm/appui-abstract/UiItemsManager.js.map +1 -1
  177. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +29 -29
  178. package/lib/esm/appui-abstract/UiItemsProvider.js +8 -8
  179. package/lib/esm/appui-abstract/UiItemsProvider.js.map +1 -1
  180. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +91 -91
  181. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  182. package/lib/esm/appui-abstract/backstage/BackstageItem.js +65 -64
  183. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +1 -1
  184. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
  185. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +129 -129
  186. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  187. package/lib/esm/appui-abstract/common/KeyboardKey.d.ts +51 -51
  188. package/lib/esm/appui-abstract/common/KeyboardKey.js +59 -59
  189. package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
  190. package/lib/esm/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  191. package/lib/esm/appui-abstract/content/ContentLayoutProps.js +8 -8
  192. package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  193. package/lib/esm/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  194. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +105 -104
  195. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  196. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  197. package/lib/esm/appui-abstract/dialogs/DialogItem.js +63 -63
  198. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  199. package/lib/esm/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  200. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +61 -61
  201. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  202. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  203. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +171 -170
  204. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  205. package/lib/esm/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  206. package/lib/esm/appui-abstract/items/AbstractItemProps.d.ts.map +1 -1
  207. package/lib/esm/appui-abstract/items/AbstractItemProps.js +8 -8
  208. package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
  209. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
  210. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js +8 -8
  211. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  212. package/lib/esm/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
  213. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js +8 -8
  214. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  215. package/lib/esm/appui-abstract/items/BadgeType.d.ts +14 -14
  216. package/lib/esm/appui-abstract/items/BadgeType.js +19 -19
  217. package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
  218. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
  219. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +56 -56
  220. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  221. package/lib/esm/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
  222. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +58 -58
  223. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  224. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +11 -11
  225. package/lib/esm/appui-abstract/items/ProvidedItem.js +8 -8
  226. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +1 -1
  227. package/lib/esm/appui-abstract/items/RelativePosition.d.ts +18 -18
  228. package/lib/esm/appui-abstract/items/RelativePosition.js +23 -23
  229. package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
  230. package/lib/esm/appui-abstract/items/StageUsage.d.ts +16 -16
  231. package/lib/esm/appui-abstract/items/StageUsage.js +21 -21
  232. package/lib/esm/appui-abstract/items/StageUsage.js.map +1 -1
  233. package/lib/esm/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  234. package/lib/esm/appui-abstract/notification/MessagePresenter.js +21 -21
  235. package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
  236. package/lib/esm/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  237. package/lib/esm/appui-abstract/notification/MessageSeverity.js +20 -20
  238. package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
  239. package/lib/esm/appui-abstract/properties/Description.d.ts +127 -127
  240. package/lib/esm/appui-abstract/properties/Description.js +192 -192
  241. package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
  242. package/lib/esm/appui-abstract/properties/EditorParams.d.ts +260 -260
  243. package/lib/esm/appui-abstract/properties/EditorParams.d.ts.map +1 -1
  244. package/lib/esm/appui-abstract/properties/EditorParams.js +97 -97
  245. package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
  246. package/lib/esm/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  247. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js +8 -8
  248. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  249. package/lib/esm/appui-abstract/properties/Record.d.ts +57 -57
  250. package/lib/esm/appui-abstract/properties/Record.js +74 -74
  251. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  252. package/lib/esm/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  253. package/lib/esm/appui-abstract/properties/StandardEditorNames.js +27 -27
  254. package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  255. package/lib/esm/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  256. package/lib/esm/appui-abstract/properties/StandardTypeNames.js +36 -36
  257. package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  258. package/lib/esm/appui-abstract/properties/Value.d.ts +49 -49
  259. package/lib/esm/appui-abstract/properties/Value.d.ts.map +1 -1
  260. package/lib/esm/appui-abstract/properties/Value.js +17 -17
  261. package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
  262. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
  263. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +44 -44
  264. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  265. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +128 -128
  266. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  267. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +81 -80
  268. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
  269. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
  270. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +131 -131
  271. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  272. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +121 -121
  273. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  274. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +61 -60
  275. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  276. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  277. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +231 -231
  278. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  279. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  280. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +48 -47
  281. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  282. package/lib/esm/appui-abstract/utils/PointProps.d.ts +10 -10
  283. package/lib/esm/appui-abstract/utils/PointProps.js +8 -8
  284. package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
  285. package/lib/esm/appui-abstract/utils/UiError.d.ts +12 -12
  286. package/lib/esm/appui-abstract/utils/UiError.js +18 -18
  287. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  288. package/lib/esm/appui-abstract/utils/UiEvent.d.ts +9 -9
  289. package/lib/esm/appui-abstract/utils/UiEvent.js +13 -13
  290. package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
  291. package/lib/esm/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  292. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +126 -126
  293. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  294. package/lib/esm/appui-abstract/utils/callbacks.d.ts +20 -20
  295. package/lib/esm/appui-abstract/utils/callbacks.d.ts.map +1 -1
  296. package/lib/esm/appui-abstract/utils/callbacks.js +8 -8
  297. package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
  298. package/lib/esm/appui-abstract/utils/filter/charCode.d.ts +416 -416
  299. package/lib/esm/appui-abstract/utils/filter/charCode.js +5 -5
  300. package/lib/esm/appui-abstract/utils/filter/charCode.js.map +1 -1
  301. package/lib/esm/appui-abstract/utils/filter/filters.d.ts +98 -98
  302. package/lib/esm/appui-abstract/utils/filter/filters.d.ts.map +1 -1
  303. package/lib/esm/appui-abstract/utils/filter/filters.js +694 -694
  304. package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
  305. package/lib/esm/appui-abstract/utils/filter/map.d.ts +59 -59
  306. package/lib/esm/appui-abstract/utils/filter/map.js +397 -399
  307. package/lib/esm/appui-abstract/utils/filter/map.js.map +1 -1
  308. package/lib/esm/appui-abstract/utils/filter/strings.d.ts +20 -20
  309. package/lib/esm/appui-abstract/utils/filter/strings.js +70 -70
  310. package/lib/esm/appui-abstract/utils/filter/strings.js.map +1 -1
  311. package/lib/esm/appui-abstract/utils/isLetter.d.ts +9 -9
  312. package/lib/esm/appui-abstract/utils/isLetter.js +15 -15
  313. package/lib/esm/appui-abstract/utils/isLetter.js.map +1 -1
  314. package/lib/esm/appui-abstract/utils/misc.d.ts +11 -11
  315. package/lib/esm/appui-abstract/utils/misc.js +31 -31
  316. package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
  317. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -86
  318. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +8 -8
  319. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  320. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +36 -36
  321. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  322. package/lib/esm/appui-abstract/widget/StagePanel.js +43 -43
  323. package/lib/esm/appui-abstract/widget/StagePanel.js.map +1 -1
  324. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +19 -19
  325. package/lib/esm/appui-abstract/widget/WidgetState.js +24 -24
  326. package/lib/esm/appui-abstract/widget/WidgetState.js.map +1 -1
  327. package/lib/esm/appui-abstract.d.ts +103 -103
  328. package/lib/esm/appui-abstract.js +107 -107
  329. package/lib/esm/appui-abstract.js.map +1 -1
  330. package/package.json +7 -7
@@ -1,122 +1,122 @@
1
- /** @packageDocumentation
2
- * @module Toolbar
3
- */
4
- import { BadgeType } from "../items/BadgeType";
5
- import { ConditionalBooleanValue } from "../items/ConditionalBooleanValue";
6
- import { ConditionalStringValue } from "../items/ConditionalStringValue";
7
- import { ProvidedItem } from "../items/ProvidedItem";
8
- /** Used to specify the usage of the toolbar which determine the toolbar position.
9
- * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
10
- * @public
11
- */
12
- export declare enum ToolbarUsage {
13
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
14
- ContentManipulation = 0,
15
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
16
- ViewNavigation = 1
17
- }
18
- /** Used to specify the orientation of the toolbar.
19
- * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
20
- * @public
21
- */
22
- export declare enum ToolbarOrientation {
23
- /** Horizontal toolbar. */
24
- Horizontal = 0,
25
- /** Vertical toolbar. */
26
- Vertical = 1
27
- }
28
- /** Describes the data needed to insert a UI items into an existing set of UI items.
29
- * @public
30
- */
31
- export interface ToolbarItem extends ProvidedItem {
32
- /** can be used by application to store miscellaneous data. */
33
- readonly applicationData?: any;
34
- /** Describes badge. Renders no badge if not specified. */
35
- readonly badgeType?: BadgeType;
36
- /** Optional description */
37
- readonly description?: string | ConditionalStringValue;
38
- /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
39
- readonly id: string;
40
- /** optional data to used by item implementor. */
41
- readonly internalData?: Map<string, any>;
42
- /** Defines if the item is active (shown with an active stripe/bar). */
43
- readonly isActive?: boolean;
44
- /** Describes if the item is visible or hidden. The default is for the item to be visible. */
45
- readonly isHidden?: boolean | ConditionalBooleanValue;
46
- /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
47
- readonly isDisabled?: boolean | ConditionalBooleanValue;
48
- /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars
49
- * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars
50
- * the icon is usually changed to denote the state of a toggle.
51
- */
52
- readonly isPressed?: boolean;
53
- /** Specifies the item's grouping value. Items are sorted by group and then item priority. When
54
- * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This
55
- * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.
56
- */
57
- readonly groupPriority?: number;
58
- /** Priority within a toolbar or group. */
59
- readonly itemPriority: number;
60
- /** Optional parent tool group to add tool. */
61
- readonly parentToolGroupId?: string;
62
- }
63
- /** Describes the data needed to insert an action button into a toolbar.
64
- * @public
65
- */
66
- export interface ActionButton extends ToolbarItem {
67
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
68
- readonly icon: string | ConditionalStringValue;
69
- /** label, shown as tool tip on a button or an item label in a group. */
70
- readonly label: string | ConditionalStringValue;
71
- /** function to run when the button is pressed. */
72
- readonly execute: () => void;
73
- }
74
- /** Describes the data needed to insert a group button into a toolbar.
75
- * @public
76
- */
77
- export interface GroupButton extends ToolbarItem {
78
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
79
- readonly icon: string | ConditionalStringValue;
80
- /** label, shown as tool tip on group button or a group button label in a group panel. */
81
- readonly label: string | ConditionalStringValue;
82
- /** label shown as the title in at top of group panel. */
83
- readonly panelLabel?: string | ConditionalStringValue;
84
- /** children of the group */
85
- readonly items: ReadonlyArray<ActionButton | GroupButton>;
86
- }
87
- /** Describes the data needed to insert a custom button into a toolbar.
88
- * @public
89
- */
90
- export interface CustomButtonDefinition extends ToolbarItem {
91
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
92
- readonly icon?: string | ConditionalStringValue;
93
- /** label, shown as tool tip on group button or a group button label in a group panel. */
94
- readonly label?: string | ConditionalStringValue;
95
- /** parameter that marks data as being a custom definition. */
96
- readonly isCustom: true;
97
- }
98
- /** Any Button Type that can be inserted into a toolbar.
99
- * @public
100
- */
101
- export declare type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;
102
- /** Type for Toolbar Item Id
103
- * @deprecated in 3.6.
104
- * @public
105
- */
106
- export declare type ToolbarItemId = CommonToolbarItem["id"];
107
- /** Helper class to create Abstract StatusBar Item definitions.
108
- * @public
109
- */
110
- export declare class ToolbarItemUtilities {
111
- /** Creates an Action Button */
112
- static createActionButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton> | undefined) => ActionButton;
113
- /** Creates a Group button. */
114
- static createGroupButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton> | undefined) => GroupButton;
115
- /** ActionButton type guard. */
116
- static isActionButton(item: CommonToolbarItem): item is ActionButton;
117
- /** GroupButton type guard. */
118
- static isGroupButton(item: CommonToolbarItem): item is GroupButton;
119
- /** CustomButtonDefinition type guard. */
120
- static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition;
121
- }
1
+ /** @packageDocumentation
2
+ * @module Toolbar
3
+ */
4
+ import { BadgeType } from "../items/BadgeType";
5
+ import { ConditionalBooleanValue } from "../items/ConditionalBooleanValue";
6
+ import { ConditionalStringValue } from "../items/ConditionalStringValue";
7
+ import { ProvidedItem } from "../items/ProvidedItem";
8
+ /** Used to specify the usage of the toolbar which determine the toolbar position.
9
+ * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
10
+ * @public
11
+ */
12
+ export declare enum ToolbarUsage {
13
+ /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
14
+ ContentManipulation = 0,
15
+ /** Manipulate view/camera - in ninezone this is in top right of content area. */
16
+ ViewNavigation = 1
17
+ }
18
+ /** Used to specify the orientation of the toolbar.
19
+ * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
20
+ * @public
21
+ */
22
+ export declare enum ToolbarOrientation {
23
+ /** Horizontal toolbar. */
24
+ Horizontal = 0,
25
+ /** Vertical toolbar. */
26
+ Vertical = 1
27
+ }
28
+ /** Describes the data needed to insert a UI items into an existing set of UI items.
29
+ * @public
30
+ */
31
+ export interface ToolbarItem extends ProvidedItem {
32
+ /** can be used by application to store miscellaneous data. */
33
+ readonly applicationData?: any;
34
+ /** Describes badge. Renders no badge if not specified. */
35
+ readonly badgeType?: BadgeType;
36
+ /** Optional description */
37
+ readonly description?: string | ConditionalStringValue;
38
+ /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
39
+ readonly id: string;
40
+ /** optional data to used by item implementor. */
41
+ readonly internalData?: Map<string, any>;
42
+ /** Defines if the item is active (shown with an active stripe/bar). */
43
+ readonly isActive?: boolean;
44
+ /** Describes if the item is visible or hidden. The default is for the item to be visible. */
45
+ readonly isHidden?: boolean | ConditionalBooleanValue;
46
+ /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
47
+ readonly isDisabled?: boolean | ConditionalBooleanValue;
48
+ /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars
49
+ * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars
50
+ * the icon is usually changed to denote the state of a toggle.
51
+ */
52
+ readonly isPressed?: boolean;
53
+ /** Specifies the item's grouping value. Items are sorted by group and then item priority. When
54
+ * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This
55
+ * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.
56
+ */
57
+ readonly groupPriority?: number;
58
+ /** Priority within a toolbar or group. */
59
+ readonly itemPriority: number;
60
+ /** Optional parent tool group to add tool. */
61
+ readonly parentToolGroupId?: string;
62
+ }
63
+ /** Describes the data needed to insert an action button into a toolbar.
64
+ * @public
65
+ */
66
+ export interface ActionButton extends ToolbarItem {
67
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
68
+ readonly icon: string | ConditionalStringValue;
69
+ /** label, shown as tool tip on a button or an item label in a group. */
70
+ readonly label: string | ConditionalStringValue;
71
+ /** function to run when the button is pressed. */
72
+ readonly execute: () => void;
73
+ }
74
+ /** Describes the data needed to insert a group button into a toolbar.
75
+ * @public
76
+ */
77
+ export interface GroupButton extends ToolbarItem {
78
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
79
+ readonly icon: string | ConditionalStringValue;
80
+ /** label, shown as tool tip on group button or a group button label in a group panel. */
81
+ readonly label: string | ConditionalStringValue;
82
+ /** label shown as the title in at top of group panel. */
83
+ readonly panelLabel?: string | ConditionalStringValue;
84
+ /** children of the group */
85
+ readonly items: ReadonlyArray<ActionButton | GroupButton>;
86
+ }
87
+ /** Describes the data needed to insert a custom button into a toolbar.
88
+ * @public
89
+ */
90
+ export interface CustomButtonDefinition extends ToolbarItem {
91
+ /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
92
+ readonly icon?: string | ConditionalStringValue;
93
+ /** label, shown as tool tip on group button or a group button label in a group panel. */
94
+ readonly label?: string | ConditionalStringValue;
95
+ /** parameter that marks data as being a custom definition. */
96
+ readonly isCustom: true;
97
+ }
98
+ /** Any Button Type that can be inserted into a toolbar.
99
+ * @public
100
+ */
101
+ export type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;
102
+ /** Type for Toolbar Item Id
103
+ * @deprecated in 3.6. Please use `ToolbarItem["id"]` from @itwin/appui-react.
104
+ * @public
105
+ */
106
+ export type ToolbarItemId = CommonToolbarItem["id"];
107
+ /** Helper class to create Abstract StatusBar Item definitions.
108
+ * @public
109
+ */
110
+ export declare class ToolbarItemUtilities {
111
+ /** Creates an Action Button */
112
+ static createActionButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>) => ActionButton;
113
+ /** Creates a Group button. */
114
+ static createGroupButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>) => GroupButton;
115
+ /** ActionButton type guard. */
116
+ static isActionButton(item: CommonToolbarItem): item is ActionButton;
117
+ /** GroupButton type guard. */
118
+ static isGroupButton(item: CommonToolbarItem): item is GroupButton;
119
+ /** CustomButtonDefinition type guard. */
120
+ static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition;
121
+ }
122
122
  //# sourceMappingURL=ToolbarItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;;GAGG;AACH,oBAAY,YAAY;IACtB,4GAA4G;IAC5G,mBAAmB,IAAI;IACvB,iFAAiF;IACjF,cAAc,IAAI;CACnB;AAED;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,UAAU,IAAI;IACd,wBAAwB;IACxB,QAAQ,IA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;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,WAAW,GAAG,sBAAsB,CAAC;AAEpF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAEpD;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,+BAA+B;IAC/B,OAAc,kBAAkB,OAAQ,MAAM,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,SAAS,MAAM,GAAG,sBAAsB,WAAW,MAAM,IAAI,cAAc,QAAQ,YAAY,CAAC,KAAG,YAAY,CAKvN;IAEH,8BAA8B;IAC9B,OAAc,iBAAiB,OAAQ,MAAM,gBAAgB,MAAM,QAAQ,MAAM,GAAG,sBAAsB,SAAS,MAAM,GAAG,sBAAsB,SAAS,cAAc,YAAY,GAAG,WAAW,CAAC,cAAc,QAAQ,WAAW,CAAC,KAAG,WAAW,CAKjP;IAEH,+BAA+B;WACjB,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,YAAY;IAI3E,8BAA8B;WAChB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,WAAW;IAIzE,yCAAyC;WAC3B,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,sBAAsB;CAG1F"}
@@ -1,65 +1,65 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Toolbar
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ToolbarItemUtilities = exports.ToolbarOrientation = exports.ToolbarUsage = void 0;
11
- /** Used to specify the usage of the toolbar which determine the toolbar position.
12
- * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
13
- * @public
14
- */
15
- var ToolbarUsage;
16
- (function (ToolbarUsage) {
17
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
18
- ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
19
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
20
- ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
21
- })(ToolbarUsage = exports.ToolbarUsage || (exports.ToolbarUsage = {}));
22
- /** Used to specify the orientation of the toolbar.
23
- * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
24
- * @public
25
- */
26
- var ToolbarOrientation;
27
- (function (ToolbarOrientation) {
28
- /** Horizontal toolbar. */
29
- ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
30
- /** Vertical toolbar. */
31
- ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
32
- })(ToolbarOrientation = exports.ToolbarOrientation || (exports.ToolbarOrientation = {}));
33
- /** Helper class to create Abstract StatusBar Item definitions.
34
- * @public
35
- */
36
- class ToolbarItemUtilities {
37
- /** ActionButton type guard. */
38
- static isActionButton(item) {
39
- return item.execute !== undefined;
40
- }
41
- /** GroupButton type guard. */
42
- static isGroupButton(item) {
43
- return item.items !== undefined;
44
- }
45
- /** CustomButtonDefinition type guard. */
46
- static isCustomDefinition(item) {
47
- return !!item.isCustom;
48
- }
49
- }
50
- exports.ToolbarItemUtilities = ToolbarItemUtilities;
51
- /** Creates an Action Button */
52
- ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
53
- id, itemPriority,
54
- icon, label,
55
- execute,
56
- ...overrides,
57
- });
58
- /** Creates a Group button. */
59
- ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
60
- id, itemPriority,
61
- icon, label,
62
- items,
63
- ...overrides,
64
- });
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Toolbar
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ToolbarItemUtilities = exports.ToolbarOrientation = exports.ToolbarUsage = void 0;
11
+ /** Used to specify the usage of the toolbar which determine the toolbar position.
12
+ * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
13
+ * @public
14
+ */
15
+ var ToolbarUsage;
16
+ (function (ToolbarUsage) {
17
+ /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
18
+ ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
19
+ /** Manipulate view/camera - in ninezone this is in top right of content area. */
20
+ ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
21
+ })(ToolbarUsage = exports.ToolbarUsage || (exports.ToolbarUsage = {}));
22
+ /** Used to specify the orientation of the toolbar.
23
+ * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
24
+ * @public
25
+ */
26
+ var ToolbarOrientation;
27
+ (function (ToolbarOrientation) {
28
+ /** Horizontal toolbar. */
29
+ ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
30
+ /** Vertical toolbar. */
31
+ ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
32
+ })(ToolbarOrientation = exports.ToolbarOrientation || (exports.ToolbarOrientation = {}));
33
+ /** Helper class to create Abstract StatusBar Item definitions.
34
+ * @public
35
+ */
36
+ class ToolbarItemUtilities {
37
+ /** ActionButton type guard. */
38
+ static isActionButton(item) {
39
+ return item.execute !== undefined;
40
+ }
41
+ /** GroupButton type guard. */
42
+ static isGroupButton(item) {
43
+ return item.items !== undefined;
44
+ }
45
+ /** CustomButtonDefinition type guard. */
46
+ static isCustomDefinition(item) {
47
+ return !!item.isCustom;
48
+ }
49
+ }
50
+ /** Creates an Action Button */
51
+ ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
52
+ id, itemPriority,
53
+ icon, label,
54
+ execute,
55
+ ...overrides,
56
+ });
57
+ /** Creates a Group button. */
58
+ ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
59
+ id, itemPriority,
60
+ icon, label,
61
+ items,
62
+ ...overrides,
63
+ });
64
+ exports.ToolbarItemUtilities = ToolbarItemUtilities;
65
65
  //# sourceMappingURL=ToolbarItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAOH;;;GAGG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,4GAA4G;IAC5G,6EAAuB,CAAA;IACvB,iFAAiF;IACjF,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;;GAGG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAuFD;;GAEG;AACH,MAAa,oBAAoB;IAiB/B,+BAA+B;IACxB,MAAM,CAAC,cAAc,CAAC,IAAuB;QAClD,OAAQ,IAAqB,CAAC,OAAO,KAAK,SAAS,CAAC;IACtD,CAAC;IAED,8BAA8B;IACvB,MAAM,CAAC,aAAa,CAAC,IAAuB;QACjD,OAAQ,IAAoB,CAAC,KAAK,KAAK,SAAS,CAAC;IACnD,CAAC;IAED,yCAAyC;IAClC,MAAM,CAAC,kBAAkB,CAAC,IAAuB;QACtD,OAAO,CAAC,CAAE,IAA+B,CAAC,QAAQ,CAAC;IACrD,CAAC;;AA9BH,oDA+BC;AA9BC,+BAA+B;AACjB,uCAAkB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,OAAmB,EAAE,SAAiC,EAAgB,EAAE,CAAC,CAAC;IAC7N,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,OAAO;IACP,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,8BAA8B;AAChB,sCAAiB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,KAAgD,EAAE,SAAgC,EAAe,EAAE,CAAC,CAAC;IACvP,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,KAAK;IACL,GAAG,SAAS;CACb,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Toolbar\r\n */\r\n\r\nimport { BadgeType } from \"../items/BadgeType\";\r\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\r\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\r\nimport { ProvidedItem } from \"../items/ProvidedItem\";\r\n\r\n/** Used to specify the usage of the toolbar which determine the toolbar position.\r\n * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum ToolbarUsage {\r\n /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */\r\n ContentManipulation = 0,\r\n /** Manipulate view/camera - in ninezone this is in top right of content area. */\r\n ViewNavigation = 1,\r\n}\r\n\r\n/** Used to specify the orientation of the toolbar.\r\n * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.\r\n * @public\r\n */\r\nexport enum ToolbarOrientation {\r\n /** Horizontal toolbar. */\r\n Horizontal = 0,\r\n /** Vertical toolbar. */\r\n Vertical = 1,\r\n}\r\n\r\n/** Describes the data needed to insert a UI items into an existing set of UI items.\r\n * @public\r\n */\r\nexport interface ToolbarItem extends ProvidedItem { // eslint-disable-line deprecation/deprecation\r\n /** can be used by application to store miscellaneous data. */\r\n readonly applicationData?: any;\r\n /** Describes badge. Renders no badge if not specified. */\r\n readonly badgeType?: BadgeType;\r\n /** Optional description */\r\n readonly description?: string | ConditionalStringValue;\r\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\r\n readonly id: string;\r\n /** optional data to used by item implementor. */\r\n readonly internalData?: Map<string, any>;\r\n /** Defines if the item is active (shown with an active stripe/bar). */\r\n readonly isActive?: boolean;\r\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\r\n readonly isHidden?: boolean | ConditionalBooleanValue;\r\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\r\n readonly isDisabled?: boolean | ConditionalBooleanValue;\r\n /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars\r\n * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars\r\n * the icon is usually changed to denote the state of a toggle.\r\n */\r\n readonly isPressed?: boolean;\r\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\r\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\r\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\r\n */\r\n readonly groupPriority?: number;\r\n /** Priority within a toolbar or group. */\r\n readonly itemPriority: number;\r\n /** Optional parent tool group to add tool. */\r\n readonly parentToolGroupId?: string;\r\n}\r\n\r\n/** Describes the data needed to insert an action button into a toolbar.\r\n * @public\r\n */\r\nexport interface ActionButton extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon: string | ConditionalStringValue;\r\n /** label, shown as tool tip on a button or an item label in a group. */\r\n readonly label: string | ConditionalStringValue;\r\n /** function to run when the button is pressed. */\r\n readonly execute: () => void;\r\n}\r\n\r\n/** Describes the data needed to insert a group button into a toolbar.\r\n * @public\r\n */\r\nexport interface GroupButton extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon: string | ConditionalStringValue;\r\n /** label, shown as tool tip on group button or a group button label in a group panel. */\r\n readonly label: string | ConditionalStringValue;\r\n /** label shown as the title in at top of group panel. */\r\n readonly panelLabel?: string | ConditionalStringValue;\r\n /** children of the group */\r\n readonly items: ReadonlyArray<ActionButton | GroupButton>; // eslint-disable-line deprecation/deprecation\r\n}\r\n\r\n/** Describes the data needed to insert a custom button into a toolbar.\r\n * @public\r\n */\r\nexport interface CustomButtonDefinition extends ToolbarItem {\r\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\r\n readonly icon?: string | ConditionalStringValue;\r\n /** label, shown as tool tip on group button or a group button label in a group panel. */\r\n readonly label?: string | ConditionalStringValue;\r\n /** parameter that marks data as being a custom definition. */\r\n readonly isCustom: true;\r\n}\r\n\r\n/** Any Button Type that can be inserted into a toolbar.\r\n * @public\r\n */\r\nexport type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;\r\n\r\n/** Type for Toolbar Item Id\r\n * @deprecated in 3.6.\r\n * @public\r\n */\r\nexport type ToolbarItemId = CommonToolbarItem[\"id\"]; // eslint-disable-line deprecation/deprecation\r\n\r\n/** Helper class to create Abstract StatusBar Item definitions.\r\n * @public\r\n */\r\nexport class ToolbarItemUtilities {\r\n /** Creates an Action Button */\r\n public static createActionButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton => ({\r\n id, itemPriority,\r\n icon, label,\r\n execute,\r\n ...overrides,\r\n });\r\n\r\n /** Creates a Group button. */\r\n public static createGroupButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>): GroupButton => ({\r\n id, itemPriority,\r\n icon, label,\r\n items,\r\n ...overrides,\r\n });\r\n\r\n /** ActionButton type guard. */\r\n public static isActionButton(item: CommonToolbarItem): item is ActionButton {\r\n return (item as ActionButton).execute !== undefined;\r\n }\r\n\r\n /** GroupButton type guard. */\r\n public static isGroupButton(item: CommonToolbarItem): item is GroupButton {\r\n return (item as GroupButton).items !== undefined;\r\n }\r\n\r\n /** CustomButtonDefinition type guard. */\r\n public static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition {\r\n return !!(item as CustomButtonDefinition).isCustom;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAOH;;;GAGG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,4GAA4G;IAC5G,6EAAuB,CAAA;IACvB,iFAAiF;IACjF,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED;;;GAGG;AACH,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAuFD;;GAEG;AACH,MAAa,oBAAoB;IAiB/B,+BAA+B;IACxB,MAAM,CAAC,cAAc,CAAC,IAAuB;QAClD,OAAQ,IAAqB,CAAC,OAAO,KAAK,SAAS,CAAC;IACtD,CAAC;IAED,8BAA8B;IACvB,MAAM,CAAC,aAAa,CAAC,IAAuB;QACjD,OAAQ,IAAoB,CAAC,KAAK,KAAK,SAAS,CAAC;IACnD,CAAC;IAED,yCAAyC;IAClC,MAAM,CAAC,kBAAkB,CAAC,IAAuB;QACtD,OAAO,CAAC,CAAE,IAA+B,CAAC,QAAQ,CAAC;IACrD,CAAC;;AA7BD,+BAA+B;AACjB,uCAAkB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,OAAmB,EAAE,SAAiC,EAAgB,EAAE,CAAC,CAAC;IAC7N,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,OAAO;IACP,GAAG,SAAS;CACb,CAAC,CAAC;AAEH,8BAA8B;AAChB,sCAAiB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,KAAgD,EAAE,SAAgC,EAAe,EAAE,CAAC,CAAC;IACvP,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,KAAK;IACX,KAAK;IACL,GAAG,SAAS;CACb,CAAC,CAAC;AAfQ,oDAAoB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport { BadgeType } from \"../items/BadgeType\";\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\nimport { ProvidedItem } from \"../items/ProvidedItem\";\n\n/** Used to specify the usage of the toolbar which determine the toolbar position.\n * @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.\n * @public\n */\nexport enum ToolbarUsage {\n /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */\n ContentManipulation = 0,\n /** Manipulate view/camera - in ninezone this is in top right of content area. */\n ViewNavigation = 1,\n}\n\n/** Used to specify the orientation of the toolbar.\n * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.\n * @public\n */\nexport enum ToolbarOrientation {\n /** Horizontal toolbar. */\n Horizontal = 0,\n /** Vertical toolbar. */\n Vertical = 1,\n}\n\n/** Describes the data needed to insert a UI items into an existing set of UI items.\n * @public\n */\nexport interface ToolbarItem extends ProvidedItem { // eslint-disable-line deprecation/deprecation\n /** can be used by application to store miscellaneous data. */\n readonly applicationData?: any;\n /** Describes badge. Renders no badge if not specified. */\n readonly badgeType?: BadgeType;\n /** Optional description */\n readonly description?: string | ConditionalStringValue;\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\n readonly id: string;\n /** optional data to used by item implementor. */\n readonly internalData?: Map<string, any>;\n /** Defines if the item is active (shown with an active stripe/bar). */\n readonly isActive?: boolean;\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\n readonly isHidden?: boolean | ConditionalBooleanValue;\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\n readonly isDisabled?: boolean | ConditionalBooleanValue;\n /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars\n * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars\n * the icon is usually changed to denote the state of a toggle.\n */\n readonly isPressed?: boolean;\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\n */\n readonly groupPriority?: number;\n /** Priority within a toolbar or group. */\n readonly itemPriority: number;\n /** Optional parent tool group to add tool. */\n readonly parentToolGroupId?: string;\n}\n\n/** Describes the data needed to insert an action button into a toolbar.\n * @public\n */\nexport interface ActionButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on a button or an item label in a group. */\n readonly label: string | ConditionalStringValue;\n /** function to run when the button is pressed. */\n readonly execute: () => void;\n}\n\n/** Describes the data needed to insert a group button into a toolbar.\n * @public\n */\nexport interface GroupButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label: string | ConditionalStringValue;\n /** label shown as the title in at top of group panel. */\n readonly panelLabel?: string | ConditionalStringValue;\n /** children of the group */\n readonly items: ReadonlyArray<ActionButton | GroupButton>; // eslint-disable-line deprecation/deprecation\n}\n\n/** Describes the data needed to insert a custom button into a toolbar.\n * @public\n */\nexport interface CustomButtonDefinition extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon?: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label?: string | ConditionalStringValue;\n /** parameter that marks data as being a custom definition. */\n readonly isCustom: true;\n}\n\n/** Any Button Type that can be inserted into a toolbar.\n * @public\n */\nexport type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;\n\n/** Type for Toolbar Item Id\n * @deprecated in 3.6. Please use `ToolbarItem[\"id\"]` from @itwin/appui-react.\n * @public\n */\nexport type ToolbarItemId = CommonToolbarItem[\"id\"]; // eslint-disable-line deprecation/deprecation\n\n/** Helper class to create Abstract StatusBar Item definitions.\n * @public\n */\nexport class ToolbarItemUtilities {\n /** Creates an Action Button */\n public static createActionButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton => ({\n id, itemPriority,\n icon, label,\n execute,\n ...overrides,\n });\n\n /** Creates a Group button. */\n public static createGroupButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>): GroupButton => ({\n id, itemPriority,\n icon, label,\n items,\n ...overrides,\n });\n\n /** ActionButton type guard. */\n public static isActionButton(item: CommonToolbarItem): item is ActionButton {\n return (item as ActionButton).execute !== undefined;\n }\n\n /** GroupButton type guard. */\n public static isGroupButton(item: CommonToolbarItem): item is GroupButton {\n return (item as GroupButton).items !== undefined;\n }\n\n /** CustomButtonDefinition type guard. */\n public static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition {\n return !!(item as CustomButtonDefinition).isCustom;\n }\n}\n"]}
@@ -1,46 +1,46 @@
1
- /** @packageDocumentation
2
- * @module Toolbar
3
- */
4
- import { BeEvent } from "@itwin/core-bentley";
5
- import { CommonToolbarItem, ToolbarItemId } from "./ToolbarItem";
6
- /** Arguments of [[ToolbarItemsManager.onChanged]] event.
7
- * @internal
8
- */
9
- export interface ToolbarItemsChangedArgs {
10
- readonly items: ReadonlyArray<CommonToolbarItem>;
11
- }
12
- /**
13
- * Controls status bar items.
14
- * @internal
15
- */
16
- export declare class ToolbarItemsManager {
17
- protected _items: ReadonlyArray<CommonToolbarItem>;
18
- constructor(items?: ReadonlyArray<CommonToolbarItem>);
19
- /** Event raised when Toolbar items are changed.
20
- * @internal
21
- */
22
- readonly onItemsChanged: BeEvent<(args: ToolbarItemsChangedArgs) => void>;
23
- private loadItemsInternal;
24
- /** load items but do not fire onItemsChanged
25
- * @internal
26
- */
27
- loadItems(items: ReadonlyArray<CommonToolbarItem>): void;
28
- /** Get an array of the Toolbar items */
29
- get items(): ReadonlyArray<CommonToolbarItem>;
30
- set items(items: ReadonlyArray<CommonToolbarItem>);
31
- add(itemOrItems: CommonToolbarItem | ReadonlyArray<CommonToolbarItem>): void;
32
- /** Remove Toolbar items based on id */
33
- remove(itemIdOrItemIds: ToolbarItemId | ReadonlyArray<ToolbarItemId>): void;
34
- /** @internal */
35
- removeAll(): void;
36
- private static gatherSyncIds;
37
- static getSyncIdsOfInterest(items: readonly CommonToolbarItem[]): string[];
38
- private static refreshChildItems;
39
- private internalRefreshAffectedItems;
40
- refreshAffectedItems(eventIds: Set<string>): void;
41
- private static isActiveToolIdRefreshRequiredForChildren;
42
- private isActiveToolIdRefreshRequired;
43
- private static refreshActiveToolIdInChildItems;
44
- setActiveToolId(toolId: string): void;
45
- }
1
+ /** @packageDocumentation
2
+ * @module Toolbar
3
+ */
4
+ import { BeEvent } from "@itwin/core-bentley";
5
+ import { CommonToolbarItem, ToolbarItemId } from "./ToolbarItem";
6
+ /** Arguments of [[ToolbarItemsManager.onChanged]] event.
7
+ * @internal
8
+ */
9
+ export interface ToolbarItemsChangedArgs {
10
+ readonly items: ReadonlyArray<CommonToolbarItem>;
11
+ }
12
+ /**
13
+ * Controls status bar items.
14
+ * @internal
15
+ */
16
+ export declare class ToolbarItemsManager {
17
+ protected _items: ReadonlyArray<CommonToolbarItem>;
18
+ constructor(items?: ReadonlyArray<CommonToolbarItem>);
19
+ /** Event raised when Toolbar items are changed.
20
+ * @internal
21
+ */
22
+ readonly onItemsChanged: BeEvent<(args: ToolbarItemsChangedArgs) => void>;
23
+ private loadItemsInternal;
24
+ /** load items but do not fire onItemsChanged
25
+ * @internal
26
+ */
27
+ loadItems(items: ReadonlyArray<CommonToolbarItem>): void;
28
+ /** Get an array of the Toolbar items */
29
+ get items(): ReadonlyArray<CommonToolbarItem>;
30
+ set items(items: ReadonlyArray<CommonToolbarItem>);
31
+ add(itemOrItems: CommonToolbarItem | ReadonlyArray<CommonToolbarItem>): void;
32
+ /** Remove Toolbar items based on id */
33
+ remove(itemIdOrItemIds: ToolbarItemId | ReadonlyArray<ToolbarItemId>): void;
34
+ /** @internal */
35
+ removeAll(): void;
36
+ private static gatherSyncIds;
37
+ static getSyncIdsOfInterest(items: readonly CommonToolbarItem[]): string[];
38
+ private static refreshChildItems;
39
+ private internalRefreshAffectedItems;
40
+ refreshAffectedItems(eventIds: Set<string>): void;
41
+ private static isActiveToolIdRefreshRequiredForChildren;
42
+ private isActiveToolIdRefreshRequired;
43
+ private static refreshActiveToolIdInChildItems;
44
+ setActiveToolId(toolId: string): void;
45
+ }
46
46
  //# sourceMappingURL=ToolbarItemsManager.d.ts.map