@itwin/appui-abstract 5.0.0-dev.9 → 5.0.0-dev.92

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 (216) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/lib/cjs/appui-abstract/UiAdmin.js +4 -5
  3. package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
  4. package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
  5. package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  6. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +91 -91
  7. package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  8. package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  9. package/lib/cjs/appui-abstract/dialogs/DialogItem.js +4 -0
  10. package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
  11. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +3 -5
  12. package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  13. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  14. package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  15. package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
  16. package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  17. package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  18. package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
  19. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  20. package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  21. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +3 -0
  22. package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  23. package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
  24. package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
  25. package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
  26. package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
  27. package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
  28. package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  29. package/lib/cjs/appui-abstract/properties/Record.js +18 -0
  30. package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
  31. package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  32. package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  33. package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
  34. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  35. package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  36. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  37. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  38. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +15 -37
  39. package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  40. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  41. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  42. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +3 -20
  43. package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  44. package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
  45. package/lib/cjs/appui-abstract/utils/UiError.js +1 -0
  46. package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
  47. package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
  48. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +7 -0
  49. package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  50. package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
  51. package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
  52. package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
  53. package/lib/cjs/appui-abstract.d.ts +1 -28
  54. package/lib/cjs/appui-abstract.d.ts.map +1 -1
  55. package/lib/cjs/appui-abstract.js +1 -28
  56. package/lib/cjs/appui-abstract.js.map +1 -1
  57. package/lib/esm/appui-abstract/UiAdmin.js +4 -5
  58. package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
  59. package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
  60. package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
  61. package/lib/esm/appui-abstract/content/StandardContentLayouts.js +91 -91
  62. package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
  63. package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +1 -1
  64. package/lib/esm/appui-abstract/dialogs/DialogItem.js +4 -0
  65. package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
  66. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +3 -5
  67. package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
  68. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +15 -19
  69. package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
  70. package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
  71. package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
  72. package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
  73. package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
  74. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +3 -0
  75. package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
  76. package/lib/esm/appui-abstract/items/ConditionalStringValue.js +3 -0
  77. package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
  78. package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
  79. package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
  80. package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
  81. package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
  82. package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
  83. package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
  84. package/lib/esm/appui-abstract/properties/Record.js +18 -0
  85. package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
  86. package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
  87. package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
  88. package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
  89. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +10 -6
  90. package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
  91. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
  92. package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
  93. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +14 -36
  94. package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
  95. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
  96. package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
  97. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +3 -20
  98. package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
  99. package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
  100. package/lib/esm/appui-abstract/utils/UiError.js +1 -0
  101. package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
  102. package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
  103. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +7 -0
  104. package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
  105. package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
  106. package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
  107. package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
  108. package/lib/esm/appui-abstract.d.ts +1 -28
  109. package/lib/esm/appui-abstract.d.ts.map +1 -1
  110. package/lib/esm/appui-abstract.js +1 -28
  111. package/lib/esm/appui-abstract.js.map +1 -1
  112. package/package.json +13 -14
  113. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  114. package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  115. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +0 -80
  116. package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  117. package/lib/cjs/appui-abstract/UiItemsManager.d.ts +0 -111
  118. package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +0 -1
  119. package/lib/cjs/appui-abstract/UiItemsManager.js +0 -194
  120. package/lib/cjs/appui-abstract/UiItemsManager.js.map +0 -1
  121. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +0 -30
  122. package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  123. package/lib/cjs/appui-abstract/UiItemsProvider.js +0 -10
  124. package/lib/cjs/appui-abstract/UiItemsProvider.js.map +0 -1
  125. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  126. package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  127. package/lib/cjs/appui-abstract/backstage/BackstageItem.js +0 -69
  128. package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +0 -1
  129. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  130. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  131. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +0 -136
  132. package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  133. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +0 -12
  134. package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  135. package/lib/cjs/appui-abstract/items/ProvidedItem.js +0 -10
  136. package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +0 -1
  137. package/lib/cjs/appui-abstract/items/StageUsage.d.ts +0 -17
  138. package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +0 -1
  139. package/lib/cjs/appui-abstract/items/StageUsage.js +0 -25
  140. package/lib/cjs/appui-abstract/items/StageUsage.js.map +0 -1
  141. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  142. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  143. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +0 -88
  144. package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  145. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  146. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  147. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +0 -136
  148. package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  149. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  150. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  151. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +0 -236
  152. package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  153. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  154. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  155. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +0 -10
  156. package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  157. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +0 -37
  158. package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  159. package/lib/cjs/appui-abstract/widget/StagePanel.js +0 -47
  160. package/lib/cjs/appui-abstract/widget/StagePanel.js.map +0 -1
  161. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +0 -20
  162. package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  163. package/lib/cjs/appui-abstract/widget/WidgetState.js +0 -28
  164. package/lib/cjs/appui-abstract/widget/WidgetState.js.map +0 -1
  165. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
  166. package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
  167. package/lib/esm/appui-abstract/BaseUiItemsProvider.js +0 -76
  168. package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +0 -1
  169. package/lib/esm/appui-abstract/UiItemsManager.d.ts +0 -111
  170. package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +0 -1
  171. package/lib/esm/appui-abstract/UiItemsManager.js +0 -190
  172. package/lib/esm/appui-abstract/UiItemsManager.js.map +0 -1
  173. package/lib/esm/appui-abstract/UiItemsProvider.d.ts +0 -30
  174. package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +0 -1
  175. package/lib/esm/appui-abstract/UiItemsProvider.js +0 -9
  176. package/lib/esm/appui-abstract/UiItemsProvider.js.map +0 -1
  177. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +0 -92
  178. package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
  179. package/lib/esm/appui-abstract/backstage/BackstageItem.js +0 -63
  180. package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +0 -1
  181. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
  182. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
  183. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +0 -132
  184. package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
  185. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +0 -12
  186. package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
  187. package/lib/esm/appui-abstract/items/ProvidedItem.js +0 -9
  188. package/lib/esm/appui-abstract/items/ProvidedItem.js.map +0 -1
  189. package/lib/esm/appui-abstract/items/StageUsage.d.ts +0 -17
  190. package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +0 -1
  191. package/lib/esm/appui-abstract/items/StageUsage.js +0 -22
  192. package/lib/esm/appui-abstract/items/StageUsage.js.map +0 -1
  193. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
  194. package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
  195. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +0 -81
  196. package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
  197. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
  198. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
  199. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +0 -132
  200. package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
  201. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
  202. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
  203. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +0 -232
  204. package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
  205. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
  206. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
  207. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +0 -9
  208. package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
  209. package/lib/esm/appui-abstract/widget/StagePanel.d.ts +0 -37
  210. package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +0 -1
  211. package/lib/esm/appui-abstract/widget/StagePanel.js +0 -44
  212. package/lib/esm/appui-abstract/widget/StagePanel.js.map +0 -1
  213. package/lib/esm/appui-abstract/widget/WidgetState.d.ts +0 -20
  214. package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +0 -1
  215. package/lib/esm/appui-abstract/widget/WidgetState.js +0 -25
  216. package/lib/esm/appui-abstract/widget/WidgetState.js.map +0 -1
@@ -18,12 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- __exportStar(require("./appui-abstract/BaseUiItemsProvider"), exports);
22
21
  __exportStar(require("./appui-abstract/UiAdmin"), exports);
23
- __exportStar(require("./appui-abstract/UiItemsManager"), exports);
24
- __exportStar(require("./appui-abstract/UiItemsProvider"), exports);
25
- __exportStar(require("./appui-abstract/backstage/BackstageItem"), exports);
26
- __exportStar(require("./appui-abstract/backstage/BackstageItemsManager"), exports);
27
22
  __exportStar(require("./appui-abstract/common/KeyboardKey"), exports);
28
23
  __exportStar(require("./appui-abstract/content/ContentLayoutProps"), exports);
29
24
  __exportStar(require("./appui-abstract/content/StandardContentLayouts"), exports);
@@ -36,9 +31,7 @@ __exportStar(require("./appui-abstract/items/AbstractToolbarProps"), exports);
36
31
  __exportStar(require("./appui-abstract/items/BadgeType"), exports);
37
32
  __exportStar(require("./appui-abstract/items/ConditionalBooleanValue"), exports);
38
33
  __exportStar(require("./appui-abstract/items/ConditionalStringValue"), exports);
39
- __exportStar(require("./appui-abstract/items/ProvidedItem"), exports);
40
34
  __exportStar(require("./appui-abstract/items/RelativePosition"), exports);
41
- __exportStar(require("./appui-abstract/items/StageUsage"), exports);
42
35
  __exportStar(require("./appui-abstract/notification/MessagePresenter"), exports);
43
36
  __exportStar(require("./appui-abstract/notification/MessageSeverity"), exports);
44
37
  __exportStar(require("./appui-abstract/properties/Description"), exports);
