@itwin/appui-abstract 3.6.0-dev.60 → 3.6.0-dev.65

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 (336) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  3. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +79 -79
  4. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  5. package/lib/cjs/appui-abstract/UiAdmin.d.ts +221 -221
  6. package/lib/cjs/appui-abstract/UiAdmin.js +224 -224
  7. package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
  8. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +113 -110
  9. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +1 -1
  10. package/lib/cjs/appui-abstract/UiItemsManager.js +199 -199
  11. package/lib/cjs/appui-abstract/UiItemsManager.js.map +1 -1
  12. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +29 -27
  13. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +1 -1
  14. package/lib/cjs/appui-abstract/UiItemsProvider.js +9 -10
  15. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +1 -1
  16. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +91 -83
  17. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  18. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +70 -64
  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.d.ts.map +1 -1
  22. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +133 -133
  23. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  24. package/lib/cjs/appui-abstract/common/KeyboardKey.d.ts +51 -51
  25. package/lib/cjs/appui-abstract/common/KeyboardKey.js +63 -63
  26. package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
  27. package/lib/cjs/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  28. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js +9 -9
  29. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  30. package/lib/cjs/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  31. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +108 -108
  32. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  33. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  34. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +67 -67
  35. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  36. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  37. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +66 -66
  38. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  39. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  40. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +175 -175
  41. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  42. package/lib/cjs/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  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 -10
  61. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +1 -1
  62. package/lib/cjs/appui-abstract/items/ProvidedItem.js +9 -9
  63. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +1 -1
  64. package/lib/cjs/appui-abstract/items/RelativePosition.d.ts +18 -18
  65. package/lib/cjs/appui-abstract/items/RelativePosition.js +26 -26
  66. package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
  67. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +16 -15
  68. package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +1 -1
  69. package/lib/cjs/appui-abstract/items/StageUsage.js +24 -23
  70. package/lib/cjs/appui-abstract/items/StageUsage.js.map +1 -1
  71. package/lib/cjs/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  72. package/lib/cjs/appui-abstract/notification/MessagePresenter.js +24 -24
  73. package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
  74. package/lib/cjs/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  75. package/lib/cjs/appui-abstract/notification/MessageSeverity.js +23 -23
  76. package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
  77. package/lib/cjs/appui-abstract/properties/Description.d.ts +127 -127
  78. package/lib/cjs/appui-abstract/properties/Description.js +196 -196
  79. package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
  80. package/lib/cjs/appui-abstract/properties/EditorParams.d.ts +260 -260
  81. package/lib/cjs/appui-abstract/properties/EditorParams.js +106 -106
  82. package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
  83. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  84. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js +9 -9
  85. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  86. package/lib/cjs/appui-abstract/properties/Record.d.ts +57 -57
  87. package/lib/cjs/appui-abstract/properties/Record.js +78 -78
  88. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  89. package/lib/cjs/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  90. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js +30 -30
  91. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  92. package/lib/cjs/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  93. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js +39 -39
  94. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  95. package/lib/cjs/appui-abstract/properties/Value.d.ts +49 -49
  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 -116
  102. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  103. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +87 -81
  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.d.ts.map +1 -1
  107. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +135 -135
  108. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  109. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +121 -118
  110. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  111. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +64 -62
  112. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  113. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  114. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +1 -1
  115. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +235 -235
  116. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  117. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  118. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +51 -51
  119. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  120. package/lib/cjs/appui-abstract/utils/PointProps.d.ts +10 -10
  121. package/lib/cjs/appui-abstract/utils/PointProps.js +9 -9
  122. package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
  123. package/lib/cjs/appui-abstract/utils/UiError.d.ts +12 -12
  124. package/lib/cjs/appui-abstract/utils/UiError.js +22 -22
  125. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  126. package/lib/cjs/appui-abstract/utils/UiEvent.d.ts +9 -9
  127. package/lib/cjs/appui-abstract/utils/UiEvent.js +17 -17
  128. package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
  129. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  130. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +131 -131
  131. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  132. package/lib/cjs/appui-abstract/utils/callbacks.d.ts +20 -20
  133. package/lib/cjs/appui-abstract/utils/callbacks.js +9 -9
  134. package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
  135. package/lib/cjs/appui-abstract/utils/filter/charCode.d.ts +416 -416
  136. package/lib/cjs/appui-abstract/utils/filter/charCode.js +6 -6
  137. package/lib/cjs/appui-abstract/utils/filter/charCode.js.map +1 -1
  138. package/lib/cjs/appui-abstract/utils/filter/filters.d.ts +98 -98
  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 +404 -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 -85
  154. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +1 -1
  155. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +9 -9
  156. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  157. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +36 -32
  158. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  159. package/lib/cjs/appui-abstract/widget/StagePanel.js +46 -42
  160. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +1 -1
  161. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +19 -18
  162. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +1 -1
  163. package/lib/cjs/appui-abstract/widget/WidgetState.js +27 -26
  164. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +1 -1
  165. package/lib/cjs/appui-abstract.d.ts +103 -105
  166. package/lib/cjs/appui-abstract.d.ts.map +1 -1
  167. package/lib/cjs/appui-abstract.js +119 -121
  168. package/lib/cjs/appui-abstract.js.map +1 -1
  169. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
  170. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +75 -75
  171. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +1 -1
  172. package/lib/esm/appui-abstract/UiAdmin.d.ts +221 -221
  173. package/lib/esm/appui-abstract/UiAdmin.js +219 -219
  174. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  175. package/lib/esm/appui-abstract/UiItemsManager.d.ts +113 -110
  176. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +1 -1
  177. package/lib/esm/appui-abstract/UiItemsManager.js +195 -195
  178. package/lib/esm/appui-abstract/UiItemsManager.js.map +1 -1
  179. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +29 -27
  180. package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +1 -1
  181. package/lib/esm/appui-abstract/UiItemsProvider.js +8 -9
  182. package/lib/esm/appui-abstract/UiItemsProvider.js.map +1 -1
  183. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +91 -83
  184. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +1 -1
  185. package/lib/esm/appui-abstract/backstage/BackstageItem.js +64 -58
  186. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +1 -1
  187. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
  188. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +1 -1
  189. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +129 -129
  190. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
  191. package/lib/esm/appui-abstract/common/KeyboardKey.d.ts +51 -51
  192. package/lib/esm/appui-abstract/common/KeyboardKey.js +59 -59
  193. package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
  194. package/lib/esm/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
  195. package/lib/esm/appui-abstract/content/ContentLayoutProps.js +8 -8
  196. package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  197. package/lib/esm/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
  198. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +104 -104
  199. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  200. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +76 -76
  201. package/lib/esm/appui-abstract/dialogs/DialogItem.js +63 -63
  202. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  203. package/lib/esm/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
  204. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +61 -61
  205. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  206. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
  207. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +170 -170
  208. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  209. package/lib/esm/appui-abstract/items/AbstractItemProps.d.ts +53 -53
  210. package/lib/esm/appui-abstract/items/AbstractItemProps.js +8 -8
  211. package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
  212. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
  213. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js +8 -8
  214. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  215. package/lib/esm/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
  216. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js +8 -8
  217. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  218. package/lib/esm/appui-abstract/items/BadgeType.d.ts +14 -14
  219. package/lib/esm/appui-abstract/items/BadgeType.js +19 -19
  220. package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
  221. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
  222. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +56 -56
  223. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  224. package/lib/esm/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
  225. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +58 -58
  226. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  227. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +11 -10
  228. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +1 -1
  229. package/lib/esm/appui-abstract/items/ProvidedItem.js +8 -8
  230. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +1 -1
  231. package/lib/esm/appui-abstract/items/RelativePosition.d.ts +18 -18
  232. package/lib/esm/appui-abstract/items/RelativePosition.js +23 -23
  233. package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
  234. package/lib/esm/appui-abstract/items/StageUsage.d.ts +16 -15
  235. package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +1 -1
  236. package/lib/esm/appui-abstract/items/StageUsage.js +21 -20
  237. package/lib/esm/appui-abstract/items/StageUsage.js.map +1 -1
  238. package/lib/esm/appui-abstract/notification/MessagePresenter.d.ts +42 -42
  239. package/lib/esm/appui-abstract/notification/MessagePresenter.js +21 -21
  240. package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
  241. package/lib/esm/appui-abstract/notification/MessageSeverity.d.ts +15 -15
  242. package/lib/esm/appui-abstract/notification/MessageSeverity.js +20 -20
  243. package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
  244. package/lib/esm/appui-abstract/properties/Description.d.ts +127 -127
  245. package/lib/esm/appui-abstract/properties/Description.js +192 -192
  246. package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
  247. package/lib/esm/appui-abstract/properties/EditorParams.d.ts +260 -260
  248. package/lib/esm/appui-abstract/properties/EditorParams.js +97 -97
  249. package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
  250. package/lib/esm/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
  251. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js +8 -8
  252. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  253. package/lib/esm/appui-abstract/properties/Record.d.ts +57 -57
  254. package/lib/esm/appui-abstract/properties/Record.js +74 -74
  255. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  256. package/lib/esm/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
  257. package/lib/esm/appui-abstract/properties/StandardEditorNames.js +27 -27
  258. package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  259. package/lib/esm/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
  260. package/lib/esm/appui-abstract/properties/StandardTypeNames.js +36 -36
  261. package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  262. package/lib/esm/appui-abstract/properties/Value.d.ts +49 -49
  263. package/lib/esm/appui-abstract/properties/Value.js +17 -17
  264. package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
  265. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
  266. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +44 -44
  267. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  268. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +128 -116
  269. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +1 -1
  270. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +80 -74
  271. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
  272. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
  273. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +1 -1
  274. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +131 -131
  275. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
  276. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +121 -118
  277. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  278. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +60 -58
  279. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  280. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
  281. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +1 -1
  282. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +231 -231
  283. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
  284. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
  285. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +47 -47
  286. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  287. package/lib/esm/appui-abstract/utils/PointProps.d.ts +10 -10
  288. package/lib/esm/appui-abstract/utils/PointProps.js +8 -8
  289. package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
  290. package/lib/esm/appui-abstract/utils/UiError.d.ts +12 -12
  291. package/lib/esm/appui-abstract/utils/UiError.js +18 -18
  292. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  293. package/lib/esm/appui-abstract/utils/UiEvent.d.ts +9 -9
  294. package/lib/esm/appui-abstract/utils/UiEvent.js +13 -13
  295. package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
  296. package/lib/esm/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
  297. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +126 -126
  298. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  299. package/lib/esm/appui-abstract/utils/callbacks.d.ts +20 -20
  300. package/lib/esm/appui-abstract/utils/callbacks.js +8 -8
  301. package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
  302. package/lib/esm/appui-abstract/utils/filter/charCode.d.ts +416 -416
  303. package/lib/esm/appui-abstract/utils/filter/charCode.js +5 -5
  304. package/lib/esm/appui-abstract/utils/filter/charCode.js.map +1 -1
  305. package/lib/esm/appui-abstract/utils/filter/filters.d.ts +98 -98
  306. package/lib/esm/appui-abstract/utils/filter/filters.js +694 -694
  307. package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
  308. package/lib/esm/appui-abstract/utils/filter/map.d.ts +59 -59
  309. package/lib/esm/appui-abstract/utils/filter/map.js +399 -399
  310. package/lib/esm/appui-abstract/utils/filter/map.js.map +1 -1
  311. package/lib/esm/appui-abstract/utils/filter/strings.d.ts +20 -20
  312. package/lib/esm/appui-abstract/utils/filter/strings.js +70 -70
  313. package/lib/esm/appui-abstract/utils/filter/strings.js.map +1 -1
  314. package/lib/esm/appui-abstract/utils/isLetter.d.ts +9 -9
  315. package/lib/esm/appui-abstract/utils/isLetter.js +15 -15
  316. package/lib/esm/appui-abstract/utils/isLetter.js.map +1 -1
  317. package/lib/esm/appui-abstract/utils/misc.d.ts +11 -11
  318. package/lib/esm/appui-abstract/utils/misc.js +31 -31
  319. package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
  320. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -85
  321. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +1 -1
  322. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +8 -8
  323. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
  324. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +36 -32
  325. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +1 -1
  326. package/lib/esm/appui-abstract/widget/StagePanel.js +43 -39
  327. package/lib/esm/appui-abstract/widget/StagePanel.js.map +1 -1
  328. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +19 -18
  329. package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +1 -1
  330. package/lib/esm/appui-abstract/widget/WidgetState.js +24 -23
  331. package/lib/esm/appui-abstract/widget/WidgetState.js.map +1 -1
  332. package/lib/esm/appui-abstract.d.ts +103 -105
  333. package/lib/esm/appui-abstract.d.ts.map +1 -1
  334. package/lib/esm/appui-abstract.js +107 -109
  335. package/lib/esm/appui-abstract.js.map +1 -1
  336. package/package.json +16 -6