@@ -49,12 +42,7 @@ __exportStar(require("./appui-abstract/properties/StandardEditorNames"), exports
49
42
  __exportStar(require("./appui-abstract/properties/StandardTypeNames"), exports);
50
43
  __exportStar(require("./appui-abstract/properties/Value"), exports);
51
44
  __exportStar(require("./appui-abstract/quantity/BaseQuantityDescription"), exports);
52
- __exportStar(require("./appui-abstract/statusbar/StatusBarItem"), exports);
53
- __exportStar(require("./appui-abstract/statusbar/StatusBarItemsManager"), exports);
54
45
  __exportStar(require("./appui-abstract/toolbars/ToolbarItem"), exports);
55
- __exportStar(require("./appui-abstract/toolbars/ToolbarItemsManager"), exports);
56
- __exportStar(require("./appui-abstract/statusbar/StatusBarItem"), exports);
57
- __exportStar(require("./appui-abstract/statusbar/StatusBarItemsManager"), exports);
58
46
  __exportStar(require("./appui-abstract/utils/callbacks"), exports);
59
47
  __exportStar(require("./appui-abstract/utils/misc"), exports);
60
48
  __exportStar(require("./appui-abstract/utils/IconSpecUtilities"), exports);
@@ -63,17 +51,10 @@ __exportStar(require("./appui-abstract/utils/UiError"), exports);
63
51
  __exportStar(require("./appui-abstract/utils/UiEventDispatcher"), exports);
64
52
  __exportStar(require("./appui-abstract/utils/UiEvent"), exports);
65
53
  __exportStar(require("./appui-abstract/utils/filter/filters"), exports);
66
- __exportStar(require("./appui-abstract/widget/AbstractWidgetProps"), exports);
67
- __exportStar(require("./appui-abstract/widget/StagePanel"), exports);
68
- __exportStar(require("./appui-abstract/widget/WidgetState"), exports);
69
54
  /** @docs-package-description
70
55
  * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
71
56
  * For more information, see [UI]($docs/ui/index.md).
72
57
  */
73
- /**
74
- * @docs-group-description Backstage
75
- * Abstractions used by appui-react package to create and manage the display Backstage menu items.
76
- */
77
58
  /**
78
59
  * @docs-group-description ContentView
79
60
  * Classes and interfaces used with Content Layouts.
@@ -94,10 +75,6 @@ __exportStar(require("./appui-abstract/widget/WidgetState"), exports);
94
75
  * @docs-group-description Properties
95
76
  * Properties system for data input and formatting.
96
77
  */
97
- /**
98
- * @docs-group-description StatusBar
99
- * Classes for creating and managing items in the status bar.
100
- */
101
78
  /**
102
79
  * @docs-group-description Toolbar
103
80
  * Classes for creating and managing items in a toolbar.
@@ -113,9 +90,5 @@ __exportStar(require("./appui-abstract/widget/WidgetState"), exports);
113
90
  /**
114
91
  * @docs-group-description Utilities
115
92
  * Various utility classes for working with a UI.
116
- */
117
- /**
118
- * @docs-group-description Widget
119
- * Classes for creating and providing Widgets.
120
- */
93
+ */
121
94
  //# sourceMappingURL=appui-abstract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,uEAAqD;AACrD,2DAAyC;AACzC,kEAAgD;AAChD,mEAAiD;AAEjD,2EAAyD;AACzD,mFAAiE;AAEjE,sEAAoD;AAEpD,8EAA4D;AAC5D,kFAAgE;AAEhE,sEAAoD;AACpD,gFAA8D;AAC9D,0EAAwD;AAExD,2EAAyD;AACzD,+EAA6D;AAC7D,8EAA4D;AAC5D,mEAAiD;AACjD,iFAA+D;AAC/D,gFAA8D;AAC9D,sEAAoD;AACpD,0EAAwD;AACxD,oEAAkD;AAElD,iFAA+D;AAC/D,gFAA8D;AAE9D,0EAAwD;AACxD,2EAAyD;AACzD,6EAA2D;AAC3D,qEAAmD;AACnD,kFAAgE;AAChE,gFAA8D;AAC9D,oEAAkD;AAElD,oFAAkE;AAClE,2EAAyD;AACzD,mFAAiE;AAEjE,wEAAsD;AACtD,gFAA8D;AAE9D,2EAAyD;AACzD,mFAAiE;AAEjE,mEAAiD;AACjD,8DAA4C;AAC5C,2EAAyD;AACzD,oEAAkD;AAClD,iEAA+C;AAC/C,2EAAyD;AACzD,iEAA+C;AAC/C,wEAAsD;AAEtD,8EAA4D;AAC5D,qEAAmD;AACnD,sEAAoD;AAEpD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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\r\nexport * from \"./appui-abstract/BaseUiItemsProvider\";\r\nexport * from \"./appui-abstract/UiAdmin\";\r\nexport * from \"./appui-abstract/UiItemsManager\";\r\nexport * from \"./appui-abstract/UiItemsProvider\";\r\n\r\nexport * from \"./appui-abstract/backstage/BackstageItem\";\r\nexport * from \"./appui-abstract/backstage/BackstageItemsManager\";\r\n\r\nexport * from \"./appui-abstract/common/KeyboardKey\";\r\n\r\nexport * from \"./appui-abstract/content/ContentLayoutProps\";\r\nexport * from \"./appui-abstract/content/StandardContentLayouts\";\r\n\r\nexport * from \"./appui-abstract/dialogs/DialogItem\";\r\nexport * from \"./appui-abstract/dialogs/UiLayoutDataProvider\";\r\nexport * from \"./appui-abstract/dialogs/UiDataProvider\";\r\n\r\nexport * from \"./appui-abstract/items/AbstractItemProps\";\r\nexport * from \"./appui-abstract/items/AbstractMenuItemProps\";\r\nexport * from \"./appui-abstract/items/AbstractToolbarProps\";\r\nexport * from \"./appui-abstract/items/BadgeType\";\r\nexport * from \"./appui-abstract/items/ConditionalBooleanValue\";\r\nexport * from \"./appui-abstract/items/ConditionalStringValue\";\r\nexport * from \"./appui-abstract/items/ProvidedItem\";\r\nexport * from \"./appui-abstract/items/RelativePosition\";\r\nexport * from \"./appui-abstract/items/StageUsage\";\r\n\r\nexport * from \"./appui-abstract/notification/MessagePresenter\";\r\nexport * from \"./appui-abstract/notification/MessageSeverity\";\r\n\r\nexport * from \"./appui-abstract/properties/Description\";\r\nexport * from \"./appui-abstract/properties/EditorParams\";\r\nexport * from \"./appui-abstract/properties/PrimitiveTypes\";\r\nexport * from \"./appui-abstract/properties/Record\";\r\nexport * from \"./appui-abstract/properties/StandardEditorNames\";\r\nexport * from \"./appui-abstract/properties/StandardTypeNames\";\r\nexport * from \"./appui-abstract/properties/Value\";\r\n\r\nexport * from \"./appui-abstract/quantity/BaseQuantityDescription\";\r\nexport * from \"./appui-abstract/statusbar/StatusBarItem\";\r\nexport * from \"./appui-abstract/statusbar/StatusBarItemsManager\";\r\n\r\nexport * from \"./appui-abstract/toolbars/ToolbarItem\";\r\nexport * from \"./appui-abstract/toolbars/ToolbarItemsManager\";\r\n\r\nexport * from \"./appui-abstract/statusbar/StatusBarItem\";\r\nexport * from \"./appui-abstract/statusbar/StatusBarItemsManager\";\r\n\r\nexport * from \"./appui-abstract/utils/callbacks\";\r\nexport * from \"./appui-abstract/utils/misc\";\r\nexport * from \"./appui-abstract/utils/IconSpecUtilities\";\r\nexport * from \"./appui-abstract/utils/PointProps\";\r\nexport * from \"./appui-abstract/utils/UiError\";\r\nexport * from \"./appui-abstract/utils/UiEventDispatcher\";\r\nexport * from \"./appui-abstract/utils/UiEvent\";\r\nexport * from \"./appui-abstract/utils/filter/filters\";\r\n\r\nexport * from \"./appui-abstract/widget/AbstractWidgetProps\";\r\nexport * from \"./appui-abstract/widget/StagePanel\";\r\nexport * from \"./appui-abstract/widget/WidgetState\";\r\n\r\n/** @docs-package-description\r\n * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.\r\n * For more information, see [UI]($docs/ui/index.md).\r\n */\r\n/**\r\n * @docs-group-description Backstage\r\n * Abstractions used by appui-react package to create and manage the display Backstage menu items.\r\n */\r\n/**\r\n * @docs-group-description ContentView\r\n * Classes and interfaces used with Content Layouts.\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Interfaces and classes for generating UI items for Dialogs.\r\n */\r\n/**\r\n * @docs-group-description Item\r\n * Classes for working with an Item in a Toolbar, Widget, Backstage or Context Menu\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Interfaces and enums for working with a message\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Properties system for data input and formatting.\r\n */\r\n/**\r\n * @docs-group-description StatusBar\r\n * Classes for creating and managing items in the status bar.\r\n */\r\n/**\r\n * @docs-group-description Toolbar\r\n * Classes for creating and managing items in a toolbar.\r\n */\r\n/**\r\n * @docs-group-description UiAdmin\r\n * Abstractions for UI controls, such as toolbars, buttons and menus and are callable from IModelApp.uiAdmin in core-frontend.\r\n */\r\n/**\r\n * @docs-group-description UiItemsProvider\r\n * Interface for specifying UI items to be inserted at runtime.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes for working with a UI.\r\n */\r\n/**\r\n * @docs-group-description Widget\r\n * Classes for creating and providing Widgets.\r\n */\r\n"]}
1
+ {"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,2DAAyC;AAEzC,sEAAoD;AAEpD,8EAA4D;AAC5D,kFAAgE;AAEhE,sEAAoD;AACpD,gFAA8D;AAC9D,0EAAwD;AAExD,2EAAyD;AACzD,+EAA6D;AAC7D,8EAA4D;AAC5D,mEAAiD;AACjD,iFAA+D;AAC/D,gFAA8D;AAC9D,0EAAwD;AAExD,iFAA+D;AAC/D,gFAA8D;AAE9D,0EAAwD;AACxD,2EAAyD;AACzD,6EAA2D;AAC3D,qEAAmD;AACnD,kFAAgE;AAChE,gFAA8D;AAC9D,oEAAkD;AAElD,oFAAkE;AAElE,wEAAsD;AAEtD,mEAAiD;AACjD,8DAA4C;AAC5C,2EAAyD;AACzD,oEAAkD;AAClD,iEAA+C;AAC/C,2EAAyD;AACzD,iEAA+C;AAC/C,wEAAsD;AAEtD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","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\nexport * from \"./appui-abstract/UiAdmin\";\n\nexport * from \"./appui-abstract/common/KeyboardKey\";\n\nexport * from \"./appui-abstract/content/ContentLayoutProps\";\nexport * from \"./appui-abstract/content/StandardContentLayouts\";\n\nexport * from \"./appui-abstract/dialogs/DialogItem\";\nexport * from \"./appui-abstract/dialogs/UiLayoutDataProvider\";\nexport * from \"./appui-abstract/dialogs/UiDataProvider\";\n\nexport * from \"./appui-abstract/items/AbstractItemProps\";\nexport * from \"./appui-abstract/items/AbstractMenuItemProps\";\nexport * from \"./appui-abstract/items/AbstractToolbarProps\";\nexport * from \"./appui-abstract/items/BadgeType\";\nexport * from \"./appui-abstract/items/ConditionalBooleanValue\";\nexport * from \"./appui-abstract/items/ConditionalStringValue\";\nexport * from \"./appui-abstract/items/RelativePosition\";\n\nexport * from \"./appui-abstract/notification/MessagePresenter\";\nexport * from \"./appui-abstract/notification/MessageSeverity\";\n\nexport * from \"./appui-abstract/properties/Description\";\nexport * from \"./appui-abstract/properties/EditorParams\";\nexport * from \"./appui-abstract/properties/PrimitiveTypes\";\nexport * from \"./appui-abstract/properties/Record\";\nexport * from \"./appui-abstract/properties/StandardEditorNames\";\nexport * from \"./appui-abstract/properties/StandardTypeNames\";\nexport * from \"./appui-abstract/properties/Value\";\n\nexport * from \"./appui-abstract/quantity/BaseQuantityDescription\";\n\nexport * from \"./appui-abstract/toolbars/ToolbarItem\";\n\nexport * from \"./appui-abstract/utils/callbacks\";\nexport * from \"./appui-abstract/utils/misc\";\nexport * from \"./appui-abstract/utils/IconSpecUtilities\";\nexport * from \"./appui-abstract/utils/PointProps\";\nexport * from \"./appui-abstract/utils/UiError\";\nexport * from \"./appui-abstract/utils/UiEventDispatcher\";\nexport * from \"./appui-abstract/utils/UiEvent\";\nexport * from \"./appui-abstract/utils/filter/filters\";\n\n/** @docs-package-description\n * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.\n * For more information, see [UI]($docs/ui/index.md).\n */\n/**\n * @docs-group-description ContentView\n * Classes and interfaces used with Content Layouts.\n */\n/**\n * @docs-group-description Dialog\n * Interfaces and classes for generating UI items for Dialogs.\n */\n/**\n * @docs-group-description Item\n * Classes for working with an Item in a Toolbar, Widget, Backstage or Context Menu\n */\n/**\n * @docs-group-description Notification\n * Interfaces and enums for working with a message\n */\n/**\n * @docs-group-description Properties\n * Properties system for data input and formatting.\n */\n/**\n * @docs-group-description Toolbar\n * Classes for creating and managing items in a toolbar.\n */\n/**\n * @docs-group-description UiAdmin\n * Abstractions for UI controls, such as toolbars, buttons and menus and are callable from IModelApp.uiAdmin in core-frontend.\n */\n/**\n * @docs-group-description UiItemsProvider\n * Interface for specifying UI items to be inserted at runtime.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes for working with a UI.\n */"]}
@@ -15,9 +15,8 @@ export class GenericUiEvent extends BeUiEvent {
15
15
  * @public
16
16
  */
17
17
  export class UiAdmin {
18
- constructor() {
19
- this._featureFlags = {};
20
- }
18
+ _featureFlags = {};
19
+ static _messagePresenter;
21
20
  /** The MessagePresenter used to display messages. */
22
21
  static get messagePresenter() {
23
22
  if (!UiAdmin._messagePresenter) {
@@ -204,6 +203,8 @@ export class UiAdmin {
204
203
  static sendUiEvent(args) {
205
204
  UiAdmin.onGenericUiEvent.emit(args);
206
205
  }
206
+ /** GenericUiEvent */
207
+ static onGenericUiEvent = new GenericUiEvent();
207
208
  /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.
208
209
  * @param _uiDataProvider The DialogLayoutDataProvider for the dialog
209
210
  * @param _title Specify title for dialog.
@@ -218,6 +219,4 @@ export class UiAdmin {
218
219
  /** Closes the Dialog with a given Id. */
219
220
  closeDialog(_dialogId) { return false; }
220
221
  }
221
- /** GenericUiEvent */
222
- UiAdmin.onGenericUiEvent = new GenericUiEvent();
223
222
  //# s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EAAE,MAAc,EAAE,QAAiB,EAAE,GAAW,EACzG,cAA4B;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yCAAyC;IAClC,WAAW,CAAC,SAAiB,IAAa,OAAO,KAAK,CAAC,CAAC,CAAC;;AAjBhE,sBAAsB;AACC,wBAAgB,GAAG,IAAI,cAAc,EAAE,AAAvB,CAAwB","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 UiAdmin\r\n */\r\n\r\nimport { BentleyError, BentleyStatus, BeUiEvent } from \"@itwin/core-bentley\";\r\nimport { AbstractMenuItemProps } from \"./items/AbstractMenuItemProps\";\r\nimport { AbstractToolbarProps } from \"./items/AbstractToolbarProps\";\r\nimport { RelativePosition } from \"./items/RelativePosition\";\r\nimport { PropertyDescription } from \"./properties/Description\";\r\nimport { Primitives } from \"./properties/PrimitiveTypes\";\r\nimport { OnCancelFunc, OnItemExecutedFunc, OnNumberCommitFunc, OnValueCommitFunc } from \"./utils/callbacks\";\r\nimport { PropertyRecord } from \"./properties/Record\";\r\nimport { UiDataProvider } from \"./dialogs/UiDataProvider\";\r\nimport { DialogLayoutDataProvider } from \"./dialogs/UiLayoutDataProvider\";\r\nimport { MessagePresenter } from \"./notification/MessagePresenter\";\r\n\r\ninterface XAndY { readonly x: number, readonly y: number }\r\n\r\ninterface BentleyErrorWithCategory extends BentleyError {\r\n category: string;\r\n}\r\n\r\n/** The Generic UI Event args contains information useful for any UI message\r\n * @public\r\n */\r\nexport interface GenericUiEventArgs {\r\n uiComponentId: string;\r\n}\r\n\r\n/** Optional props to pass to the Dialog control that is generated.\r\n * @public\r\n */\r\nexport interface DialogProps {\r\n /** Indicates whether the user can resize dialog with cursor. */\r\n resizable?: boolean;\r\n /** Indicates whether the user can move dialog with cursor.*/\r\n movable?: boolean;\r\n /** Initial width of dialog. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n width?: string | number;\r\n /** Initial height of dialog. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n height?: string | number;\r\n /** Minimum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n minWidth?: string | number;\r\n /** Minimum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n minHeight?: string | number;\r\n /** Maximum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n maxWidth?: string | number;\r\n /** Maximum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\r\n maxHeight?: string | number;\r\n}\r\n\r\n/** The GenericUiEvent is the base event class for UI events that target a specific component, as identified in uiComponentId.\r\n * @public\r\n */\r\nexport class GenericUiEvent extends BeUiEvent<GenericUiEventArgs> { }\r\n\r\n/** Flags that control enabling/disabling certain UI features\r\n * @public\r\n */\r\nexport interface UiFlags {\r\n /** if true then Ctrl+F2 will show popup key-in palette */\r\n allowKeyinPalette?: boolean;\r\n}\r\n\r\n/** The UiAdmin controls various UI components and is callable from IModelApp.uiAdmin in the core-frontend package.\r\n * @public\r\n */\r\nexport class UiAdmin {\r\n private _featureFlags: UiFlags = {};\r\n private static _messagePresenter?: MessagePresenter;\r\n\r\n /** The MessagePresenter used to display messages. */\r\n public static get messagePresenter(): MessagePresenter {\r\n if (!UiAdmin._messagePresenter) {\r\n const error = new BentleyError(BentleyStatus.ERROR, \"UiAdmin.messagePresenter not set\") as BentleyErrorWithCategory;\r\n error.category = \"messagePresenter\";\r\n throw error;\r\n }\r\n\r\n return UiAdmin._messagePresenter;\r\n }\r\n public static set messagePresenter(mp: MessagePresenter) {\r\n UiAdmin._messagePresenter = mp;\r\n }\r\n\r\n public get featureFlags(): UiFlags {\r\n return { ...this._featureFlags }; // return copy so no direct access to modify value\r\n }\r\n\r\n public updateFeatureFlags(uiFlags: UiFlags) {\r\n this._featureFlags = { ...this._featureFlags, ...uiFlags };\r\n }\r\n\r\n /** @internal */\r\n public onInitialized() { }\r\n\r\n /** Get the cursor X and Y position. */\r\n public get cursorPosition(): XAndY { return { x: 0, y: 0 }; }\r\n\r\n /** Create a PointProps object.\r\n * @deprecated in 4.2.x. Please use @core/geometry [[XAndY]] or a custom implementation.\r\n */\r\n public createXAndY(x: number, y: number): XAndY { return { x, y }; }\r\n\r\n /** Determines if focus is set to Home */\r\n public get isFocusOnHome(): boolean { return false; }\r\n\r\n /** Sets focus to Home */\r\n public setFocusToHome(): void { }\r\n\r\n /** Show a context menu at a particular location.\r\n * @param _menuItemsProps Properties of the menu items to display.\r\n * @param _location Location of the context menu, relative to the origin of htmlElement or the window.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the menu was displayed, false if the menu could not be displayed.\r\n */\r\n public showContextMenu(_menuItemsProps: AbstractMenuItemProps[], _location: XAndY, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Show a Toolbar at a particular location.\r\n * @param _toolbarProps Properties of the Toolbar to display.\r\n * @param _location Location of the Toolbar, relative to the origin of htmlElement or the window.\r\n * @param _offset Offset of the Toolbar from the location.\r\n * @param _onItemExecuted Function invoked after a Toolbar item is executed\r\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\r\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\r\n * @param _htmlElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\r\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\r\n */\r\n public showToolbar(\r\n _toolbarProps: AbstractToolbarProps, _location: XAndY, _offset: XAndY, _onItemExecuted: OnItemExecutedFunc, _onCancel: OnCancelFunc,\r\n _relativePosition?: RelativePosition, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides the toolbar. */\r\n public hideToolbar(): boolean { return false; }\r\n\r\n /** Show a menu button at a particular location. A menu button opens a context menu.\r\n * @param _id Id of the menu button. Multiple menu buttons may be displayed.\r\n * @param _menuItemsProps Properties of the menu items to display.\r\n * @param _location Location of the context menu, relative to the origin of htmlElement or the window.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the button was displayed, false if the button could not be displayed.\r\n */\r\n public showMenuButton(_id: string, _menuItemsProps: AbstractMenuItemProps[], _location: XAndY, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides a menu button.\r\n * @param _id Id of the menu button. Multiple menu buttons may be displayed.\r\n * @return true if the menu was hidden, false if the menu could not be hidden.\r\n */\r\n public hideMenuButton(_id: string): boolean { return false; }\r\n\r\n /** Show a calculator at a particular location.\r\n * @param _initialValue Value initially displayed in the calculator.\r\n * @param _resultIcon Icon displayed to the left of the value.\r\n * @param _location Location of the calculator, relative to the origin of htmlElement or the window.\r\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\r\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the calculator was displayed, false if the calculator could not be displayed.\r\n */\r\n public showCalculator(_initialValue: number, _resultIcon: string, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides the calculator. */\r\n public hideCalculator(): boolean { return false; }\r\n\r\n /** Show an input editor for an angle value at a particular location.\r\n * @param _initialValue Value initially displayed in the editor.\r\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\r\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\r\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the editor was displayed, false if the editor could not be displayed.\r\n */\r\n public showAngleEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Show an input editor for a length value at a particular location.\r\n * @param _initialValue Value initially displayed in the editor.\r\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\r\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\r\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the editor was displayed, false if the editor could not be displayed.\r\n */\r\n public showLengthEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Show an input editor for a height value at a particular location.\r\n * @param _initialValue Value initially displayed in the editor.\r\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\r\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\r\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the editor was displayed, false if the editor could not be displayed.\r\n */\r\n public showHeightEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Show an input editor for a primitive value at a particular location.\r\n * @param _initialValue Value initially displayed in the editor.\r\n * @param _propertyDescription Description of the primitive value property.\r\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\r\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\r\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\r\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\r\n * @return true if the editor was displayed, false if the editor could not be displayed.\r\n */\r\n public showInputEditor(_initialValue: Primitives.Value, _propertyDescription: PropertyDescription, _location: XAndY, _onCommit: OnValueCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides the input editor. */\r\n public hideInputEditor(): boolean { return false; }\r\n\r\n /** Show an HTML element at a particular location.\r\n * @param _displayElement The HTMLElement to display\r\n * @param _location Location of the tool settings, relative to the origin of anchorElement or the window\r\n * @param _offset Offset of the display element from the location\r\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the display element\r\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\r\n * @param _anchorElement The HTMLElement that anchors the display element. If undefined, the location is relative to the overall window.\r\n * @return true if the display element was displayed, false if the display element could not be displayed.\r\n */\r\n public showHTMLElement(\r\n _displayElement: HTMLElement, _location: XAndY, _offset: XAndY, _onCancel: OnCancelFunc,\r\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides the HTML Element. */\r\n public hideHTMLElement(): boolean { return false; }\r\n\r\n /** Show a Card containing content, a title and a toolbar at a particular location.\r\n * @param _content The HTMLElement of the content to display\r\n * @param _title Title to display at the top of the card.\r\n * @param _toolbarProps Properties of the Toolbar to display.\r\n * @param _location Location of the Card, relative to the origin of anchorElement or the window.\r\n * @param _offset Offset of the Card from the location.\r\n * @param _onItemExecuted Function invoked after a Toolbar item is executed\r\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\r\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\r\n * @param _anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\r\n * @return true if the Card was displayed, false if the Card could not be displayed.\r\n */\r\n public showCard(\r\n _content: HTMLElement, _title: string | PropertyRecord | undefined, _toolbarProps: AbstractToolbarProps | undefined,\r\n _location: XAndY, _offset: XAndY, _onItemExecuted: OnItemExecutedFunc, _onCancel: OnCancelFunc,\r\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Hides the Card. */\r\n public hideCard(): boolean { return false; }\r\n\r\n /** Opens a Tool Settings Ui popup at a particular location.\r\n * @param _dataProvider The UiDataProvider for the tool settings\r\n * @param _location Location of the tool settings, relative to the origin of anchorElement or the window\r\n * @param _offset Offset of the tool settings from the location\r\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\r\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\r\n * @param _anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\r\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\r\n */\r\n public openToolSettingsPopup(\r\n _dataProvider: UiDataProvider, _location: XAndY, _offset: XAndY, _onCancel: OnCancelFunc,\r\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\r\n return false;\r\n }\r\n\r\n /** Closes the Tool Settings Ui popup. */\r\n public closeToolSettingsPopup(): boolean { return false; }\r\n\r\n /** Show the Keyin Palette to display all support Tool key-ins.\r\n * @param _htmlElement The HTMLElement that anchors the Keyin Palette. If undefined, the location is relative to the overall window.\r\n * @return true if the Keyin Palette was displayed, false if it could not be displayed.\r\n */\r\n public showKeyinPalette(_htmlElement?: HTMLElement): boolean { return false; }\r\n\r\n /** Hides the Keyin Palette. */\r\n public hideKeyinPalette(): boolean { return false; }\r\n\r\n /** Send a UI event */\r\n public static sendUiEvent(args: GenericUiEventArgs) {\r\n UiAdmin.onGenericUiEvent.emit(args);\r\n }\r\n /** GenericUiEvent */\r\n public static readonly onGenericUiEvent = new GenericUiEvent();\r\n\r\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\r\n * @param _uiDataProvider The DialogLayoutDataProvider for the dialog\r\n * @param _title Specify title for dialog.\r\n * @param _isModal Specify if the dialog is opened as a modal or modeless.\r\n * @param _id Id of the dialog that is used to close it.\r\n * @param _optionalProps Optional props for Dialog construction.\r\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\r\n */\r\n public openDialog(_uiDataProvider: DialogLayoutDataProvider, _title: string, _isModal: boolean, _id: string,\r\n _optionalProps?: DialogProps): boolean {\r\n return false;\r\n }\r\n\r\n /** Closes the Dialog with a given Id. */\r\n public closeDialog(_dialogId: string): boolean { return false; }\r\n}\r\n"]}
1
+ {"version":3,"file":"UiAdmin.js","sourceRoot":"","sources":["../../../src/appui-abstract/UiAdmin.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AA+C7E;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,SAA6B;CAAI;AAUrE;;GAEG;AACH,MAAM,OAAO,OAAO;IACV,aAAa,GAAY,EAAE,CAAC;IAC5B,MAAM,CAAC,iBAAiB,CAAoB;IAEpD,qDAAqD;IAC9C,MAAM,KAAK,gBAAgB;QAChC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAC/B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,aAAa,CAAC,KAAK,EAAE,kCAAkC,CAA6B,CAAC;YACpH,KAAK,CAAC,QAAQ,GAAG,kBAAkB,CAAC;YACpC,MAAM,KAAK,CAAC;QACd,CAAC;QAED,OAAO,OAAO,CAAC,iBAAiB,CAAC;IACnC,CAAC;IACM,MAAM,KAAK,gBAAgB,CAAC,EAAoB;QACrD,OAAO,CAAC,iBAAiB,GAAG,EAAE,CAAC;IACjC,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,kDAAkD;IACtF,CAAC;IAEM,kBAAkB,CAAC,OAAgB;QACxC,IAAI,CAAC,aAAa,GAAG,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IAC7D,CAAC;IAED,gBAAgB;IACT,aAAa,KAAK,CAAC;IAE1B,uCAAuC;IACvC,IAAW,cAAc,KAAY,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,C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BAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,sBAAsB;IACf,MAAM,CAAU,gBAAgB,GAAG,IAAI,cAAc,EAAE,CAAC;IAE/D;;;;;;;OAOG;IACI,UAAU,CAAC,eAAyC,EAAE,MAAc,EAAE,QAAiB,EAAE,GAAW,EACzG,cAA4B;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yCAAyC;IAClC,WAAW,CAAC,SAAiB,IAAa,OAAO,KAAK,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module UiAdmin\n */\n\nimport { BentleyError, BentleyStatus, BeUiEvent } from \"@itwin/core-bentley\";\nimport { AbstractMenuItemProps } from \"./items/AbstractMenuItemProps\";\nimport { AbstractToolbarProps } from \"./items/AbstractToolbarProps\";\nimport { RelativePosition } from \"./items/RelativePosition\";\nimport { PropertyDescription } from \"./properties/Description\";\nimport { Primitives } from \"./properties/PrimitiveTypes\";\nimport { OnCancelFunc, OnItemExecutedFunc, OnNumberCommitFunc, OnValueCommitFunc } from \"./utils/callbacks\";\nimport { PropertyRecord } from \"./properties/Record\";\nimport { UiDataProvider } from \"./dialogs/UiDataProvider\";\nimport { DialogLayoutDataProvider } from \"./dialogs/UiLayoutDataProvider\";\nimport { MessagePresenter } from \"./notification/MessagePresenter\";\n\ninterface XAndY { readonly x: number, readonly y: number }\n\ninterface BentleyErrorWithCategory extends BentleyError {\n category: string;\n}\n\n/** The Generic UI Event args contains information useful for any UI message\n * @public\n */\nexport interface GenericUiEventArgs {\n uiComponentId: string;\n}\n\n/** Optional props to pass to the Dialog control that is generated.\n * @public\n */\nexport interface DialogProps {\n /** Indicates whether the user can resize dialog with cursor. */\n resizable?: boolean;\n /** Indicates whether the user can move dialog with cursor.*/\n movable?: boolean;\n /** Initial width of dialog. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n width?: string | number;\n /** Initial height of dialog. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n height?: string | number;\n /** Minimum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n minWidth?: string | number;\n /** Minimum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n minHeight?: string | number;\n /** Maximum width that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n maxWidth?: string | number;\n /** Maximum height that the dialog may be resized to. Displayed in px if value is a number; otherwise, displayed in specified CSS unit. */\n maxHeight?: string | number;\n}\n\n/** The GenericUiEvent is the base event class for UI events that target a specific component, as identified in uiComponentId.\n * @public\n */\nexport class GenericUiEvent extends BeUiEvent<GenericUiEventArgs> { }\n\n/** Flags that control enabling/disabling certain UI features\n * @public\n */\nexport interface UiFlags {\n /** if true then Ctrl+F2 will show popup key-in palette */\n allowKeyinPalette?: boolean;\n}\n\n/** The UiAdmin controls various UI components and is callable from IModelApp.uiAdmin in the core-frontend package.\n * @public\n */\nexport class UiAdmin {\n private _featureFlags: UiFlags = {};\n private static _messagePresenter?: MessagePresenter;\n\n /** The MessagePresenter used to display messages. */\n public static get messagePresenter(): MessagePresenter {\n if (!UiAdmin._messagePresenter) {\n const error = new BentleyError(BentleyStatus.ERROR, \"UiAdmin.messagePresenter not set\") as BentleyErrorWithCategory;\n error.category = \"messagePresenter\";\n throw error;\n }\n\n return UiAdmin._messagePresenter;\n }\n public static set messagePresenter(mp: MessagePresenter) {\n UiAdmin._messagePresenter = mp;\n }\n\n public get featureFlags(): UiFlags {\n return { ...this._featureFlags }; // return copy so no direct access to modify value\n }\n\n public updateFeatureFlags(uiFlags: UiFlags) {\n this._featureFlags = { ...this._featureFlags, ...uiFlags };\n }\n\n /** @internal */\n public onInitialized() { }\n\n /** Get the cursor X and Y position. */\n public get cursorPosition(): XAndY { return { x: 0, y: 0 }; }\n\n /** Create a PointProps object.\n * @deprecated in 4.2.x. Please use @core/geometry [[XAndY]] or a custom implementation.\n */\n public createXAndY(x: number, y: number): XAndY { return { x, y }; }\n\n /** Determines if focus is set to Home */\n public get isFocusOnHome(): boolean { return false; }\n\n /** Sets focus to Home */\n public setFocusToHome(): void { }\n\n /** Show a context menu at a particular location.\n * @param _menuItemsProps Properties of the menu items to display.\n * @param _location Location of the context menu, relative to the origin of htmlElement or the window.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the menu was displayed, false if the menu could not be displayed.\n */\n public showContextMenu(_menuItemsProps: AbstractMenuItemProps[], _location: XAndY, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Show a Toolbar at a particular location.\n * @param _toolbarProps Properties of the Toolbar to display.\n * @param _location Location of the Toolbar, relative to the origin of htmlElement or the window.\n * @param _offset Offset of the Toolbar from the location.\n * @param _onItemExecuted Function invoked after a Toolbar item is executed\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the Toolbar\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\n * @param _htmlElement The HTMLElement that anchors the Toolbar. If undefined, the location is relative to the overall window.\n * @return true if the Toolbar was displayed, false if the Toolbar could not be displayed.\n */\n public showToolbar(\n _toolbarProps: AbstractToolbarProps, _location: XAndY, _offset: XAndY, _onItemExecuted: OnItemExecutedFunc, _onCancel: OnCancelFunc,\n _relativePosition?: RelativePosition, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides the toolbar. */\n public hideToolbar(): boolean { return false; }\n\n /** Show a menu button at a particular location. A menu button opens a context menu.\n * @param _id Id of the menu button. Multiple menu buttons may be displayed.\n * @param _menuItemsProps Properties of the menu items to display.\n * @param _location Location of the context menu, relative to the origin of htmlElement or the window.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the button was displayed, false if the button could not be displayed.\n */\n public showMenuButton(_id: string, _menuItemsProps: AbstractMenuItemProps[], _location: XAndY, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides a menu button.\n * @param _id Id of the menu button. Multiple menu buttons may be displayed.\n * @return true if the menu was hidden, false if the menu could not be hidden.\n */\n public hideMenuButton(_id: string): boolean { return false; }\n\n /** Show a calculator at a particular location.\n * @param _initialValue Value initially displayed in the calculator.\n * @param _resultIcon Icon displayed to the left of the value.\n * @param _location Location of the calculator, relative to the origin of htmlElement or the window.\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the calculator was displayed, false if the calculator could not be displayed.\n */\n public showCalculator(_initialValue: number, _resultIcon: string, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides the calculator. */\n public hideCalculator(): boolean { return false; }\n\n /** Show an input editor for an angle value at a particular location.\n * @param _initialValue Value initially displayed in the editor.\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public showAngleEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Show an input editor for a length value at a particular location.\n * @param _initialValue Value initially displayed in the editor.\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public showLengthEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Show an input editor for a height value at a particular location.\n * @param _initialValue Value initially displayed in the editor.\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public showHeightEditor(_initialValue: number, _location: XAndY, _onCommit: OnNumberCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Show an input editor for a primitive value at a particular location.\n * @param _initialValue Value initially displayed in the editor.\n * @param _propertyDescription Description of the primitive value property.\n * @param _location Location of the editor, relative to the origin of htmlElement or the window.\n * @param _onCommit Function called when the OK button or the Enter key is pressed.\n * @param _onCancel Function called when the Cancel button or the Escape key is pressed.\n * @param _htmlElement The HTMLElement that anchors the context menu. If undefined, the location is relative to the overall window.\n * @return true if the editor was displayed, false if the editor could not be displayed.\n */\n public showInputEditor(_initialValue: Primitives.Value, _propertyDescription: PropertyDescription, _location: XAndY, _onCommit: OnValueCommitFunc, _onCancel: OnCancelFunc, _htmlElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides the input editor. */\n public hideInputEditor(): boolean { return false; }\n\n /** Show an HTML element at a particular location.\n * @param _displayElement The HTMLElement to display\n * @param _location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param _offset Offset of the display element from the location\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the display element\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\n * @param _anchorElement The HTMLElement that anchors the display element. If undefined, the location is relative to the overall window.\n * @return true if the display element was displayed, false if the display element could not be displayed.\n */\n public showHTMLElement(\n _displayElement: HTMLElement, _location: XAndY, _offset: XAndY, _onCancel: OnCancelFunc,\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides the HTML Element. */\n public hideHTMLElement(): boolean { return false; }\n\n /** Show a Card containing content, a title and a toolbar at a particular location.\n * @param _content The HTMLElement of the content to display\n * @param _title Title to display at the top of the card.\n * @param _toolbarProps Properties of the Toolbar to display.\n * @param _location Location of the Card, relative to the origin of anchorElement or the window.\n * @param _offset Offset of the Card from the location.\n * @param _onItemExecuted Function invoked after a Toolbar item is executed\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the Card\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\n * @param _anchorElement The HTMLElement that anchors the Card. If undefined, the location is relative to the overall window.\n * @return true if the Card was displayed, false if the Card could not be displayed.\n */\n public showCard(\n _content: HTMLElement, _title: string | PropertyRecord | undefined, _toolbarProps: AbstractToolbarProps | undefined,\n _location: XAndY, _offset: XAndY, _onItemExecuted: OnItemExecutedFunc, _onCancel: OnCancelFunc,\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Hides the Card. */\n public hideCard(): boolean { return false; }\n\n /** Opens a Tool Settings Ui popup at a particular location.\n * @param _dataProvider The UiDataProvider for the tool settings\n * @param _location Location of the tool settings, relative to the origin of anchorElement or the window\n * @param _offset Offset of the tool settings from the location\n * @param _onCancel Function invoked when the Escape key is pressed or a click occurs outside the tool settings\n * @param _relativePosition Position relative to the given location. Defaults to TopRight.\n * @param _anchorElement The HTMLElement that anchors the tool settings. If undefined, the location is relative to the overall window.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public openToolSettingsPopup(\n _dataProvider: UiDataProvider, _location: XAndY, _offset: XAndY, _onCancel: OnCancelFunc,\n _relativePosition?: RelativePosition, _anchorElement?: HTMLElement): boolean {\n return false;\n }\n\n /** Closes the Tool Settings Ui popup. */\n public closeToolSettingsPopup(): boolean { return false; }\n\n /** Show the Keyin Palette to display all support Tool key-ins.\n * @param _htmlElement The HTMLElement that anchors the Keyin Palette. If undefined, the location is relative to the overall window.\n * @return true if the Keyin Palette was displayed, false if it could not be displayed.\n */\n public showKeyinPalette(_htmlElement?: HTMLElement): boolean { return false; }\n\n /** Hides the Keyin Palette. */\n public hideKeyinPalette(): boolean { return false; }\n\n /** Send a UI event */\n public static sendUiEvent(args: GenericUiEventArgs) {\n UiAdmin.onGenericUiEvent.emit(args);\n }\n /** GenericUiEvent */\n public static readonly onGenericUiEvent = new GenericUiEvent();\n\n /** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.\n * @param _uiDataProvider The DialogLayoutDataProvider for the dialog\n * @param _title Specify title for dialog.\n * @param _isModal Specify if the dialog is opened as a modal or modeless.\n * @param _id Id of the dialog that is used to close it.\n * @param _optionalProps Optional props for Dialog construction.\n * @return true if the tool settings were displayed, false if the tool settings could not be displayed.\n */\n public openDialog(_uiDataProvider: DialogLayoutDataProvider, _title: string, _isModal: boolean, _id: string,\n _optionalProps?: DialogProps): boolean {\n return false;\n }\n\n /** Closes the Dialog with a given Id. */\n public closeDialog(_dialogId: string): boolean { return false; }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardKey.js","sourceRoot":"","sources":["../../../../src/appui-abstract/common/KeyboardKey.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACb,CAAC,EAbW,WAAW,KAAX,WAAW,QAatB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,UAwBX;AAxBD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,uEAAuE;IACvE,8BAAgB,CAAA;IAChB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAxBW,UAAU,KAAV,UAAU,QAwBrB;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,4DAA4D;IAC5D,OAAO,CAAC,GAAG,KAAK,UAAU,CAAC,SAAS,IAAI,GAAG,KAAK,UAAU,CAAC,UAAU,IAAI,GAAG,KAAK,UAAU,CAAC,OAAO,IAAI,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC;AACvI,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 Utilities\r\n */\r\n\r\n/** Enumeration for Function Keys\r\n * @public @deprecated in 4.3. Please use the `ts-key-enum` npm package or string literals.\r\n */\r\nexport enum FunctionKey {\r\n F1 = \"F1\",\r\n F2 = \"F2\",\r\n F3 = \"F3\",\r\n F4 = \"F4\",\r\n F5 = \"F5\",\r\n F6 = \"F6\",\r\n F7 = \"F7\",\r\n F8 = \"F8\",\r\n F9 = \"F9\",\r\n F10 = \"F10\",\r\n F11 = \"F11\",\r\n F12 = \"F12\",\r\n}\r\n\r\n/** Enumeration for Special Keys\r\n * @public @deprecated in 4.3. Please use the `ts-key-enum` npm package or string literals.\r\n */\r\nexport enum SpecialKey {\r\n Home = \"Home\",\r\n End = \"End\",\r\n PageUp = \"PageUp\",\r\n PageDown = \"PageDown\",\r\n Escape = \"Escape\",\r\n Delete = \"Delete\",\r\n Insert = \"Insert\",\r\n Tab = \"Tab\",\r\n ArrowLeft = \"ArrowLeft\",\r\n ArrowRight = \"ArrowRight\",\r\n ArrowUp = \"ArrowUp\",\r\n ArrowDown = \"ArrowDown\",\r\n Enter = \"Enter\",\r\n // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values\r\n Return = \"Enter\",\r\n Space = \" \",\r\n Backspace = \"Backspace\",\r\n Clear = \"Clear\",\r\n Divide = \"Divide\",\r\n Multiply = \"Multiply\",\r\n Subtract = \"Subtract\",\r\n Add = \"Add\",\r\n Decimal = \"Decimal\",\r\n}\r\n\r\n/** Determines if a KeyboardEvent.key is an Arrow key\r\n * @public @deprecated in 4.3. Please use a custom implementation moving forward.\r\n */\r\nexport function isArrowKey(key: string): boolean {\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated\r\n return (key === SpecialKey.ArrowLeft || key === SpecialKey.ArrowRight || key === SpecialKey.ArrowUp || key === SpecialKey.ArrowDown);\r\n}\r\n"]}
1
+ {"version":3,"file":"KeyboardKey.js","sourceRoot":"","sources":["../../../../src/appui-abstract/common/KeyboardKey.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,WAaX;AAbD,WAAY,WAAW;IACrB,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,wBAAS,CAAA;IACT,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,0BAAW,CAAA;AACb,CAAC,EAbW,WAAW,KAAX,WAAW,QAatB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,UAwBX;AAxBD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,uEAAuE;IACvE,8BAAgB,CAAA;IAChB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;AACrB,CAAC,EAxBW,UAAU,KAAV,UAAU,QAwBrB;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,4DAA4D;IAC5D,OAAO,CAAC,GAAG,KAAK,UAAU,CAAC,SAAS,IAAI,GAAG,KAAK,UAAU,CAAC,UAAU,IAAI,GAAG,KAAK,UAAU,CAAC,OAAO,IAAI,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC;AACvI,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 Utilities\n */\n\n/** Enumeration for Function Keys\n * @public @deprecated in 4.3. Please use the `ts-key-enum` npm package or string literals.\n */\nexport enum FunctionKey {\n F1 = \"F1\",\n F2 = \"F2\",\n F3 = \"F3\",\n F4 = \"F4\",\n F5 = \"F5\",\n F6 = \"F6\",\n F7 = \"F7\",\n F8 = \"F8\",\n F9 = \"F9\",\n F10 = \"F10\",\n F11 = \"F11\",\n F12 = \"F12\",\n}\n\n/** Enumeration for Special Keys\n * @public @deprecated in 4.3. Please use the `ts-key-enum` npm package or string literals.\n */\nexport enum SpecialKey {\n Home = \"Home\",\n End = \"End\",\n PageUp = \"PageUp\",\n PageDown = \"PageDown\",\n Escape = \"Escape\",\n Delete = \"Delete\",\n Insert = \"Insert\",\n Tab = \"Tab\",\n ArrowLeft = \"ArrowLeft\",\n ArrowRight = \"ArrowRight\",\n ArrowUp = \"ArrowUp\",\n ArrowDown = \"ArrowDown\",\n Enter = \"Enter\",\n // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values\n Return = \"Enter\",\n Space = \" \",\n Backspace = \"Backspace\",\n Clear = \"Clear\",\n Divide = \"Divide\",\n Multiply = \"Multiply\",\n Subtract = \"Subtract\",\n Add = \"Add\",\n Decimal = \"Decimal\",\n}\n\n/** Determines if a KeyboardEvent.key is an Arrow key\n * @public @deprecated in 4.3. Please use a custom implementation moving forward.\n */\nexport function isArrowKey(key: string): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return (key === SpecialKey.ArrowLeft || key === SpecialKey.ArrowRight || key === SpecialKey.ArrowUp || key === SpecialKey.ArrowDown);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayoutProps.js","sourceRoot":"","sources":["../../../../src/appui-abstract/content/ContentLayoutProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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 ContentView\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-deprecated */\r\n\r\n/** Base interface for layout split properties\r\n * @public\r\n * @deprecated in 4.10.x. Use `LayoutSplitPropsBase` from `@itwin/appui-react`.\r\n */\r\nexport interface LayoutSplitPropsBase {\r\n /** The id used to save the current state of the splitter */\r\n id: string;\r\n /** The percentage of this layout that should be occupied by the top/left fragment by default */\r\n percentage: number;\r\n /** Used to lock splitter into fixed position. Defaults to false. */\r\n lock?: boolean;\r\n}\r\n\r\n/** Properties for a layout fragment\r\n * @public\r\n * @deprecated in 4.10.x. Use `LayoutFragmentProps` from `@itwin/appui-react`.\r\n */\r\nexport interface LayoutFragmentProps {\r\n /** Vertical split layout properties */\r\n verticalSplit?: LayoutVerticalSplitProps;\r\n /** Horizontal split layout properties */\r\n horizontalSplit?: LayoutHorizontalSplitProps;\r\n}\r\n\r\n/** Properties for a vertical layout split.\r\n * When a member is a [[LayoutFragmentProps]], it creates a nested split pane.\r\n * When a number, it represents an index into a [[ContentGroup]].\r\n * @public\r\n * @deprecated in 4.10.x. Use `LayoutVerticalSplitProps` from `@itwin/appui-react`.\r\n */\r\nexport interface LayoutVerticalSplitProps extends LayoutSplitPropsBase {\r\n /** Left layout fragment properties. */\r\n left: LayoutFragmentProps | number;\r\n /** Right layout fragment properties. */\r\n right: LayoutFragmentProps | number;\r\n\r\n /** Minimum size of the left fragment. */\r\n minSizeLeft?: number;\r\n /** Minimum size of the right fragment. */\r\n minSizeRight?: number;\r\n}\r\n\r\n/** Properties for a horizontal layout split\r\n * When a member is a [[LayoutFragmentProps]], it creates a nested split pane.\r\n * When a number, it represents an index into a [[ContentGroup]].\r\n * @public\r\n * @deprecated in 4.10.x. Use `LayoutHorizontalSplitProps` from `@itwin/appui-react`.\r\n */\r\nexport interface LayoutHorizontalSplitProps extends LayoutSplitPropsBase {\r\n /** Top layout fragment properties. */\r\n top: LayoutFragmentProps | number;\r\n /** Bottom layout fragment properties. */\r\n bottom: LayoutFragmentProps | number;\r\n\r\n /** Minimum size of the top fragment. */\r\n minSizeTop?: number;\r\n /** Minimum size of the bottom fragment. */\r\n minSizeBottom?: number;\r\n}\r\n\r\n/** Properties for a [[ContentLayoutDef]]\r\n * @public\r\n * @deprecated in 4.10.x. Use `ContentLayoutProps` from `@itwin/appui-react`.\r\n */\r\nexport interface ContentLayoutProps extends LayoutFragmentProps {\r\n /** ID for this Content Layout */\r\n id: string;\r\n /** Description of the layout*/\r\n description?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentLayoutProps.js","sourceRoot":"","sources":["../../../../src/appui-abstract/content/ContentLayoutProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module ContentView\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** Base interface for layout split properties\n * @public\n * @deprecated in 4.10.x. Use `LayoutSplitPropsBase` from `@itwin/appui-react`.\n */\nexport interface LayoutSplitPropsBase {\n /** The id used to save the current state of the splitter */\n id: string;\n /** The percentage of this layout that should be occupied by the top/left fragment by default */\n percentage: number;\n /** Used to lock splitter into fixed position. Defaults to false. */\n lock?: boolean;\n}\n\n/** Properties for a layout fragment\n * @public\n * @deprecated in 4.10.x. Use `LayoutFragmentProps` from `@itwin/appui-react`.\n */\nexport interface LayoutFragmentProps {\n /** Vertical split layout properties */\n verticalSplit?: LayoutVerticalSplitProps;\n /** Horizontal split layout properties */\n horizontalSplit?: LayoutHorizontalSplitProps;\n}\n\n/** Properties for a vertical layout split.\n * When a member is a [[LayoutFragmentProps]], it creates a nested split pane.\n * When a number, it represents an index into a [[ContentGroup]].\n * @public\n * @deprecated in 4.10.x. Use `LayoutVerticalSplitProps` from `@itwin/appui-react`.\n */\nexport interface LayoutVerticalSplitProps extends LayoutSplitPropsBase {\n /** Left layout fragment properties. */\n left: LayoutFragmentProps | number;\n /** Right layout fragment properties. */\n right: LayoutFragmentProps | number;\n\n /** Minimum size of the left fragment. */\n minSizeLeft?: number;\n /** Minimum size of the right fragment. */\n minSizeRight?: number;\n}\n\n/** Properties for a horizontal layout split\n * When a member is a [[LayoutFragmentProps]], it creates a nested split pane.\n * When a number, it represents an index into a [[ContentGroup]].\n * @public\n * @deprecated in 4.10.x. Use `LayoutHorizontalSplitProps` from `@itwin/appui-react`.\n */\nexport interface LayoutHorizontalSplitProps extends LayoutSplitPropsBase {\n /** Top layout fragment properties. */\n top: LayoutFragmentProps | number;\n /** Bottom layout fragment properties. */\n bottom: LayoutFragmentProps | number;\n\n /** Minimum size of the top fragment. */\n minSizeTop?: number;\n /** Minimum size of the bottom fragment. */\n minSizeBottom?: number;\n}\n\n/** Properties for a [[ContentLayoutDef]]\n * @public\n * @deprecated in 4.10.x. Use `ContentLayoutProps` from `@itwin/appui-react`.\n */\nexport interface ContentLayoutProps extends LayoutFragmentProps {\n /** ID for this Content Layout */\n id: string;\n /** Description of the layout*/\n description?: string;\n}\n"]}
@@ -12,96 +12,96 @@
12
12
  * @deprecated in 4.10.x. Use `StandardContentLayouts` from `@itwin/appui-react`.
13
13
  */
14
14
  export class StandardContentLayouts {
15
+ static singleView = {
16
+ id: "uia:singleView",
17
+ description: "Single Content View",
18
+ };
19
+ static fourQuadrants = {
20
+ id: "uia:fourQuadrants",
21
+ description: "Four Views, two stacked on the left, two stacked on the right",
22
+ verticalSplit: {
23
+ id: "uia:fourQuadrantVerticalSplit",
24
+ percentage: 0.50,
25
+ lock: false,
26
+ minSizeLeft: 100,
27
+ minSizeRight: 100,
28
+ left: { horizontalSplit: { id: "uia:fourQuadrantsLeftHorizontal", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
29
+ right: { horizontalSplit: { id: "uia:fourQuadrantsRightHorizontal", percentage: 0.50, top: 2, bottom: 3, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
30
+ },
31
+ };
32
+ static twoVerticalSplit = {
33
+ id: "uia:twoVerticalSplit",
34
+ description: "Two Views, side by side",
35
+ verticalSplit: {
36
+ id: "uia:twoViewsVerticalSplit",
37
+ percentage: 0.50,
38
+ left: 0,
39
+ right: 1,
40
+ },
41
+ };
42
+ static twoHorizontalSplit = {
43
+ id: "uia:twoHorizontalSplit",
44
+ description: "Two views, stack one on top of the other",
45
+ horizontalSplit: {
46
+ id: "uia:twoViewsHorizontalSplit",
47
+ percentage: 0.50,
48
+ lock: false,
49
+ top: 0,
50
+ bottom: 1,
51
+ },
52
+ };
53
+ static threeViewsTwoOnLeft = {
54
+ id: "uia:threeViewsTwoOnLeft",
55
+ description: "Three views, one on the right with the two on the left stacked one of top of the other",
56
+ verticalSplit: {
57
+ id: "uia:twoViewsOnLeftSplit",
58
+ percentage: 0.50,
59
+ left: { horizontalSplit: { id: "uia:twoViewsOnLeftHorizontal", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
60
+ right: 2,
61
+ },
62
+ };
63
+ static threeViewsTwoOnRight = {
64
+ id: "uia:threeViewsTwoOnRight",
65
+ description: "Three views, one on the left with the two on the right stacked one of top of the other",
66
+ verticalSplit: {
67
+ id: "uia:twoViewsOnRightSplit",
68
+ percentage: 0.50,
69
+ left: 0,
70
+ right: { horizontalSplit: { id: "uia:twoViewsOnRightHorizontal", percentage: 0.50, top: 1, bottom: 2, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
71
+ },
72
+ };
73
+ static threeViewsTwoOnBottom = {
74
+ id: "uia:threeViewsTwoOnBottom",
75
+ description: "Three Views, one on top and two side by side on the bottom",
76
+ horizontalSplit: {
77
+ id: "uia:threeViewsTwoOnBottomHorizontal",
78
+ percentage: 0.50,
79
+ lock: false,
80
+ top: 0,
81
+ bottom: { verticalSplit: { id: "uia:twoViewsOnBottomVertical", percentage: 0.50, left: 1, right: 2, lock: false, minSizeLeft: 50, minSizeRight: 50 } },
82
+ },
83
+ };
84
+ static threeViewsTwoOnTop = {
85
+ id: "uia:threeViewsTwoOnTop",
86
+ description: "Three Views, two side by side on top and one on the bottom",
87
+ horizontalSplit: {
88
+ id: "uia:twoViewsOnTopHorizontal",
89
+ percentage: 0.50,
90
+ lock: false,
91
+ top: { verticalSplit: { id: "uia:twoViewsOnTopVertical", percentage: 0.50, left: 0, right: 1, lock: false, minSizeLeft: 50, minSizeRight: 50 } },
92
+ bottom: 2,
93
+ },
94
+ };
95
+ // provides and iterable list of standard content layouts
96
+ static availableLayouts = [
97
+ StandardContentLayouts.singleView,
98
+ StandardContentLayouts.fourQuadrants,
99
+ StandardContentLayouts.twoVerticalSplit,
100
+ StandardContentLayouts.twoHorizontalSplit,
101
+ StandardContentLayouts.threeViewsTwoOnLeft,
102
+ StandardContentLayouts.threeViewsTwoOnRight,
103
+ StandardContentLayouts.threeViewsTwoOnBottom,
104
+ StandardContentLayouts.threeViewsTwoOnTop,
105
+ ];
15
106
  }
16
- StandardContentLayouts.singleView = {
17
- id: "uia:singleView",
18
- description: "Single Content View",
19
- };
20
- StandardContentLayouts.fourQuadrants = {
21
- id: "uia:fourQuadrants",
22
- description: "Four Views, two stacked on the left, two stacked on the right",
23
- verticalSplit: {
24
- id: "uia:fourQuadrantVerticalSplit",
25
- percentage: 0.50,
26
- lock: false,
27
- minSizeLeft: 100,
28
- minSizeRight: 100,
29
- left: { horizontalSplit: { id: "uia:fourQuadrantsLeftHorizontal", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
30
- right: { horizontalSplit: { id: "uia:fourQuadrantsRightHorizontal", percentage: 0.50, top: 2, bottom: 3, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
31
- },
32
- };
33
- StandardContentLayouts.twoVerticalSplit = {
34
- id: "uia:twoVerticalSplit",
35
- description: "Two Views, side by side",
36
- verticalSplit: {
37
- id: "uia:twoViewsVerticalSplit",
38
- percentage: 0.50,
39
- left: 0,
40
- right: 1,
41
- },
42
- };
43
- StandardContentLayouts.twoHorizontalSplit = {
44
- id: "uia:twoHorizontalSplit",
45
- description: "Two views, stack one on top of the other",
46
- horizontalSplit: {
47
- id: "uia:twoViewsHorizontalSplit",
48
- percentage: 0.50,
49
- lock: false,
50
- top: 0,
51
- bottom: 1,
52
- },
53
- };
54
- StandardContentLayouts.threeViewsTwoOnLeft = {
55
- id: "uia:threeViewsTwoOnLeft",
56
- description: "Three views, one on the right with the two on the left stacked one of top of the other",
57
- verticalSplit: {
58
- id: "uia:twoViewsOnLeftSplit",
59
- percentage: 0.50,
60
- left: { horizontalSplit: { id: "uia:twoViewsOnLeftHorizontal", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
61
- right: 2,
62
- },
63
- };
64
- StandardContentLayouts.threeViewsTwoOnRight = {
65
- id: "uia:threeViewsTwoOnRight",
66
- description: "Three views, one on the left with the two on the right stacked one of top of the other",
67
- verticalSplit: {
68
- id: "uia:twoViewsOnRightSplit",
69
- percentage: 0.50,
70
- left: 0,
71
- right: { horizontalSplit: { id: "uia:twoViewsOnRightHorizontal", percentage: 0.50, top: 1, bottom: 2, lock: false, minSizeTop: 50, minSizeBottom: 50 } },
72
- },
73
- };
74
- StandardContentLayouts.threeViewsTwoOnBottom = {
75
- id: "uia:threeViewsTwoOnBottom",
76
- description: "Three Views, one on top and two side by side on the bottom",
77
- horizontalSplit: {
78
- id: "uia:threeViewsTwoOnBottomHorizontal",
79
- percentage: 0.50,
80
- lock: false,
81
- top: 0,
82
- bottom: { verticalSplit: { id: "uia:twoViewsOnBottomVertical", percentage: 0.50, left: 1, right: 2, lock: false, minSizeLeft: 50, minSizeRight: 50 } },
83
- },
84
- };
85
- StandardContentLayouts.threeViewsTwoOnTop = {
86
- id: "uia:threeViewsTwoOnTop",
87
- description: "Three Views, two side by side on top and one on the bottom",
88
- horizontalSplit: {
89
- id: "uia:twoViewsOnTopHorizontal",
90
- percentage: 0.50,
91
- lock: false,
92
- top: { verticalSplit: { id: "uia:twoViewsOnTopVertical", percentage: 0.50, left: 0, right: 1, lock: false, minSizeLeft: 50, minSizeRight: 50 } },
93
- bottom: 2,
94
- },
95
- };
96
- // provides and iterable list of standard content layouts
97
- StandardContentLayouts.availableLayouts = [
98
- StandardContentLayouts.singleView,
99
- StandardContentLayouts.fourQuadrants,
100
- StandardContentLayouts.twoVerticalSplit,
101
- StandardContentLayouts.twoHorizontalSplit,
102
- StandardContentLayouts.threeViewsTwoOnLeft,
103
- StandardContentLayouts.threeViewsTwoOnRight,
104
- StandardContentLayouts.threeViewsTwoOnBottom,
105
- StandardContentLayouts.threeViewsTwoOnTop,
106
- ];
107
107
  //# sourceMappingURL=StandardContentLayouts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StandardContentLayouts.js","sourceRoot":"","sources":["../../../../src/appui-abstract/content/StandardContentLayouts.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,qDAAqD;AAErD;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;;AACV,iCAAU,GAAuB;IACtD,EAAE,EAAE,gBAAgB;IACpB,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEqB,oCAAa,GAAuB;IACzD,EAAE,EAAE,mBAAmB;IACvB,WAAW,EAAE,+DAA+D;IAC5E,aAAa,EAAE;QACb,EAAE,EAAE,+BAA+B;QACnC,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,GAAG;QAChB,YAAY,EAAE,GAAG;QACjB,IAAI,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,iCAAiC,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE;QACzJ,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,kCAAkC,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE;KAC5J;CACF,CAAC;AAEqB,uCAAgB,GAAuB;IAC5D,EAAE,EAAE,sBAA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,EAAE,EAAE,2BAA2B;IAC/B,WAAW,EAAE,4DAA4D;IACzE,eAAe,EAAE;QACf,EAAE,EAAE,qCAAqC;QACzC,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,KAAK;QACX,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE;KACvJ;CACF,CAAC;AAEqB,yCAAkB,GAAuB;IAC9D,EAAE,EAAE,wBAAwB;IAC5B,WAAW,EAAE,4DAA4D;IACzE,eAAe,EAAE;QACf,EAAE,EAAE,6BAA6B;QACjC,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,KAAK;QACX,GAAG,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,2BAA2B,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE;QAChJ,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEF,yDAAyD;AAClC,uCAAgB,GAAyB;IAC9D,sBAAsB,CAAC,UAAU;IACjC,sBAAsB,CAAC,aAAa;IACpC,sBAAsB,CAAC,gBAAgB;IACvC,sBAAsB,CAAC,kBAAkB;IACzC,sBAAsB,CAAC,mBAAmB;IAC1C,sBAAsB,CAAC,oBAAoB;IAC3C,sBAAsB,CAAC,qBAAqB;IAC5C,sBAAsB,CAAC,kBAAkB;CAC1C,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 ContentView\r\n */\r\n\r\nimport { ContentLayoutProps } from \"./ContentLayoutProps\";\r\n\r\n/* eslint-disable @typescript-eslint/no-deprecated */\r\n\r\n/**\r\n * Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.\r\n * @public\r\n * @deprecated in 4.10.x. Use `StandardContentLayouts` from `@itwin/appui-react`.\r\n */\r\nexport class StandardContentLayouts {\r\n public static readonly singleView: ContentLayoutProps = {\r\n id: \"uia:singleView\",\r\n description: \"Single Content View\",\r\n };\r\n\r\n public static readonly fourQuadrants: ContentLayoutProps = {\r\n id: \"uia:fourQuadrants\",\r\n description: \"Four Views, two stacked on the left, two stacked on the right\",\r\n verticalSplit: {\r\n id: \"uia:fourQuadrantVerticalSplit\",\r\n percentage: 0.50,\r\n lock: false,\r\n minSizeLeft: 100,\r\n minSizeRight: 100,\r\n left: { horizontalSplit: { id: \"uia:fourQuadrantsLeftHorizontal\", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\r\n right: { horizontalSplit: { id: \"uia:fourQuadrantsRightHorizontal\", percentage: 0.50, top: 2, bottom: 3, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\r\n },\r\n };\r\n\r\n public static readonly twoVerticalSplit: ContentLayoutProps = {\r\n id: \"uia:twoVerticalSplit\",\r\n description: \"Two Views, side by side\",\r\n verticalSplit: {\r\n id: \"uia:twoViewsVerticalSplit\",\r\n percentage: 0.50,\r\n left: 0,\r\n right: 1,\r\n },\r\n };\r\n public static readonly twoHorizontalSplit: ContentLayoutProps = {\r\n id: \"uia:twoHorizontalSplit\",\r\n description: \"Two views, stack one on top of the other\",\r\n horizontalSplit: {\r\n id: \"uia:twoViewsHorizontalSplit\",\r\n percentage: 0.50,\r\n lock: false,\r\n top: 0,\r\n bottom: 1,\r\n },\r\n };\r\n\r\n public static readonly threeViewsTwoOnLeft: ContentLayoutProps = {\r\n id: \"uia:threeViewsTwoOnLeft\",\r\n description: \"Three views, one on the right with the two on the left stacked one of top of the other\",\r\n verticalSplit: {\r\n id: \"uia:twoViewsOnLeftSplit\",\r\n percentage: 0.50,\r\n left: { horizontalSplit: { id: \"uia:twoViewsOnLeftHorizontal\", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\r\n right: 2,\r\n },\r\n };\r\n\r\n public static readonly threeViewsTwoOnRight: ContentLayoutProps = {\r\n id: \"uia:threeViewsTwoOnRight\",\r\n description: \"Three views, one on the left with the two on the right stacked one of top of the other\",\r\n verticalSplit: {\r\n id: \"uia:twoViewsOnRightSplit\",\r\n percentage: 0.50,\r\n left: 0,\r\n right: { horizontalSplit: { id: \"uia:twoViewsOnRightHorizontal\", percentage: 0.50, top: 1, bottom: 2, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\r\n },\r\n };\r\n\r\n public static readonly threeViewsTwoOnBottom: ContentLayoutProps = {\r\n id: \"uia:threeViewsTwoOnBottom\",\r\n description: \"Three Views, one on top and two side by side on the bottom\",\r\n horizontalSplit: {\r\n id: \"uia:threeViewsTwoOnBottomHorizontal\",\r\n percentage: 0.50,\r\n lock: false,\r\n top: 0,\r\n bottom: { verticalSplit: { id: \"uia:twoViewsOnBottomVertical\", percentage: 0.50, left: 1, right: 2, lock: false, minSizeLeft: 50, minSizeRight: 50 } },\r\n },\r\n };\r\n\r\n public static readonly threeViewsTwoOnTop: ContentLayoutProps = {\r\n id: \"uia:threeViewsTwoOnTop\",\r\n description: \"Three Views, two side by side on top and one on the bottom\",\r\n horizontalSplit: {\r\n id: \"uia:twoViewsOnTopHorizontal\",\r\n percentage: 0.50,\r\n lock: false,\r\n top: { verticalSplit: { id: \"uia:twoViewsOnTopVertical\", percentage: 0.50, left: 0, right: 1, lock: false, minSizeLeft: 50, minSizeRight: 50 } },\r\n bottom: 2,\r\n },\r\n };\r\n\r\n // provides and iterable list of standard content layouts\r\n public static readonly availableLayouts: ContentLayoutProps[] = [\r\n StandardContentLayouts.singleView,\r\n StandardContentLayouts.fourQuadrants,\r\n StandardContentLayouts.twoVerticalSplit,\r\n StandardContentLayouts.twoHorizontalSplit,\r\n StandardContentLayouts.threeViewsTwoOnLeft,\r\n StandardContentLayouts.threeViewsTwoOnRight,\r\n StandardContentLayouts.threeViewsTwoOnBottom,\r\n StandardContentLayouts.threeViewsTwoOnTop,\r\n ];\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"StandardContentLayouts.js","sourceRoot":"","sources":["../../../../src/appui-abstract/content/StandardContentLayouts.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,qDAAqD;AAErD;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;IAC1B,MAAM,CAAU,UAAU,GAAuB;QACtD,EAAE,EAAE,gBAAgB;QACpB,WAAW,EAAE,qBAAqB;KACnC,CAAC;IAEK,MAAM,CAAU,aAAa,GAAuB;QACzD,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,+DAA+D;QAC5E,aAAa,EAAE;YACb,EAAE,EAAE,+BAA+B;YACnC,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,GAAG;YAChB,YAAY,EAAE,GAAG;YACjB,IAAI,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,iCAAiC,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE;YACzJ,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,kCAAkC,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE;SAC5J;KACF,CAAC;IAEK,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ent":["/*---------------------------------------------------------------------------------------------\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 ContentView\n */\n\nimport { ContentLayoutProps } from \"./ContentLayoutProps\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/**\n * Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.\n * @public\n * @deprecated in 4.10.x. Use `StandardContentLayouts` from `@itwin/appui-react`.\n */\nexport class StandardContentLayouts {\n public static readonly singleView: ContentLayoutProps = {\n id: \"uia:singleView\",\n description: \"Single Content View\",\n };\n\n public static readonly fourQuadrants: ContentLayoutProps = {\n id: \"uia:fourQuadrants\",\n description: \"Four Views, two stacked on the left, two stacked on the right\",\n verticalSplit: {\n id: \"uia:fourQuadrantVerticalSplit\",\n percentage: 0.50,\n lock: false,\n minSizeLeft: 100,\n minSizeRight: 100,\n left: { horizontalSplit: { id: \"uia:fourQuadrantsLeftHorizontal\", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\n right: { horizontalSplit: { id: \"uia:fourQuadrantsRightHorizontal\", percentage: 0.50, top: 2, bottom: 3, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\n },\n };\n\n public static readonly twoVerticalSplit: ContentLayoutProps = {\n id: \"uia:twoVerticalSplit\",\n description: \"Two Views, side by side\",\n verticalSplit: {\n id: \"uia:twoViewsVerticalSplit\",\n percentage: 0.50,\n left: 0,\n right: 1,\n },\n };\n public static readonly twoHorizontalSplit: ContentLayoutProps = {\n id: \"uia:twoHorizontalSplit\",\n description: \"Two views, stack one on top of the other\",\n horizontalSplit: {\n id: \"uia:twoViewsHorizontalSplit\",\n percentage: 0.50,\n lock: false,\n top: 0,\n bottom: 1,\n },\n };\n\n public static readonly threeViewsTwoOnLeft: ContentLayoutProps = {\n id: \"uia:threeViewsTwoOnLeft\",\n description: \"Three views, one on the right with the two on the left stacked one of top of the other\",\n verticalSplit: {\n id: \"uia:twoViewsOnLeftSplit\",\n percentage: 0.50,\n left: { horizontalSplit: { id: \"uia:twoViewsOnLeftHorizontal\", percentage: 0.50, top: 0, bottom: 1, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\n right: 2,\n },\n };\n\n public static readonly threeViewsTwoOnRight: ContentLayoutProps = {\n id: \"uia:threeViewsTwoOnRight\",\n description: \"Three views, one on the left with the two on the right stacked one of top of the other\",\n verticalSplit: {\n id: \"uia:twoViewsOnRightSplit\",\n percentage: 0.50,\n left: 0,\n right: { horizontalSplit: { id: \"uia:twoViewsOnRightHorizontal\", percentage: 0.50, top: 1, bottom: 2, lock: false, minSizeTop: 50, minSizeBottom: 50 } },\n },\n };\n\n public static readonly threeViewsTwoOnBottom: ContentLayoutProps = {\n id: \"uia:threeViewsTwoOnBottom\",\n description: \"Three Views, one on top and two side by side on the bottom\",\n horizontalSplit: {\n id: \"uia:threeViewsTwoOnBottomHorizontal\",\n percentage: 0.50,\n lock: false,\n top: 0,\n bottom: { verticalSplit: { id: \"uia:twoViewsOnBottomVertical\", percentage: 0.50, left: 1, right: 2, lock: false, minSizeLeft: 50, minSizeRight: 50 } },\n },\n };\n\n public static readonly threeViewsTwoOnTop: ContentLayoutProps = {\n id: \"uia:threeViewsTwoOnTop\",\n description: \"Three Views, two side by side on top and one on the bottom\",\n horizontalSplit: {\n id: \"uia:twoViewsOnTopHorizontal\",\n percentage: 0.50,\n lock: false,\n top: { verticalSplit: { id: \"uia:twoViewsOnTopVertical\", percentage: 0.50, left: 0, right: 1, lock: false, minSizeLeft: 50, minSizeRight: 50 } },\n bottom: 2,\n },\n };\n\n // provides and iterable list of standard content layouts\n public static readonly availableLayouts: ContentLayoutProps[] = [\n StandardContentLayouts.singleView,\n StandardContentLayouts.fourQuadrants,\n StandardContentLayouts.twoVerticalSplit,\n StandardContentLayouts.twoHorizontalSplit,\n StandardContentLayouts.threeViewsTwoOnLeft,\n StandardContentLayouts.threeViewsTwoOnRight,\n StandardContentLayouts.threeViewsTwoOnBottom,\n StandardContentLayouts.threeViewsTwoOnTop,\n ];\n\n}\n"]}
@@ -33,7 +33,7 @@ export interface DialogItem extends BaseDialogItem {
33
33
  readonly editorPosition: EditorPosition;
34
34
  readonly lockProperty?: BaseDialogItem;
35
35
  }
36
- /** [[DialogPropertyItem]] us the specification to use if you are defining the components directly, e.g., in React
36
+ /** [[DialogPropertyItem]] is the specification to use if you are defining the components directly, e.g., in React
37
37
  * @public
38
38
  */
39
39
  export interface DialogPropertyItem {
@@ -9,6 +9,10 @@
9
9
  * @public
10
10
  */
11
11
  export class DialogProperty {
12
+ description;
13
+ _value;
14
+ _displayValue;
15
+ _isDisabled;
12
16
  constructor(description, _value, _displayValue, _isDisabled) {
13
17
  this.description = description;
14
18
  this._value = _value;
@@ -1 +1 @@
1
- {"version":3,"file":"DialogItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/dialogs/DialogItem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAqDH;;GAEG;AACH,MAAM,OAAO,cAAc;IACzB,YAAmB,WAAgC,EAAU,MAAS,EAAU,aAAsB,EAAU,WAAqB;QAAlH,gBAAW,GAAX,WAAW,CAAqB;QAAU,WAAM,GAAN,MAAM,CAAG;QAAU,kBAAa,GAAb,aAAa,CAAS;QAAU,gBAAW,GAAX,WAAW,CAAU;IAAI,CAAC;IAE1I,IAAW,UAAU;QACnB,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAW,UAAU,CAAC,GAAY;QAChC,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAW,KAAK,CAAC,GAAM;QACrB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACpB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CA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,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,CAAC;IACjI,CAAC;CACF","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 Dialog\r\n */\r\n\r\nimport { PropertyDescription } from \"../properties/Description\";\r\n\r\n/** [[DialogItemValue]] Interface of PrimitiveValue types that have type editor support for use in dialogs.\r\n * @public\r\n */\r\nexport interface DialogItemValue {\r\n value?: number | string | boolean | Date;\r\n displayValue?: string;\r\n}\r\n/** [[EditorPosition]] Interface used to identify the location of the item a DialogItem property value.\r\n * @public\r\n */\r\nexport interface EditorPosition {\r\n /** Determine the order the row is shown in UI */\r\n rowPriority: number;\r\n /** Determines the column position for the type editor */\r\n columnIndex: number;\r\n}\r\n\r\n/** [[BaseDialogItem]] contains only the members necessary to create a PropertyRecord.\r\n * @public\r\n */\r\nexport interface BaseDialogItem {\r\n readonly value: DialogItemValue;\r\n readonly property: PropertyDescription;\r\n readonly isDisabled?: boolean;\r\n}\r\n/** [[DialogItem]] is the specification that the display engine turns into a UI item.\r\n * @public\r\n */\r\nexport interface DialogItem extends BaseDialogItem {\r\n readonly editorPosition: EditorPosition;\r\n readonly lockProperty?: BaseDialogItem;\r\n}\r\n\r\n/** [[DialogPropertyItem]] us the specification to use if you are defining the components directly, e.g., in React\r\n * @public\r\n */\r\nexport interface DialogPropertyItem {\r\n readonly value: DialogItemValue;\r\n readonly propertyName: string;\r\n}\r\n\r\n/** [[DialogPropertySyncItem]] is used to pass sync messages for DialogPropertyItems\r\n * @public\r\n */\r\nexport interface DialogPropertySyncItem extends DialogPropertyItem {\r\n readonly isDisabled?: boolean;\r\n readonly property?: PropertyDescription;\r\n}\r\n\r\n/** [[DialogProperty]] is a generic helper class that assists working with properties used by UiLayoutDataProvider implementations (i.e. Tool Settings and Dynamic Dialogs).\r\n * @public\r\n */\r\nexport class DialogProperty<T> {\r\n constructor(public description: PropertyDescription, private _value: T, private _displayValue?: string, private _isDisabled?: boolean) { }\r\n\r\n public get isDisabled() {\r\n return !!this._isDisabled;\r\n }\r\n\r\n public set isDisabled(val: boolean) {\r\n this._isDisabled = val;\r\n }\r\n\r\n public get value() {\r\n return this._value;\r\n }\r\n\r\n public set value(val: T) {\r\n this._value = val;\r\n }\r\n\r\n public get name() {\r\n return this.description.name;\r\n }\r\n\r\n public set displayValue(val: string | undefined) {\r\n this._displayValue = val;\r\n }\r\n\r\n public get displayValue() {\r\n return this._displayValue;\r\n }\r\n\r\n public get dialogItemValue() {\r\n // istanbul ignore else\r\n if (typeof this._value === \"string\" || typeof this._value === \"number\" || typeof this._value === \"undefined\" || typeof this._value === \"boolean\" || this._value instanceof Date)\r\n return {\r\n value: this._value,\r\n displayValue: this._displayValue,\r\n } as DialogItemValue;\r\n // istanbul ignore next\r\n throw new Error(\"Not valid primitive type\");\r\n }\r\n\r\n public set dialogItemValue(val: DialogItemValue) {\r\n this._value = val.value as unknown as T;\r\n this._displayValue = val.displayValue;\r\n }\r\n\r\n public get syncItem(): DialogPropertySyncItem {\r\n const isDisabled = this._isDisabled;\r\n return { propertyName: this.name, value: this.dialogItemValue, isDisabled };\r\n }\r\n\r\n public get item(): DialogPropertyItem {\r\n return { propertyName: this.name, value: this.dialogItemValue };\r\n }\r\n\r\n public toDialogItem(editorPosition: EditorPosition, lockProperty?: DialogItem): DialogItem {\r\n return { value: this.dialogItemValue, property: this.description, editorPosition, isDisabled: this._isDisabled, lockProperty };\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"DialogItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/dialogs/DialogItem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAqDH;;GAEG;AACH,MAAM,OAAO,cAAc;IACN;IAA0C;IAAmB;IAAgC;IAAhH,YAAmB,WAAgC,EAAU,MAAS,EAAU,aAAsB,E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,CAAC,YAAY,CAAC;IACxC,CAAC;IAED,IAAW,QAAQ;QACjB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9E,CAAC;IAED,IAAW,IAAI;QACb,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC;IAClE,CAAC;IAEM,YAAY,CAAC,cAA8B,EAAE,YAAyB;QAC3E,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,CAAC;IACjI,CAAC;CACF","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 Dialog\n */\n\nimport { PropertyDescription } from \"../properties/Description\";\n\n/** [[DialogItemValue]] Interface of PrimitiveValue types that have type editor support for use in dialogs.\n * @public\n */\nexport interface DialogItemValue {\n value?: number | string | boolean | Date;\n displayValue?: string;\n}\n/** [[EditorPosition]] Interface used to identify the location of the item a DialogItem property value.\n * @public\n */\nexport interface EditorPosition {\n /** Determine the order the row is shown in UI */\n rowPriority: number;\n /** Determines the column position for the type editor */\n columnIndex: number;\n}\n\n/** [[BaseDialogItem]] contains only the members necessary to create a PropertyRecord.\n * @public\n */\nexport interface BaseDialogItem {\n readonly value: DialogItemValue;\n readonly property: PropertyDescription;\n readonly isDisabled?: boolean;\n}\n/** [[DialogItem]] is the specification that the display engine turns into a UI item.\n * @public\n */\nexport interface DialogItem extends BaseDialogItem {\n readonly editorPosition: EditorPosition;\n readonly lockProperty?: BaseDialogItem;\n}\n\n/** [[DialogPropertyItem]] is the specification to use if you are defining the components directly, e.g., in React\n * @public\n */\nexport interface DialogPropertyItem {\n readonly value: DialogItemValue;\n readonly propertyName: string;\n}\n\n/** [[DialogPropertySyncItem]] is used to pass sync messages for DialogPropertyItems\n * @public\n */\nexport interface DialogPropertySyncItem extends DialogPropertyItem {\n readonly isDisabled?: boolean;\n readonly property?: PropertyDescription;\n}\n\n/** [[DialogProperty]] is a generic helper class that assists working with properties used by UiLayoutDataProvider implementations (i.e. Tool Settings and Dynamic Dialogs).\n * @public\n */\nexport class DialogProperty<T> {\n constructor(public description: PropertyDescription, private _value: T, private _displayValue?: string, private _isDisabled?: boolean) { }\n\n public get isDisabled() {\n return !!this._isDisabled;\n }\n\n public set isDisabled(val: boolean) {\n this._isDisabled = val;\n }\n\n public get value() {\n return this._value;\n }\n\n public set value(val: T) {\n this._value = val;\n }\n\n public get name() {\n return this.description.name;\n }\n\n public set displayValue(val: string | undefined) {\n this._displayValue = val;\n }\n\n public get displayValue() {\n return this._displayValue;\n }\n\n public get dialogItemValue() {\n // istanbul ignore else\n if (typeof this._value === \"string\" || typeof this._value === \"number\" || typeof this._value === \"undefined\" || typeof this._value === \"boolean\" || this._value instanceof Date)\n return {\n value: this._value,\n displayValue: this._displayValue,\n } as DialogItemValue;\n // istanbul ignore next\n throw new Error(\"Not valid primitive type\");\n }\n\n public set dialogItemValue(val: DialogItemValue) {\n this._value = val.value as unknown as T;\n this._displayValue = val.displayValue;\n }\n\n public get syncItem(): DialogPropertySyncItem {\n const isDisabled = this._isDisabled;\n return { propertyName: this.name, value: this.dialogItemValue, isDisabled };\n }\n\n public get item(): DialogPropertyItem {\n return { propertyName: this.name, value: this.dialogItemValue };\n }\n\n public toDialogItem(editorPosition: EditorPosition, lockProperty?: DialogItem): DialogItem {\n return { value: this.dialogItemValue, property: this.description, editorPosition, isDisabled: this._isDisabled, lockProperty };\n }\n}\n"]}
@@ -16,15 +16,13 @@ export class SyncPropertiesChangeEvent extends BeUiEvent {
16
16
  */
17
17
  // istanbul ignore next
18
18
  export class UiDataProvider {
19
- constructor() {
20
- /** Get Sync UI Control Properties Event */
21
- this.onSyncPropertiesChangeEvent = new SyncPropertiesChangeEvent();
22
- this.onItemsReloadedEvent = new BeUiEvent();
23
- }
24
19
  /** Called by UI to inform data provider of changes. */
25
20
  processChangesInUi(_properties) {
26
21
  throw (new Error("Derived UiDataProvider must implement this method to apply changes to a bulk set of properties."));
27
22
  }
23
+ /** Get Sync UI Control Properties Event */
24
+ onSyncPropertiesChangeEvent = new SyncPropertiesChangeEvent();
25
+ onItemsReloadedEvent = new BeUiEvent();
28
26
  /** Called by UI to validate a property value */
29
27
  validateProperty(_item) {
30
28
  return { status: PropertyChangeStatus.Success };