@@ -1,119 +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
- * @public
10
- */
11
- export declare enum ToolbarUsage {
12
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
13
- ContentManipulation = 0,
14
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
15
- ViewNavigation = 1
16
- }
17
- /** Used to specify the orientation of the toolbar.
18
- * @public
19
- */
20
- export declare enum ToolbarOrientation {
21
- /** Horizontal toolbar. */
22
- Horizontal = 0,
23
- /** Vertical toolbar. */
24
- Vertical = 1
25
- }
26
- /** Describes the data needed to insert a UI items into an existing set of UI items.
27
- * @public
28
- */
29
- export interface ToolbarItem extends ProvidedItem {
30
- /** can be used by application to store miscellaneous data. */
31
- readonly applicationData?: any;
32
- /** Describes badge. Renders no badge if not specified. */
33
- readonly badgeType?: BadgeType;
34
- /** Optional description */
35
- readonly description?: string | ConditionalStringValue;
36
- /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */
37
- readonly id: string;
38
- /** optional data to used by item implementor. */
39
- readonly internalData?: Map<string, any>;
40
- /** Defines if the item is active (shown with an active stripe/bar). */
41
- readonly isActive?: boolean;
42
- /** Describes if the item is visible or hidden. The default is for the item to be visible. */
43
- readonly isHidden?: boolean | ConditionalBooleanValue;
44
- /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */
45
- readonly isDisabled?: boolean | ConditionalBooleanValue;
46
- /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars
47
- * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars
48
- * the icon is usually changed to denote the state of a toggle.
49
- */
50
- readonly isPressed?: boolean;
51
- /** Specifies the item's grouping value. Items are sorted by group and then item priority. When
52
- * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This
53
- * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.
54
- */
55
- readonly groupPriority?: number;
56
- /** Priority within a toolbar or group. */
57
- readonly itemPriority: number;
58
- /** Optional parent tool group to add tool. */
59
- readonly parentToolGroupId?: string;
60
- }
61
- /** Describes the data needed to insert an action button into a toolbar.
62
- * @public
63
- */
64
- export interface ActionButton extends ToolbarItem {
65
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
66
- readonly icon: string | ConditionalStringValue;
67
- /** label, shown as tool tip on a button or an item label in a group. */
68
- readonly label: string | ConditionalStringValue;
69
- /** function to run when the button is pressed. */
70
- readonly execute: () => void;
71
- }
72
- /** Describes the data needed to insert a group button into a toolbar.
73
- * @public
74
- */
75
- export interface GroupButton extends ToolbarItem {
76
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
77
- readonly icon: string | ConditionalStringValue;
78
- /** label, shown as tool tip on group button or a group button label in a group panel. */
79
- readonly label: string | ConditionalStringValue;
80
- /** label shown as the title in at top of group panel. */
81
- readonly panelLabel?: string | ConditionalStringValue;
82
- /** children of the group */
83
- readonly items: ReadonlyArray<ActionButton | GroupButton>;
84
- }
85
- /** Describes the data needed to insert a custom button into a toolbar.
86
- * @public
87
- */
88
- export interface CustomButtonDefinition extends ToolbarItem {
89
- /** Name of icon WebFont entry or if specifying an imported SVG symbol use "webSvg:" prefix to imported symbol Id. */
90
- readonly icon?: string | ConditionalStringValue;
91
- /** label, shown as tool tip on group button or a group button label in a group panel. */
92
- readonly label?: string | ConditionalStringValue;
93
- /** parameter that marks data as being a custom definition. */
94
- readonly isCustom: true;
95
- }
96
- /** Any Button Type that can be inserted into a toolbar.
97
- * @public
98
- */
99
- export declare type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;
100
- /** Type for Toolbar Item Id
101
- * @public
102
- */
103
- export declare type ToolbarItemId = CommonToolbarItem["id"];
104
- /** Helper class to create Abstract StatusBar Item definitions.
105
- * @public
106
- */
107
- export declare class ToolbarItemUtilities {
108
- /** Creates an Action Button */
109
- static createActionButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton> | undefined) => ActionButton;
110
- /** Creates a Group button */
111
- static createGroupButton: (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton> | undefined) => GroupButton;
112
- /** ActionButton type guard. */
113
- static isActionButton(item: CommonToolbarItem): item is ActionButton;
114
- /** GroupButton type guard. */
115
- static isGroupButton(item: CommonToolbarItem): item is GroupButton;
116
- /** CustomButtonDefinition type guard. */
117
- static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition;
118
- }
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
+ }
119
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;;GAEG;A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AAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IAChD,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACjD,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,oBAAY,iBAAiB,GAAG,YAAY,GAAG,WAAW,GAAG,sBAAsB,CAAC;AAEpF;;;GAGG;AACH,oBAAY,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,oDAAsC,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,mDAAqC,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,59 +1,61 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Toolbar
7
- */
8
- /** Used to specify the usage of the toolbar which determine the toolbar position.
9
- * @public
10
- */
11
- export var ToolbarUsage;
12
- (function (ToolbarUsage) {
13
- /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
14
- ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
15
- /** Manipulate view/camera - in ninezone this is in top right of content area. */
16
- ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
17
- })(ToolbarUsage || (ToolbarUsage = {}));
18
- /** Used to specify the orientation of the toolbar.
19
- * @public
20
- */
21
- export var ToolbarOrientation;
22
- (function (ToolbarOrientation) {
23
- /** Horizontal toolbar. */
24
- ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
25
- /** Vertical toolbar. */
26
- ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
27
- })(ToolbarOrientation || (ToolbarOrientation = {}));
28
- /** Helper class to create Abstract StatusBar Item definitions.
29
- * @public
30
- */
31
- export class ToolbarItemUtilities {
32
- /** ActionButton type guard. */
33
- static isActionButton(item) {
34
- return item.execute !== undefined;
35
- }
36
- /** GroupButton type guard. */
37
- static isGroupButton(item) {
38
- return item.items !== undefined;
39
- }
40
- /** CustomButtonDefinition type guard. */
41
- static isCustomDefinition(item) {
42
- return !!item.isCustom;
43
- }
44
- }
45
- /** Creates an Action Button */
46
- ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
47
- id, itemPriority,
48
- icon, label,
49
- execute,
50
- ...overrides,
51
- });
52
- /** Creates a Group button */
53
- ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
54
- id, itemPriority,
55
- icon, label,
56
- items,
57
- ...overrides,
58
- });
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module Toolbar
7
+ */
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 var ToolbarUsage;
13
+ (function (ToolbarUsage) {
14
+ /** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
15
+ ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
16
+ /** Manipulate view/camera - in ninezone this is in top right of content area. */
17
+ ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
18
+ })(ToolbarUsage || (ToolbarUsage = {}));
19
+ /** Used to specify the orientation of the toolbar.
20
+ * @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
21
+ * @public
22
+ */
23
+ export var ToolbarOrientation;
24
+ (function (ToolbarOrientation) {
25
+ /** Horizontal toolbar. */
26
+ ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
27
+ /** Vertical toolbar. */
28
+ ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
29
+ })(ToolbarOrientation || (ToolbarOrientation = {}));
30
+ /** Helper class to create Abstract StatusBar Item definitions.
31
+ * @public
32
+ */
33
+ export class ToolbarItemUtilities {
34
+ /** ActionButton type guard. */
35
+ static isActionButton(item) {
36
+ return item.execute !== undefined;
37
+ }
38
+ /** GroupButton type guard. */
39
+ static isGroupButton(item) {
40
+ return item.items !== undefined;
41
+ }
42
+ /** CustomButtonDefinition type guard. */
43
+ static isCustomDefinition(item) {
44
+ return !!item.isCustom;
45
+ }
46
+ }
47
+ /** Creates an Action Button */
48
+ ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
49
+ id, itemPriority,
50
+ icon, label,
51
+ execute,
52
+ ...overrides,
53
+ });
54
+ /** Creates a Group button. */
55
+ ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
56
+ id, itemPriority,
57
+ icon, label,
58
+ items,
59
+ ...overrides,
60
+ });
59
61
  //# sourceMappingURL=ToolbarItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"To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AY;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 * @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 * @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 {\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>;\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 * @public\r\n */\r\nexport type ToolbarItemId = CommonToolbarItem[\"id\"];\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,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,4GAA4G;IAC5G,6EAAuB,CAAA;IACvB,iFAAiF;IACjF,mEAAkB,CAAA;AACpB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,0BAA0B;IAC1B,uEAAc,CAAA;IACd,wBAAwB;IACxB,mEAAY,CAAA;AACd,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAuFD;;GAEG;AACH,MAAM,OAAO,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","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.\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
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarItemsManager.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItemsManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAgB,iBAAiB,EAAe,aAAa,EAAwB,MAAM,eAAe,CAAC;AAQlH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAM;gBAE5C,KAAK,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC;IAKpD;;OAEG;IACH,SAAgB,cAAc,iBAAsB,uBAAuB,KAAK,IAAI,EAAI;IAExF,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC;IAIxD,yCAAyC;I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