@xh/hoist 82.0.1 → 82.0.3

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 (715) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/types/admin/AdminUtils.d.ts +11 -0
  3. package/build/types/admin/AppComponent.d.ts +3 -0
  4. package/build/types/admin/AppModel.d.ts +19 -0
  5. package/build/types/admin/columns/Clients.d.ts +8 -0
  6. package/build/types/admin/columns/Core.d.ts +9 -0
  7. package/build/types/admin/columns/Rest.d.ts +6 -0
  8. package/build/types/admin/columns/Tracking.d.ts +32 -0
  9. package/build/types/admin/columns/User.d.ts +9 -0
  10. package/build/types/admin/columns/UserData.d.ts +7 -0
  11. package/build/types/admin/columns/index.d.ts +6 -0
  12. package/build/types/admin/differ/Differ.d.ts +2 -0
  13. package/build/types/admin/differ/DifferDetail.d.ts +3 -0
  14. package/build/types/admin/differ/DifferDetailModel.d.ts +17 -0
  15. package/build/types/admin/differ/DifferModel.d.ts +52 -0
  16. package/build/types/admin/jsonsearch/JsonSearch.d.ts +17 -0
  17. package/build/types/admin/jsonsearch/impl/JsonSearchImplModel.d.ts +32 -0
  18. package/build/types/admin/regroup/RegroupDialog.d.ts +2 -0
  19. package/build/types/admin/regroup/RegroupDialogModel.d.ts +20 -0
  20. package/build/types/admin/tabs/BaseAdminTabModel.d.ts +5 -0
  21. package/build/types/admin/tabs/activity/aggregators/RangeAggregator.d.ts +8 -0
  22. package/build/types/admin/tabs/activity/tracking/ActivityTrackingModel.d.ts +62 -0
  23. package/build/types/admin/tabs/activity/tracking/ActivityTrackingPanel.d.ts +3 -0
  24. package/build/types/admin/tabs/activity/tracking/chart/AggChartModel.d.ts +34 -0
  25. package/build/types/admin/tabs/activity/tracking/chart/AggChartPanel.d.ts +2 -0
  26. package/build/types/admin/tabs/activity/tracking/datafields/DataFieldsEditor.d.ts +2 -0
  27. package/build/types/admin/tabs/activity/tracking/datafields/DataFieldsEditorModel.d.ts +46 -0
  28. package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailModel.d.ts +41 -0
  29. package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailView.d.ts +2 -0
  30. package/build/types/admin/tabs/clients/ClientsModel.d.ts +19 -0
  31. package/build/types/admin/tabs/clients/ClientsPanel.d.ts +2 -0
  32. package/build/types/admin/tabs/clients/activity/ClientDetailModel.d.ts +21 -0
  33. package/build/types/admin/tabs/clients/activity/ClientDetailPanel.d.ts +3 -0
  34. package/build/types/admin/tabs/cluster/index.d.ts +3 -0
  35. package/build/types/admin/tabs/cluster/instances/BaseInstanceModel.d.ts +9 -0
  36. package/build/types/admin/tabs/cluster/instances/InstancesTab.d.ts +4 -0
  37. package/build/types/admin/tabs/cluster/instances/InstancesTabModel.d.ts +27 -0
  38. package/build/types/admin/tabs/cluster/instances/connpool/ConnPoolMonitorModel.d.ts +15 -0
  39. package/build/types/admin/tabs/cluster/instances/connpool/ConnPoolMonitorPanel.d.ts +2 -0
  40. package/build/types/admin/tabs/cluster/instances/environment/ServerEnvModel.d.ts +12 -0
  41. package/build/types/admin/tabs/cluster/instances/environment/ServerEnvPanel.d.ts +2 -0
  42. package/build/types/admin/tabs/cluster/instances/logs/LogDisplay.d.ts +6 -0
  43. package/build/types/admin/tabs/cluster/instances/logs/LogDisplayModel.d.ts +34 -0
  44. package/build/types/admin/tabs/cluster/instances/logs/LogViewer.d.ts +3 -0
  45. package/build/types/admin/tabs/cluster/instances/logs/LogViewerModel.d.ts +24 -0
  46. package/build/types/admin/tabs/cluster/instances/logs/levels/LogLevelDialog.d.ts +2 -0
  47. package/build/types/admin/tabs/cluster/instances/logs/levels/LogLevelDialogModel.d.ts +13 -0
  48. package/build/types/admin/tabs/cluster/instances/memory/MemoryMonitorModel.d.ts +34 -0
  49. package/build/types/admin/tabs/cluster/instances/memory/MemoryMonitorPanel.d.ts +2 -0
  50. package/build/types/admin/tabs/cluster/instances/services/DetailsModel.d.ts +11 -0
  51. package/build/types/admin/tabs/cluster/instances/services/DetailsPanel.d.ts +2 -0
  52. package/build/types/admin/tabs/cluster/instances/services/ServiceModel.d.ts +16 -0
  53. package/build/types/admin/tabs/cluster/instances/services/ServicePanel.d.ts +2 -0
  54. package/build/types/admin/tabs/cluster/metrics/MetricsModel.d.ts +22 -0
  55. package/build/types/admin/tabs/cluster/metrics/MetricsPanel.d.ts +2 -0
  56. package/build/types/admin/tabs/cluster/objects/ClusterObjectsModel.d.ts +29 -0
  57. package/build/types/admin/tabs/cluster/objects/ClusterObjectsPanel.d.ts +3 -0
  58. package/build/types/admin/tabs/cluster/objects/DetailModel.d.ts +17 -0
  59. package/build/types/admin/tabs/cluster/objects/DetailPanel.d.ts +3 -0
  60. package/build/types/admin/tabs/general/about/AboutPanel.d.ts +2 -0
  61. package/build/types/admin/tabs/general/alertBanner/AlertBannerModel.d.ts +25 -0
  62. package/build/types/admin/tabs/general/alertBanner/AlertBannerPanel.d.ts +3 -0
  63. package/build/types/admin/tabs/general/config/ConfigPanel.d.ts +2 -0
  64. package/build/types/admin/tabs/general/config/ConfigPanelModel.d.ts +20 -0
  65. package/build/types/admin/tabs/general/index.d.ts +3 -0
  66. package/build/types/admin/tabs/monitor/MonitorColumns.d.ts +7 -0
  67. package/build/types/admin/tabs/monitor/MonitorTab.d.ts +3 -0
  68. package/build/types/admin/tabs/monitor/MonitorTabModel.d.ts +29 -0
  69. package/build/types/admin/tabs/monitor/Tile.d.ts +2 -0
  70. package/build/types/admin/tabs/monitor/Types.d.ts +25 -0
  71. package/build/types/admin/tabs/monitor/editor/MonitorEditorDialog.d.ts +2 -0
  72. package/build/types/admin/tabs/userData/index.d.ts +4 -0
  73. package/build/types/admin/tabs/userData/jsonblob/JsonBlobColumns.d.ts +8 -0
  74. package/build/types/admin/tabs/userData/jsonblob/JsonBlobModel.d.ts +14 -0
  75. package/build/types/admin/tabs/userData/jsonblob/JsonBlobPanel.d.ts +2 -0
  76. package/build/types/admin/tabs/userData/prefs/UserPreferenceModel.d.ts +8 -0
  77. package/build/types/admin/tabs/userData/prefs/UserPreferencePanel.d.ts +2 -0
  78. package/build/types/admin/tabs/userData/prefs/editor/PrefEditorDialog.d.ts +2 -0
  79. package/build/types/admin/tabs/userData/prefs/editor/PrefEditorModel.d.ts +16 -0
  80. package/build/types/admin/tabs/userData/roles/RoleModel.d.ts +44 -0
  81. package/build/types/admin/tabs/userData/roles/RolePanel.d.ts +2 -0
  82. package/build/types/admin/tabs/userData/roles/Types.d.ts +43 -0
  83. package/build/types/admin/tabs/userData/roles/details/RoleDetails.d.ts +3 -0
  84. package/build/types/admin/tabs/userData/roles/details/RoleDetailsModel.d.ts +15 -0
  85. package/build/types/admin/tabs/userData/roles/details/members/BaseMembersModel.d.ts +25 -0
  86. package/build/types/admin/tabs/userData/roles/details/members/DirectoryMembers.d.ts +13 -0
  87. package/build/types/admin/tabs/userData/roles/details/members/RoleMembers.d.ts +16 -0
  88. package/build/types/admin/tabs/userData/roles/details/members/UserMembers.d.ts +15 -0
  89. package/build/types/admin/tabs/userData/roles/editor/RoleEditor.d.ts +3 -0
  90. package/build/types/admin/tabs/userData/roles/editor/RoleEditorModel.d.ts +23 -0
  91. package/build/types/admin/tabs/userData/roles/editor/form/RoleForm.d.ts +3 -0
  92. package/build/types/admin/tabs/userData/roles/editor/form/RoleFormModel.d.ts +38 -0
  93. package/build/types/admin/tabs/userData/roles/graph/RoleGraph.d.ts +3 -0
  94. package/build/types/admin/tabs/userData/roles/graph/RoleGraphModel.d.ts +24 -0
  95. package/build/types/admin/tabs/userData/roles/recategorize/RecategorizeDialog.d.ts +2 -0
  96. package/build/types/admin/tabs/userData/roles/recategorize/RecategorizeDialogModel.d.ts +31 -0
  97. package/build/types/admin/tabs/userData/roles/warning/WarningBanner.d.ts +7 -0
  98. package/build/types/admin/tabs/userData/users/UserModel.d.ts +12 -0
  99. package/build/types/admin/tabs/userData/users/UserPanel.d.ts +2 -0
  100. package/build/types/appcontainer/AboutDialogModel.d.ts +14 -0
  101. package/build/types/appcontainer/AppContainerModel.d.ts +93 -0
  102. package/build/types/appcontainer/AppOption.d.ts +23 -0
  103. package/build/types/appcontainer/AppStateModel.d.ts +28 -0
  104. package/build/types/appcontainer/BannerModel.d.ts +26 -0
  105. package/build/types/appcontainer/BannerSourceModel.d.ts +15 -0
  106. package/build/types/appcontainer/ChangelogDialogModel.d.ts +9 -0
  107. package/build/types/appcontainer/ExceptionDialogModel.d.ts +30 -0
  108. package/build/types/appcontainer/FeedbackDialogModel.d.ts +21 -0
  109. package/build/types/appcontainer/ImpersonationBarModel.d.ts +22 -0
  110. package/build/types/appcontainer/MessageModel.d.ts +37 -0
  111. package/build/types/appcontainer/MessageSourceModel.d.ts +17 -0
  112. package/build/types/appcontainer/OptionsDialogModel.d.ts +25 -0
  113. package/build/types/appcontainer/PageStateModel.d.ts +16 -0
  114. package/build/types/appcontainer/RouterModel.d.ts +41 -0
  115. package/build/types/appcontainer/SizingModeModel.d.ts +13 -0
  116. package/build/types/appcontainer/ThemeModel.d.ts +13 -0
  117. package/build/types/appcontainer/ToastModel.d.ts +27 -0
  118. package/build/types/appcontainer/ToastSourceModel.d.ts +13 -0
  119. package/build/types/appcontainer/UserAgentModel.d.ts +13 -0
  120. package/build/types/appcontainer/ViewportSizeModel.d.ts +19 -0
  121. package/build/types/appcontainer/login/LoginPanelModel.d.ts +15 -0
  122. package/build/types/cmp/ag-grid/AgGrid.d.ts +30 -0
  123. package/build/types/cmp/ag-grid/AgGridModel.d.ts +180 -0
  124. package/build/types/cmp/ag-grid/index.d.ts +2 -0
  125. package/build/types/cmp/badge/Badge.d.ts +12 -0
  126. package/build/types/cmp/badge/index.d.ts +1 -0
  127. package/build/types/cmp/card/Card.d.ts +23 -0
  128. package/build/types/cmp/card/CardModel.d.ts +29 -0
  129. package/build/types/cmp/card/index.d.ts +1 -0
  130. package/build/types/cmp/chart/Chart.d.ts +17 -0
  131. package/build/types/cmp/chart/ChartModel.d.ts +55 -0
  132. package/build/types/cmp/chart/Types.d.ts +20 -0
  133. package/build/types/cmp/chart/impl/ChartContextMenuItems.d.ts +4 -0
  134. package/build/types/cmp/chart/impl/copyToClipboard.d.ts +5 -0
  135. package/build/types/cmp/chart/impl/zoomout.d.ts +5 -0
  136. package/build/types/cmp/chart/index.d.ts +2 -0
  137. package/build/types/cmp/chart/theme/Dark.d.ts +216 -0
  138. package/build/types/cmp/chart/theme/Light.d.ts +193 -0
  139. package/build/types/cmp/clock/Clock.d.ts +25 -0
  140. package/build/types/cmp/clock/index.d.ts +1 -0
  141. package/build/types/cmp/dataview/DataView.d.ts +21 -0
  142. package/build/types/cmp/dataview/DataViewModel.d.ts +117 -0
  143. package/build/types/cmp/dataview/index.d.ts +2 -0
  144. package/build/types/cmp/error/ErrorBoundary.d.ts +12 -0
  145. package/build/types/cmp/error/ErrorBoundaryModel.d.ts +43 -0
  146. package/build/types/cmp/error/ErrorMessage.d.ts +42 -0
  147. package/build/types/cmp/error/index.d.ts +3 -0
  148. package/build/types/cmp/filter/FilterChooserFieldSpec.d.ts +39 -0
  149. package/build/types/cmp/filter/FilterChooserModel.d.ts +147 -0
  150. package/build/types/cmp/filter/impl/Option.d.ts +47 -0
  151. package/build/types/cmp/filter/impl/QueryEngine.d.ts +29 -0
  152. package/build/types/cmp/filter/index.d.ts +1 -0
  153. package/build/types/cmp/form/BaseFormFieldProps.d.ts +33 -0
  154. package/build/types/cmp/form/Form.d.ts +41 -0
  155. package/build/types/cmp/form/FormModel.d.ts +130 -0
  156. package/build/types/cmp/form/field/BaseFieldModel.d.ts +159 -0
  157. package/build/types/cmp/form/field/FieldModel.d.ts +11 -0
  158. package/build/types/cmp/form/field/SubformsFieldModel.d.ts +70 -0
  159. package/build/types/cmp/form/formfieldset/FormFieldSet.d.ts +17 -0
  160. package/build/types/cmp/form/formfieldset/FormFieldSetModel.d.ts +40 -0
  161. package/build/types/cmp/form/index.d.ts +8 -0
  162. package/build/types/cmp/grid/Grid.d.ts +143 -0
  163. package/build/types/cmp/grid/GridAutosizeOptions.d.ts +49 -0
  164. package/build/types/cmp/grid/GridContextMenu.d.ts +28 -0
  165. package/build/types/cmp/grid/GridModel.d.ts +624 -0
  166. package/build/types/cmp/grid/GridSorter.d.ts +23 -0
  167. package/build/types/cmp/grid/Types.d.ts +285 -0
  168. package/build/types/cmp/grid/columns/Column.d.ts +380 -0
  169. package/build/types/cmp/grid/columns/ColumnGroup.d.ts +66 -0
  170. package/build/types/cmp/grid/columns/Core.d.ts +9 -0
  171. package/build/types/cmp/grid/columns/DatesTimes.d.ts +12 -0
  172. package/build/types/cmp/grid/columns/index.d.ts +4 -0
  173. package/build/types/cmp/grid/enums/ExcelFormat.d.ts +33 -0
  174. package/build/types/cmp/grid/enums/GridAutosizeMode.d.ts +24 -0
  175. package/build/types/cmp/grid/enums/TreeStyle.d.ts +15 -0
  176. package/build/types/cmp/grid/filter/GridFilterFieldSpec.d.ts +39 -0
  177. package/build/types/cmp/grid/filter/GridFilterModel.d.ts +44 -0
  178. package/build/types/cmp/grid/helpers/GridCountLabel.d.ts +24 -0
  179. package/build/types/cmp/grid/impl/ColumnGroupHeader.d.ts +24 -0
  180. package/build/types/cmp/grid/impl/ColumnHeader.d.ts +54 -0
  181. package/build/types/cmp/grid/impl/ColumnWidthCalculator.d.ts +41 -0
  182. package/build/types/cmp/grid/impl/GridHScrollbar.d.ts +10 -0
  183. package/build/types/cmp/grid/impl/InitPersist.d.ts +7 -0
  184. package/build/types/cmp/grid/impl/MenuSupport.d.ts +7 -0
  185. package/build/types/cmp/grid/impl/RowKeyNavSupport.d.ts +11 -0
  186. package/build/types/cmp/grid/impl/Utils.d.ts +11 -0
  187. package/build/types/cmp/grid/index.d.ts +15 -0
  188. package/build/types/cmp/grid/renderers/CheckboxRenderer.d.ts +14 -0
  189. package/build/types/cmp/grid/renderers/TagsRenderer.d.ts +3 -0
  190. package/build/types/cmp/grouping/GroupingChooserModel.d.ts +103 -0
  191. package/build/types/cmp/grouping/impl/GroupingChooserLocalModel.d.ts +35 -0
  192. package/build/types/cmp/grouping/index.d.ts +1 -0
  193. package/build/types/cmp/input/HoistInputModel.d.ts +148 -0
  194. package/build/types/cmp/input/HoistInputProps.d.ts +20 -0
  195. package/build/types/cmp/input/index.d.ts +2 -0
  196. package/build/types/cmp/layout/Box.d.ts +16 -0
  197. package/build/types/cmp/layout/Frame.d.ts +14 -0
  198. package/build/types/cmp/layout/Placeholder.d.ts +11 -0
  199. package/build/types/cmp/layout/Spacer.d.ts +14 -0
  200. package/build/types/cmp/layout/Tags.d.ts +38 -0
  201. package/build/types/cmp/layout/TileFrame.d.ts +37 -0
  202. package/build/types/cmp/layout/Viewport.d.ts +9 -0
  203. package/build/types/cmp/layout/index.d.ts +7 -0
  204. package/build/types/cmp/loadingindicator/LoadingIndicator.d.ts +25 -0
  205. package/build/types/cmp/loadingindicator/index.d.ts +1 -0
  206. package/build/types/cmp/markdown/Markdown.d.ts +18 -0
  207. package/build/types/cmp/markdown/index.d.ts +1 -0
  208. package/build/types/cmp/mask/Mask.d.ts +25 -0
  209. package/build/types/cmp/mask/index.d.ts +1 -0
  210. package/build/types/cmp/pinpad/PinPad.d.ts +9 -0
  211. package/build/types/cmp/pinpad/PinPadModel.d.ts +34 -0
  212. package/build/types/cmp/pinpad/index.d.ts +2 -0
  213. package/build/types/cmp/relativetimestamp/RelativeTimestamp.d.ts +58 -0
  214. package/build/types/cmp/relativetimestamp/index.d.ts +1 -0
  215. package/build/types/cmp/spinner/Spinner.d.ts +16 -0
  216. package/build/types/cmp/spinner/index.d.ts +1 -0
  217. package/build/types/cmp/store/StoreCountLabel.d.ts +17 -0
  218. package/build/types/cmp/store/StoreFilterField.d.ts +80 -0
  219. package/build/types/cmp/store/impl/StoreFilterFieldImplModel.d.ts +25 -0
  220. package/build/types/cmp/store/index.d.ts +2 -0
  221. package/build/types/cmp/tab/TabContainer.d.ts +34 -0
  222. package/build/types/cmp/tab/TabContainerModel.d.ts +137 -0
  223. package/build/types/cmp/tab/TabModel.d.ts +71 -0
  224. package/build/types/cmp/tab/Types.d.ts +61 -0
  225. package/build/types/cmp/tab/index.d.ts +4 -0
  226. package/build/types/cmp/treemap/SplitTreeMap.d.ts +9 -0
  227. package/build/types/cmp/treemap/SplitTreeMapModel.d.ts +78 -0
  228. package/build/types/cmp/treemap/TreeMap.d.ts +14 -0
  229. package/build/types/cmp/treemap/TreeMapModel.d.ts +181 -0
  230. package/build/types/cmp/treemap/index.d.ts +4 -0
  231. package/build/types/cmp/viewmanager/DataAccess.d.ts +28 -0
  232. package/build/types/cmp/viewmanager/View.d.ts +37 -0
  233. package/build/types/cmp/viewmanager/ViewInfo.d.ts +55 -0
  234. package/build/types/cmp/viewmanager/ViewManagerModel.d.ts +243 -0
  235. package/build/types/cmp/viewmanager/index.d.ts +4 -0
  236. package/build/types/cmp/websocket/WebSocketIndicator.d.ts +9 -0
  237. package/build/types/cmp/websocket/index.d.ts +1 -0
  238. package/build/types/cmp/zoneGrid/Types.d.ts +35 -0
  239. package/build/types/cmp/zoneGrid/ZoneGrid.d.ts +24 -0
  240. package/build/types/cmp/zoneGrid/ZoneGridModel.d.ts +256 -0
  241. package/build/types/cmp/zoneGrid/impl/InitPersist.d.ts +7 -0
  242. package/build/types/cmp/zoneGrid/impl/ZoneGridRenderer.d.ts +25 -0
  243. package/build/types/cmp/zoneGrid/impl/ZoneMapperModel.d.ts +67 -0
  244. package/build/types/cmp/zoneGrid/index.d.ts +3 -0
  245. package/build/types/core/AppSpec.d.ts +139 -0
  246. package/build/types/core/ExceptionHandler.d.ts +132 -0
  247. package/build/types/core/HoistAppModel.d.ts +72 -0
  248. package/build/types/core/HoistAuthModel.d.ts +70 -0
  249. package/build/types/core/HoistBase.d.ts +179 -0
  250. package/build/types/core/HoistBaseDecorators.d.ts +20 -0
  251. package/build/types/core/HoistComponent.d.ts +112 -0
  252. package/build/types/core/HoistProps.d.ts +116 -0
  253. package/build/types/core/HoistService.d.ts +57 -0
  254. package/build/types/core/RefreshContextView.d.ts +10 -0
  255. package/build/types/core/TaskObserver.d.ts +80 -0
  256. package/build/types/core/XH.d.ts +445 -0
  257. package/build/types/core/elem.d.ts +71 -0
  258. package/build/types/core/enums/RefreshMode.d.ts +16 -0
  259. package/build/types/core/enums/RenderMode.d.ts +14 -0
  260. package/build/types/core/enums/SizingMode.d.ts +10 -0
  261. package/build/types/core/impl/InstallServices.d.ts +18 -0
  262. package/build/types/core/impl/InstanceManager.d.ts +24 -0
  263. package/build/types/core/impl/PlatformManager.d.ts +13 -0
  264. package/build/types/core/index.d.ts +22 -0
  265. package/build/types/core/load/LoadSpec.d.ts +55 -0
  266. package/build/types/core/load/LoadSupport.d.ts +36 -0
  267. package/build/types/core/load/Loadable.d.ts +48 -0
  268. package/build/types/core/load/index.d.ts +3 -0
  269. package/build/types/core/model/CreatesSpec.d.ts +29 -0
  270. package/build/types/core/model/HoistModel.d.ts +203 -0
  271. package/build/types/core/model/Hooks.d.ts +28 -0
  272. package/build/types/core/model/ManagedRefreshContextModel.d.ts +23 -0
  273. package/build/types/core/model/ModelLookup.d.ts +26 -0
  274. package/build/types/core/model/ModelSelector.d.ts +27 -0
  275. package/build/types/core/model/ModelSpec.d.ts +30 -0
  276. package/build/types/core/model/RefreshContextModel.d.ts +45 -0
  277. package/build/types/core/model/RootRefreshContextModel.d.ts +14 -0
  278. package/build/types/core/model/UsesSpec.d.ts +49 -0
  279. package/build/types/core/model/index.d.ts +10 -0
  280. package/build/types/core/persist/PersistOptions.d.ts +46 -0
  281. package/build/types/core/persist/Persistable.d.ts +14 -0
  282. package/build/types/core/persist/PersistenceProvider.d.ts +69 -0
  283. package/build/types/core/persist/index.d.ts +9 -0
  284. package/build/types/core/persist/provider/CustomProvider.d.ts +15 -0
  285. package/build/types/core/persist/provider/DashViewProvider.d.ts +12 -0
  286. package/build/types/core/persist/provider/LocalStorageProvider.d.ts +10 -0
  287. package/build/types/core/persist/provider/PrefProvider.d.ts +10 -0
  288. package/build/types/core/persist/provider/SessionStorageProvider.d.ts +10 -0
  289. package/build/types/core/persist/provider/ViewManagerProvider.d.ts +9 -0
  290. package/build/types/core/types/AppState.d.ts +20 -0
  291. package/build/types/core/types/Interfaces.d.ts +303 -0
  292. package/build/types/core/types/Types.d.ts +72 -0
  293. package/build/types/data/Field.d.ts +90 -0
  294. package/build/types/data/RecordAction.d.ts +103 -0
  295. package/build/types/data/Store.d.ts +424 -0
  296. package/build/types/data/StoreRecord.d.ts +186 -0
  297. package/build/types/data/StoreSelectionModel.d.ts +52 -0
  298. package/build/types/data/UrlStore.d.ts +27 -0
  299. package/build/types/data/cube/BucketSpec.d.ts +31 -0
  300. package/build/types/data/cube/Cube.d.ts +180 -0
  301. package/build/types/data/cube/CubeField.d.ts +49 -0
  302. package/build/types/data/cube/Query.d.ts +121 -0
  303. package/build/types/data/cube/View.d.ts +106 -0
  304. package/build/types/data/cube/ViewRowData.d.ts +46 -0
  305. package/build/types/data/cube/aggregate/AggregationContext.d.ts +21 -0
  306. package/build/types/data/cube/aggregate/Aggregator.d.ts +40 -0
  307. package/build/types/data/cube/aggregate/AverageAggregator.d.ts +4 -0
  308. package/build/types/data/cube/aggregate/AverageStrictAggregator.d.ts +5 -0
  309. package/build/types/data/cube/aggregate/ChildCountAggregator.d.ts +5 -0
  310. package/build/types/data/cube/aggregate/LeafCountAggregator.d.ts +5 -0
  311. package/build/types/data/cube/aggregate/MaxAggregator.d.ts +5 -0
  312. package/build/types/data/cube/aggregate/MinAggregator.d.ts +5 -0
  313. package/build/types/data/cube/aggregate/NullAggregator.d.ts +4 -0
  314. package/build/types/data/cube/aggregate/SingleAggregator.d.ts +4 -0
  315. package/build/types/data/cube/aggregate/SumAggregator.d.ts +5 -0
  316. package/build/types/data/cube/aggregate/SumStrictAggregator.d.ts +5 -0
  317. package/build/types/data/cube/aggregate/UniqueAggregator.d.ts +5 -0
  318. package/build/types/data/cube/row/AggregateRow.d.ts +16 -0
  319. package/build/types/data/cube/row/BaseRow.d.ts +30 -0
  320. package/build/types/data/cube/row/BucketRow.d.ts +16 -0
  321. package/build/types/data/cube/row/LeafRow.d.ts +22 -0
  322. package/build/types/data/cube/row/RowUpdate.d.ts +10 -0
  323. package/build/types/data/filter/BaseFilterFieldSpec.d.ts +73 -0
  324. package/build/types/data/filter/CompoundFilter.d.ts +29 -0
  325. package/build/types/data/filter/FieldFilter.d.ts +34 -0
  326. package/build/types/data/filter/Filter.d.ts +30 -0
  327. package/build/types/data/filter/FunctionFilter.d.ts +24 -0
  328. package/build/types/data/filter/Types.d.ts +67 -0
  329. package/build/types/data/filter/Utils.d.ts +48 -0
  330. package/build/types/data/impl/RecordSet.d.ts +44 -0
  331. package/build/types/data/impl/RecordValidator.d.ts +38 -0
  332. package/build/types/data/impl/StoreValidator.d.ts +48 -0
  333. package/build/types/data/index.d.ts +34 -0
  334. package/build/types/data/validation/Rule.d.ts +16 -0
  335. package/build/types/data/validation/Types.d.ts +56 -0
  336. package/build/types/data/validation/ValidationState.d.ts +6 -0
  337. package/build/types/data/validation/constraints.d.ts +75 -0
  338. package/build/types/desktop/appcontainer/AboutDialog.d.ts +11 -0
  339. package/build/types/desktop/appcontainer/AppContainer.d.ts +12 -0
  340. package/build/types/desktop/appcontainer/Banner.d.ts +8 -0
  341. package/build/types/desktop/appcontainer/ChangelogDialog.d.ts +3 -0
  342. package/build/types/desktop/appcontainer/ExceptionDialog.d.ts +13 -0
  343. package/build/types/desktop/appcontainer/ExceptionDialogDetails.d.ts +8 -0
  344. package/build/types/desktop/appcontainer/FeedbackDialog.d.ts +6 -0
  345. package/build/types/desktop/appcontainer/ImpersonationBar.d.ts +9 -0
  346. package/build/types/desktop/appcontainer/LockoutPanel.d.ts +8 -0
  347. package/build/types/desktop/appcontainer/LoginPanel.d.ts +9 -0
  348. package/build/types/desktop/appcontainer/Message.d.ts +8 -0
  349. package/build/types/desktop/appcontainer/MessageSource.d.ts +6 -0
  350. package/build/types/desktop/appcontainer/OptionsDialog.d.ts +9 -0
  351. package/build/types/desktop/appcontainer/ToastSource.d.ts +8 -0
  352. package/build/types/desktop/appcontainer/VersionBar.d.ts +3 -0
  353. package/build/types/desktop/appcontainer/index.d.ts +1 -0
  354. package/build/types/desktop/appcontainer/suspend/IdlePanel.d.ts +8 -0
  355. package/build/types/desktop/appcontainer/suspend/SuspendPanel.d.ts +7 -0
  356. package/build/types/desktop/cmp/appOption/AutoRefreshAppOption.d.ts +341 -0
  357. package/build/types/desktop/cmp/appOption/SizingModeAppOption.d.ts +17 -0
  358. package/build/types/desktop/cmp/appOption/ThemeAppOption.d.ts +341 -0
  359. package/build/types/desktop/cmp/appOption/index.d.ts +3 -0
  360. package/build/types/desktop/cmp/appbar/AppBar.d.ts +34 -0
  361. package/build/types/desktop/cmp/appbar/AppBarSeparator.d.ts +5 -0
  362. package/build/types/desktop/cmp/appbar/index.d.ts +2 -0
  363. package/build/types/desktop/cmp/button/AppMenuButton.d.ts +44 -0
  364. package/build/types/desktop/cmp/button/Button.d.ts +28 -0
  365. package/build/types/desktop/cmp/button/ButtonGroup.d.ts +16 -0
  366. package/build/types/desktop/cmp/button/DashCanvasAddViewButton.d.ts +10 -0
  367. package/build/types/desktop/cmp/button/FeedbackButton.d.ts +8 -0
  368. package/build/types/desktop/cmp/button/LaunchAdminButton.d.ts +8 -0
  369. package/build/types/desktop/cmp/button/LogoutButton.d.ts +10 -0
  370. package/build/types/desktop/cmp/button/OptionsButton.d.ts +9 -0
  371. package/build/types/desktop/cmp/button/RefreshButton.d.ts +15 -0
  372. package/build/types/desktop/cmp/button/RestoreDefaultsButton.d.ts +16 -0
  373. package/build/types/desktop/cmp/button/ThemeToggleButton.d.ts +7 -0
  374. package/build/types/desktop/cmp/button/WhatsNewButton.d.ts +10 -0
  375. package/build/types/desktop/cmp/button/grid/ColAutosizeButton.d.ts +13 -0
  376. package/build/types/desktop/cmp/button/grid/ColChooserButton.d.ts +18 -0
  377. package/build/types/desktop/cmp/button/grid/ExpandToLevelButton.d.ts +18 -0
  378. package/build/types/desktop/cmp/button/grid/ExportButton.d.ts +21 -0
  379. package/build/types/desktop/cmp/button/index.d.ts +17 -0
  380. package/build/types/desktop/cmp/button/panel/ModalToggleButton.d.ts +10 -0
  381. package/build/types/desktop/cmp/button/zoneGrid/ZoneMapperButton.d.ts +15 -0
  382. package/build/types/desktop/cmp/card/impl/CardHeaderImpl.d.ts +6 -0
  383. package/build/types/desktop/cmp/clipboard/ClipboardButton.d.ts +20 -0
  384. package/build/types/desktop/cmp/clipboard/ClipboardMenuItem.d.ts +6 -0
  385. package/build/types/desktop/cmp/clipboard/index.d.ts +2 -0
  386. package/build/types/desktop/cmp/contextmenu/ContextMenu.d.ts +15 -0
  387. package/build/types/desktop/cmp/contextmenu/index.d.ts +1 -0
  388. package/build/types/desktop/cmp/dash/DashConfig.d.ts +36 -0
  389. package/build/types/desktop/cmp/dash/DashModel.d.ts +22 -0
  390. package/build/types/desktop/cmp/dash/DashViewModel.d.ts +81 -0
  391. package/build/types/desktop/cmp/dash/DashViewSpec.d.ts +41 -0
  392. package/build/types/desktop/cmp/dash/canvas/DashCanvas.d.ts +27 -0
  393. package/build/types/desktop/cmp/dash/canvas/DashCanvasModel.d.ts +166 -0
  394. package/build/types/desktop/cmp/dash/canvas/DashCanvasViewModel.d.ts +27 -0
  395. package/build/types/desktop/cmp/dash/canvas/DashCanvasViewSpec.d.ts +30 -0
  396. package/build/types/desktop/cmp/dash/canvas/impl/DashCanvasContextMenu.d.ts +8 -0
  397. package/build/types/desktop/cmp/dash/canvas/impl/DashCanvasView.d.ts +12 -0
  398. package/build/types/desktop/cmp/dash/canvas/impl/utils.d.ts +11 -0
  399. package/build/types/desktop/cmp/dash/canvas/widgetchooser/DashCanvasWidgetChooser.d.ts +13 -0
  400. package/build/types/desktop/cmp/dash/canvas/widgetchooser/DashCanvasWidgetChooserModel.d.ts +12 -0
  401. package/build/types/desktop/cmp/dash/container/DashContainer.d.ts +8 -0
  402. package/build/types/desktop/cmp/dash/container/DashContainerModel.d.ts +162 -0
  403. package/build/types/desktop/cmp/dash/container/DashContainerViewModel.d.ts +14 -0
  404. package/build/types/desktop/cmp/dash/container/DashContainerViewSpec.d.ts +17 -0
  405. package/build/types/desktop/cmp/dash/container/impl/DashContainerContextMenu.d.ts +15 -0
  406. package/build/types/desktop/cmp/dash/container/impl/DashContainerMenuButton.d.ts +7 -0
  407. package/build/types/desktop/cmp/dash/container/impl/DashContainerUtils.d.ts +16 -0
  408. package/build/types/desktop/cmp/dash/container/impl/DashContainerView.d.ts +12 -0
  409. package/build/types/desktop/cmp/dash/index.d.ts +12 -0
  410. package/build/types/desktop/cmp/dock/DockContainer.d.ts +25 -0
  411. package/build/types/desktop/cmp/dock/DockContainerModel.d.ts +33 -0
  412. package/build/types/desktop/cmp/dock/DockViewModel.d.ts +83 -0
  413. package/build/types/desktop/cmp/dock/impl/DockContainer.d.ts +9 -0
  414. package/build/types/desktop/cmp/dock/impl/DockView.d.ts +15 -0
  415. package/build/types/desktop/cmp/dock/index.d.ts +3 -0
  416. package/build/types/desktop/cmp/error/impl/ErrorMessage.d.ts +7 -0
  417. package/build/types/desktop/cmp/filechooser/FileChooser.d.ts +42 -0
  418. package/build/types/desktop/cmp/filechooser/FileChooserModel.d.ts +23 -0
  419. package/build/types/desktop/cmp/filechooser/index.d.ts +2 -0
  420. package/build/types/desktop/cmp/filter/FilterChooser.d.ts +32 -0
  421. package/build/types/desktop/cmp/filter/PopoverFilterChooser.d.ts +9 -0
  422. package/build/types/desktop/cmp/filter/index.d.ts +3 -0
  423. package/build/types/desktop/cmp/form/FormField.d.ts +64 -0
  424. package/build/types/desktop/cmp/form/index.d.ts +1 -0
  425. package/build/types/desktop/cmp/grid/columns/Actions.d.ts +29 -0
  426. package/build/types/desktop/cmp/grid/editors/BooleanEditor.d.ts +15 -0
  427. package/build/types/desktop/cmp/grid/editors/DateEditor.d.ts +6 -0
  428. package/build/types/desktop/cmp/grid/editors/EditorProps.d.ts +17 -0
  429. package/build/types/desktop/cmp/grid/editors/NumberEditor.d.ts +6 -0
  430. package/build/types/desktop/cmp/grid/editors/SelectEditor.d.ts +6 -0
  431. package/build/types/desktop/cmp/grid/editors/TextAreaEditor.d.ts +6 -0
  432. package/build/types/desktop/cmp/grid/editors/TextEditor.d.ts +6 -0
  433. package/build/types/desktop/cmp/grid/editors/impl/InlineEditorModel.d.ts +15 -0
  434. package/build/types/desktop/cmp/grid/editors/index.d.ts +6 -0
  435. package/build/types/desktop/cmp/grid/find/GridFindField.d.ts +43 -0
  436. package/build/types/desktop/cmp/grid/find/impl/GridFindFieldImplModel.d.ts +36 -0
  437. package/build/types/desktop/cmp/grid/impl/colchooser/ColChooser.d.ts +18 -0
  438. package/build/types/desktop/cmp/grid/impl/colchooser/ColChooserDialog.d.ts +2 -0
  439. package/build/types/desktop/cmp/grid/impl/colchooser/ColChooserModel.d.ts +28 -0
  440. package/build/types/desktop/cmp/grid/impl/filter/ColumnHeaderFilter.d.ts +9 -0
  441. package/build/types/desktop/cmp/grid/impl/filter/ColumnHeaderFilterModel.d.ts +13 -0
  442. package/build/types/desktop/cmp/grid/impl/filter/GridFilterDialog.d.ts +11 -0
  443. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/HeaderFilter.d.ts +7 -0
  444. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/HeaderFilterModel.d.ts +37 -0
  445. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomRow.d.ts +6 -0
  446. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomRowModel.d.ts +28 -0
  447. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomTab.d.ts +7 -0
  448. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomTabModel.d.ts +21 -0
  449. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTab.d.ts +7 -0
  450. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTabModel.d.ts +43 -0
  451. package/build/types/desktop/cmp/grid/index.d.ts +3 -0
  452. package/build/types/desktop/cmp/grouping/GroupingChooser.d.ts +37 -0
  453. package/build/types/desktop/cmp/grouping/index.d.ts +2 -0
  454. package/build/types/desktop/cmp/input/ButtonGroupInput.d.ts +25 -0
  455. package/build/types/desktop/cmp/input/Checkbox.d.ts +29 -0
  456. package/build/types/desktop/cmp/input/CodeInput.d.ts +79 -0
  457. package/build/types/desktop/cmp/input/DateInput.d.ts +118 -0
  458. package/build/types/desktop/cmp/input/JsonInput.d.ts +8 -0
  459. package/build/types/desktop/cmp/input/NumberInput.d.ts +79 -0
  460. package/build/types/desktop/cmp/input/Picker.d.ts +125 -0
  461. package/build/types/desktop/cmp/input/RadioInput.d.ts +21 -0
  462. package/build/types/desktop/cmp/input/Select.d.ts +144 -0
  463. package/build/types/desktop/cmp/input/Slider.d.ts +33 -0
  464. package/build/types/desktop/cmp/input/SwitchInput.d.ts +21 -0
  465. package/build/types/desktop/cmp/input/TextArea.d.ts +26 -0
  466. package/build/types/desktop/cmp/input/TextInput.d.ts +56 -0
  467. package/build/types/desktop/cmp/input/index.d.ts +13 -0
  468. package/build/types/desktop/cmp/leftrightchooser/LeftRightChooser.d.ts +13 -0
  469. package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserFilter.d.ts +15 -0
  470. package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserModel.d.ts +86 -0
  471. package/build/types/desktop/cmp/leftrightchooser/impl/ChooserToolbar.d.ts +3 -0
  472. package/build/types/desktop/cmp/leftrightchooser/impl/Description.d.ts +3 -0
  473. package/build/types/desktop/cmp/leftrightchooser/index.d.ts +3 -0
  474. package/build/types/desktop/cmp/mask/impl/Mask.d.ts +8 -0
  475. package/build/types/desktop/cmp/modalsupport/ModalSupport.d.ts +16 -0
  476. package/build/types/desktop/cmp/modalsupport/ModalSupportModel.d.ts +29 -0
  477. package/build/types/desktop/cmp/modalsupport/index.d.ts +2 -0
  478. package/build/types/desktop/cmp/panel/Panel.d.ts +69 -0
  479. package/build/types/desktop/cmp/panel/PanelModel.d.ts +129 -0
  480. package/build/types/desktop/cmp/panel/impl/PanelHeader.d.ts +2 -0
  481. package/build/types/desktop/cmp/panel/impl/ResizeContainer.d.ts +1 -0
  482. package/build/types/desktop/cmp/panel/impl/Splitter.d.ts +2 -0
  483. package/build/types/desktop/cmp/panel/impl/dragger/Dragger.d.ts +3 -0
  484. package/build/types/desktop/cmp/panel/impl/dragger/DraggerModel.d.ts +34 -0
  485. package/build/types/desktop/cmp/panel/index.d.ts +2 -0
  486. package/build/types/desktop/cmp/pinpad/impl/PinPad.d.ts +11 -0
  487. package/build/types/desktop/cmp/record/RecordActionBar.d.ts +32 -0
  488. package/build/types/desktop/cmp/record/impl/RecordActionButton.d.ts +20 -0
  489. package/build/types/desktop/cmp/record/index.d.ts +1 -0
  490. package/build/types/desktop/cmp/rest/Actions.d.ts +7 -0
  491. package/build/types/desktop/cmp/rest/RestGrid.d.ts +33 -0
  492. package/build/types/desktop/cmp/rest/RestGridModel.d.ts +104 -0
  493. package/build/types/desktop/cmp/rest/data/RestField.d.ts +37 -0
  494. package/build/types/desktop/cmp/rest/data/RestStore.d.ts +39 -0
  495. package/build/types/desktop/cmp/rest/impl/RestForm.d.ts +6 -0
  496. package/build/types/desktop/cmp/rest/impl/RestFormField.d.ts +5 -0
  497. package/build/types/desktop/cmp/rest/impl/RestFormModel.d.ts +49 -0
  498. package/build/types/desktop/cmp/rest/impl/RestGridToolbar.d.ts +5 -0
  499. package/build/types/desktop/cmp/rest/index.d.ts +4 -0
  500. package/build/types/desktop/cmp/store/impl/StoreFilterField.d.ts +6 -0
  501. package/build/types/desktop/cmp/tab/TabSwitcher.d.ts +14 -0
  502. package/build/types/desktop/cmp/tab/dynamic/DynamicTabSwitcher.d.ts +7 -0
  503. package/build/types/desktop/cmp/tab/dynamic/DynamicTabSwitcherModel.d.ts +30 -0
  504. package/build/types/desktop/cmp/tab/dynamic/scroller/Scroller.d.ts +19 -0
  505. package/build/types/desktop/cmp/tab/dynamic/scroller/ScrollerModel.d.ts +23 -0
  506. package/build/types/desktop/cmp/tab/impl/Tab.d.ts +17 -0
  507. package/build/types/desktop/cmp/tab/impl/TabContainer.d.ts +7 -0
  508. package/build/types/desktop/cmp/tab/impl/TabContextMenuItems.d.ts +4 -0
  509. package/build/types/desktop/cmp/tab/index.d.ts +2 -0
  510. package/build/types/desktop/cmp/toolbar/Toolbar.d.ts +30 -0
  511. package/build/types/desktop/cmp/toolbar/ToolbarSep.d.ts +10 -0
  512. package/build/types/desktop/cmp/toolbar/index.d.ts +2 -0
  513. package/build/types/desktop/cmp/viewmanager/ViewManager.d.ts +46 -0
  514. package/build/types/desktop/cmp/viewmanager/ViewManagerLocalModel.d.ts +13 -0
  515. package/build/types/desktop/cmp/viewmanager/ViewMenu.d.ts +5 -0
  516. package/build/types/desktop/cmp/viewmanager/dialog/ManageDialog.d.ts +7 -0
  517. package/build/types/desktop/cmp/viewmanager/dialog/ManageDialogModel.d.ts +41 -0
  518. package/build/types/desktop/cmp/viewmanager/dialog/SaveAsDialog.d.ts +5 -0
  519. package/build/types/desktop/cmp/viewmanager/dialog/SaveAsDialogModel.d.ts +17 -0
  520. package/build/types/desktop/cmp/viewmanager/dialog/Utils.d.ts +11 -0
  521. package/build/types/desktop/cmp/viewmanager/dialog/ViewMultiPanel.d.ts +2 -0
  522. package/build/types/desktop/cmp/viewmanager/dialog/ViewPanel.d.ts +5 -0
  523. package/build/types/desktop/cmp/viewmanager/dialog/ViewPanelModel.d.ts +16 -0
  524. package/build/types/desktop/cmp/viewmanager/index.d.ts +1 -0
  525. package/build/types/desktop/cmp/zoneGrid/impl/ZoneMapper.d.ts +16 -0
  526. package/build/types/desktop/cmp/zoneGrid/impl/ZoneMapperDialog.d.ts +2 -0
  527. package/build/types/desktop/hooks/UseContextMenu.d.ts +11 -0
  528. package/build/types/desktop/hooks/UseHotkeys.d.ts +14 -0
  529. package/build/types/desktop/hooks/index.d.ts +2 -0
  530. package/build/types/desktop/register.d.ts +1 -0
  531. package/build/types/dynamics/desktop.d.ts +33 -0
  532. package/build/types/dynamics/mobile.d.ts +25 -0
  533. package/build/types/exception/Exception.d.ts +24 -0
  534. package/build/types/exception/Types.d.ts +35 -0
  535. package/build/types/exception/index.d.ts +2 -0
  536. package/build/types/format/FormatDate.d.ts +73 -0
  537. package/build/types/format/FormatMisc.d.ts +43 -0
  538. package/build/types/format/FormatNumber.d.ts +137 -0
  539. package/build/types/format/FormatUtils.d.ts +11 -0
  540. package/build/types/format/impl/Utils.d.ts +7 -0
  541. package/build/types/format/index.d.ts +4 -0
  542. package/build/types/icon/Icon.d.ts +363 -0
  543. package/build/types/icon/XHLogo.d.ts +4 -0
  544. package/build/types/icon/impl/IconCmp.d.ts +6 -0
  545. package/build/types/icon/impl/IconHtml.d.ts +13 -0
  546. package/build/types/icon/index.d.ts +2 -0
  547. package/build/types/inspector/InspectorPanel.d.ts +5 -0
  548. package/build/types/inspector/instances/InstancesModel.d.ts +48 -0
  549. package/build/types/inspector/instances/InstancesPanel.d.ts +2 -0
  550. package/build/types/inspector/stats/StatsModel.d.ts +20 -0
  551. package/build/types/inspector/stats/StatsPanel.d.ts +2 -0
  552. package/build/types/kit/ag-grid/index.d.ts +22 -0
  553. package/build/types/kit/blueprint/ContextMenu.d.ts +7 -0
  554. package/build/types/kit/blueprint/Dialog.d.ts +12 -0
  555. package/build/types/kit/blueprint/Wrappers.d.ts +8 -0
  556. package/build/types/kit/blueprint/index.d.ts +9 -0
  557. package/build/types/kit/highcharts/index.d.ts +6 -0
  558. package/build/types/kit/onsen/index.d.ts +8 -0
  559. package/build/types/kit/react-beautiful-dnd/index.d.ts +3 -0
  560. package/build/types/kit/react-dates/index.d.ts +5 -0
  561. package/build/types/kit/react-dropzone/index.d.ts +3 -0
  562. package/build/types/kit/react-markdown/index.d.ts +4 -0
  563. package/build/types/kit/react-select/index.d.ts +10 -0
  564. package/build/types/kit/swiper/index.d.ts +97 -0
  565. package/build/types/mobile/appcontainer/AboutDialog.d.ts +10 -0
  566. package/build/types/mobile/appcontainer/AppContainer.d.ts +12 -0
  567. package/build/types/mobile/appcontainer/Banner.d.ts +8 -0
  568. package/build/types/mobile/appcontainer/ExceptionDialog.d.ts +13 -0
  569. package/build/types/mobile/appcontainer/ExceptionDialogDetails.d.ts +7 -0
  570. package/build/types/mobile/appcontainer/FeedbackDialog.d.ts +6 -0
  571. package/build/types/mobile/appcontainer/ImpersonationBar.d.ts +9 -0
  572. package/build/types/mobile/appcontainer/LockoutPanel.d.ts +8 -0
  573. package/build/types/mobile/appcontainer/LoginPanel.d.ts +9 -0
  574. package/build/types/mobile/appcontainer/Message.d.ts +7 -0
  575. package/build/types/mobile/appcontainer/MessageSource.d.ts +6 -0
  576. package/build/types/mobile/appcontainer/OptionsDialog.d.ts +6 -0
  577. package/build/types/mobile/appcontainer/Toast.d.ts +6 -0
  578. package/build/types/mobile/appcontainer/ToastSource.d.ts +7 -0
  579. package/build/types/mobile/appcontainer/VersionBar.d.ts +5 -0
  580. package/build/types/mobile/appcontainer/index.d.ts +1 -0
  581. package/build/types/mobile/appcontainer/suspend/IdlePanel.d.ts +8 -0
  582. package/build/types/mobile/appcontainer/suspend/SuspendPanel.d.ts +7 -0
  583. package/build/types/mobile/cmp/appOption/AutoRefreshAppOption.d.ts +15 -0
  584. package/build/types/mobile/cmp/appOption/SizingModeAppOption.d.ts +17 -0
  585. package/build/types/mobile/cmp/appOption/ThemeAppOption.d.ts +15 -0
  586. package/build/types/mobile/cmp/appOption/index.d.ts +3 -0
  587. package/build/types/mobile/cmp/button/Button.d.ts +22 -0
  588. package/build/types/mobile/cmp/button/ButtonGroup.d.ts +12 -0
  589. package/build/types/mobile/cmp/button/FeedbackButton.d.ts +8 -0
  590. package/build/types/mobile/cmp/button/LogoutButton.d.ts +10 -0
  591. package/build/types/mobile/cmp/button/NavigatorBackButton.d.ts +7 -0
  592. package/build/types/mobile/cmp/button/OptionsButton.d.ts +9 -0
  593. package/build/types/mobile/cmp/button/RefreshButton.d.ts +15 -0
  594. package/build/types/mobile/cmp/button/RestoreDefaultsButton.d.ts +16 -0
  595. package/build/types/mobile/cmp/button/ThemeToggleButton.d.ts +7 -0
  596. package/build/types/mobile/cmp/button/grid/ColAutosizeButton.d.ts +13 -0
  597. package/build/types/mobile/cmp/button/grid/ColChooserButton.d.ts +14 -0
  598. package/build/types/mobile/cmp/button/grid/ExpandCollapseButton.d.ts +14 -0
  599. package/build/types/mobile/cmp/button/grid/ExpandToLevelButton.d.ts +15 -0
  600. package/build/types/mobile/cmp/button/index.d.ts +13 -0
  601. package/build/types/mobile/cmp/button/zoneGrid/ZoneMapperButton.d.ts +12 -0
  602. package/build/types/mobile/cmp/card/impl/CardHeaderImpl.d.ts +6 -0
  603. package/build/types/mobile/cmp/dialog/Dialog.d.ts +17 -0
  604. package/build/types/mobile/cmp/dialog/index.d.ts +1 -0
  605. package/build/types/mobile/cmp/error/impl/ErrorMessage.d.ts +7 -0
  606. package/build/types/mobile/cmp/form/FormField.d.ts +27 -0
  607. package/build/types/mobile/cmp/form/index.d.ts +1 -0
  608. package/build/types/mobile/cmp/grid/impl/ColChooser.d.ts +21 -0
  609. package/build/types/mobile/cmp/grid/impl/ColChooserModel.d.ts +46 -0
  610. package/build/types/mobile/cmp/grouping/GroupingChooser.d.ts +15 -0
  611. package/build/types/mobile/cmp/grouping/index.d.ts +2 -0
  612. package/build/types/mobile/cmp/header/AppBar.d.ts +39 -0
  613. package/build/types/mobile/cmp/header/AppMenuButton.d.ts +41 -0
  614. package/build/types/mobile/cmp/header/index.d.ts +2 -0
  615. package/build/types/mobile/cmp/input/ButtonGroupInput.d.ts +22 -0
  616. package/build/types/mobile/cmp/input/Checkbox.d.ts +13 -0
  617. package/build/types/mobile/cmp/input/CheckboxButton.d.ts +13 -0
  618. package/build/types/mobile/cmp/input/DateInput.d.ts +54 -0
  619. package/build/types/mobile/cmp/input/Label.d.ts +10 -0
  620. package/build/types/mobile/cmp/input/NumberInput.d.ts +53 -0
  621. package/build/types/mobile/cmp/input/SearchInput.d.ts +24 -0
  622. package/build/types/mobile/cmp/input/Select.d.ts +127 -0
  623. package/build/types/mobile/cmp/input/SwitchInput.d.ts +13 -0
  624. package/build/types/mobile/cmp/input/TextArea.d.ts +21 -0
  625. package/build/types/mobile/cmp/input/TextInput.d.ts +46 -0
  626. package/build/types/mobile/cmp/input/index.d.ts +11 -0
  627. package/build/types/mobile/cmp/mask/impl/Mask.d.ts +8 -0
  628. package/build/types/mobile/cmp/menu/MenuButton.d.ts +23 -0
  629. package/build/types/mobile/cmp/menu/impl/Menu.d.ts +12 -0
  630. package/build/types/mobile/cmp/menu/index.d.ts +1 -0
  631. package/build/types/mobile/cmp/navigator/Navigator.d.ts +8 -0
  632. package/build/types/mobile/cmp/navigator/NavigatorModel.d.ts +62 -0
  633. package/build/types/mobile/cmp/navigator/PageModel.d.ts +61 -0
  634. package/build/types/mobile/cmp/navigator/impl/GestureRefresh.d.ts +8 -0
  635. package/build/types/mobile/cmp/navigator/impl/GestureRefreshModel.d.ts +16 -0
  636. package/build/types/mobile/cmp/navigator/impl/Page.d.ts +12 -0
  637. package/build/types/mobile/cmp/navigator/impl/Utils.d.ts +9 -0
  638. package/build/types/mobile/cmp/navigator/index.d.ts +2 -0
  639. package/build/types/mobile/cmp/panel/DialogPanel.d.ts +16 -0
  640. package/build/types/mobile/cmp/panel/Panel.d.ts +43 -0
  641. package/build/types/mobile/cmp/panel/impl/PanelHeader.d.ts +6 -0
  642. package/build/types/mobile/cmp/panel/index.d.ts +2 -0
  643. package/build/types/mobile/cmp/pinpad/impl/PinPad.d.ts +9 -0
  644. package/build/types/mobile/cmp/popover/Popover.d.ts +33 -0
  645. package/build/types/mobile/cmp/popover/index.d.ts +1 -0
  646. package/build/types/mobile/cmp/store/impl/StoreFilterField.d.ts +6 -0
  647. package/build/types/mobile/cmp/tab/impl/Tab.d.ts +13 -0
  648. package/build/types/mobile/cmp/tab/impl/TabContainer.d.ts +9 -0
  649. package/build/types/mobile/cmp/toolbar/Toolbar.d.ts +11 -0
  650. package/build/types/mobile/cmp/toolbar/ToolbarSeparator.d.ts +7 -0
  651. package/build/types/mobile/cmp/toolbar/index.d.ts +2 -0
  652. package/build/types/mobile/cmp/zoneGrid/impl/ZoneMapper.d.ts +16 -0
  653. package/build/types/mobile/register.d.ts +1 -0
  654. package/build/types/mobx/decorators.d.ts +11 -0
  655. package/build/types/mobx/index.d.ts +5 -0
  656. package/build/types/mobx/overrides.d.ts +14 -0
  657. package/build/types/promise/Promise.d.ts +108 -0
  658. package/build/types/promise/index.d.ts +1 -0
  659. package/build/types/security/BaseOAuthClient.d.ts +172 -0
  660. package/build/types/security/Token.d.ts +11 -0
  661. package/build/types/security/Types.d.ts +14 -0
  662. package/build/types/security/authzero/AuthZeroClient.d.ts +57 -0
  663. package/build/types/security/authzero/index.d.ts +1 -0
  664. package/build/types/security/msal/MsalClient.d.ts +162 -0
  665. package/build/types/security/msal/index.d.ts +1 -0
  666. package/build/types/svc/AlertBannerService.d.ts +33 -0
  667. package/build/types/svc/AutoRefreshService.d.ts +28 -0
  668. package/build/types/svc/ChangelogService.d.ts +62 -0
  669. package/build/types/svc/ClientHealthService.d.ts +64 -0
  670. package/build/types/svc/ConfigService.d.ts +36 -0
  671. package/build/types/svc/EnvironmentService.d.ts +50 -0
  672. package/build/types/svc/FetchService.d.ts +269 -0
  673. package/build/types/svc/GridAutosizeService.d.ts +35 -0
  674. package/build/types/svc/GridExportService.d.ts +56 -0
  675. package/build/types/svc/IdentityService.d.ts +58 -0
  676. package/build/types/svc/IdleService.d.ts +21 -0
  677. package/build/types/svc/InspectorService.d.ts +75 -0
  678. package/build/types/svc/JsonBlobService.d.ts +60 -0
  679. package/build/types/svc/PrefService.d.ts +69 -0
  680. package/build/types/svc/TrackService.d.ts +42 -0
  681. package/build/types/svc/WebSocketService.d.ts +126 -0
  682. package/build/types/svc/index.d.ts +18 -0
  683. package/build/types/svc/storage/BaseStorageService.d.ts +21 -0
  684. package/build/types/svc/storage/LocalStorageService.d.ts +12 -0
  685. package/build/types/svc/storage/SessionStorageService.d.ts +12 -0
  686. package/build/types/utils/async/AsyncUtils.d.ts +40 -0
  687. package/build/types/utils/async/Timer.d.ts +87 -0
  688. package/build/types/utils/async/index.d.ts +2 -0
  689. package/build/types/utils/datetime/DateTimeUtils.d.ts +10 -0
  690. package/build/types/utils/datetime/LocalDate.d.ts +92 -0
  691. package/build/types/utils/datetime/index.d.ts +2 -0
  692. package/build/types/utils/impl/Equals.d.ts +4 -0
  693. package/build/types/utils/impl/IsOmitted.d.ts +7 -0
  694. package/build/types/utils/impl/MenuItems.d.ts +13 -0
  695. package/build/types/utils/impl/Separators.d.ts +10 -0
  696. package/build/types/utils/impl/TimeZone.d.ts +4 -0
  697. package/build/types/utils/impl/index.d.ts +5 -0
  698. package/build/types/utils/js/Decorators.d.ts +42 -0
  699. package/build/types/utils/js/DomUtils.d.ts +50 -0
  700. package/build/types/utils/js/HtmlUtils.d.ts +4 -0
  701. package/build/types/utils/js/LangUtils.d.ts +122 -0
  702. package/build/types/utils/js/LogUtils.d.ts +108 -0
  703. package/build/types/utils/js/TestUtils.d.ts +18 -0
  704. package/build/types/utils/js/VersionUtils.d.ts +17 -0
  705. package/build/types/utils/js/index.d.ts +7 -0
  706. package/build/types/utils/react/ClassName.d.ts +14 -0
  707. package/build/types/utils/react/Hooks.d.ts +46 -0
  708. package/build/types/utils/react/LayoutPropUtils.d.ts +43 -0
  709. package/build/types/utils/react/ObservableRef.d.ts +13 -0
  710. package/build/types/utils/react/ReactUtils.d.ts +23 -0
  711. package/build/types/utils/react/index.d.ts +5 -0
  712. package/cmp/grouping/impl/GroupingChooserLocalModel.ts +6 -0
  713. package/desktop/cmp/dash/canvas/DashCanvasModel.ts +2 -1
  714. package/desktop/cmp/grouping/GroupingChooser.ts +4 -1
  715. package/package.json +2 -1
@@ -0,0 +1,172 @@
1
+ import { HoistBase } from '@xh/hoist/core';
2
+ import { Token } from '@xh/hoist/security/Token';
3
+ import { AccessTokenSpec, TokenMap } from './Types';
4
+ export type LoginMethod = 'REDIRECT' | 'POPUP';
5
+ export interface BaseOAuthClientConfig<S extends AccessTokenSpec> {
6
+ /** Client ID (GUID) of your app registered with your Oauth provider. */
7
+ clientId: string;
8
+ /**
9
+ * Redirect URL where authentication responses can be received by your application.
10
+ * It must exactly match one of the redirect URIs registered in the relevant OAuth authority.
11
+ * Default is 'APP_BASE_URL' which will be replaced with the current app's base URL.
12
+ */
13
+ redirectUrl?: 'APP_BASE_URL' | string;
14
+ /**
15
+ * Redirect URL after a successful logout.
16
+ * Default is 'APP_BASE_URL' which will be replaced with the current app's base URL.
17
+ */
18
+ postLogoutRedirectUrl?: 'APP_BASE_URL' | string;
19
+ /** The method used for logging in on desktop. Default is 'REDIRECT'. */
20
+ loginMethodDesktop?: LoginMethod;
21
+ /** The method used for logging in on mobile. Default is 'REDIRECT'. */
22
+ loginMethodMobile?: LoginMethod;
23
+ /**
24
+ * Governs an optional refresh timer that will work to keep the tokens fresh.
25
+ *
26
+ * A typical refresh will use the underlying provider cache, and should not result in
27
+ * network activity. However, if any token would expire before the next autoRefresh,
28
+ * this client will force a call to the underlying provider to get the token.
29
+ *
30
+ * In order to allow aging tokens to be replaced in a timely manner, this value should be
31
+ * significantly shorter than both the minimum token lifetime that will be
32
+ * returned by the underlying API.
33
+ *
34
+ * Default is -1, disabling this behavior.
35
+ */
36
+ autoRefreshSecs?: number;
37
+ /**
38
+ * Scopes to request - if any - beyond the core `['openid', 'email']` scopes, which
39
+ * this client will always request.
40
+ */
41
+ idScopes?: string[];
42
+ /**
43
+ * Optional spec for access tokens to be loaded and maintained to support access to one or more
44
+ * different back-end resources, distinct from the core Hoist auth flow via ID token.
45
+ *
46
+ * Map of key to a spec for an access token. The key is an arbitrary, app-determined string
47
+ * used to retrieve the loaded token via {@link getAccessTokenAsync}. The spec is implementation
48
+ * specific, but will typically include scopes to be loaded for the access token and potentially
49
+ * other metadata required by the underlying provider.
50
+ */
51
+ accessTokens?: Record<string, S>;
52
+ /**
53
+ * True to allow this client to try to re-login interactively (via pop-up) if tokens begin
54
+ * failing to load due to specific provider exceptions indicating user interaction is required.
55
+ * This can happen, for example, if a token expires and the refresh token is expired or
56
+ * invalidated during the lifetime of the client. Default is false and retry will not be
57
+ * attempted.
58
+ */
59
+ reloginEnabled?: boolean;
60
+ /**
61
+ * Maximum time for (interactive) re-login.
62
+ *
63
+ * Set to a reasonably fixed amount of time, to allow user to type in password and complete
64
+ * MFA, but not so long as to allow a problematic build-up of application requests.
65
+ * Default 60 seconds;
66
+ */
67
+ reloginTimeoutSecs?: number;
68
+ }
69
+ /**
70
+ * Implementations of this class coordinate OAuth-based login and token provision. Apps can use a
71
+ * suitable concrete implementation to power a client-side OauthService. See `MsalClient` and
72
+ * `AuthZeroClient`
73
+ *
74
+ * Initialize such a service and this client within an app's primary {@link HoistAuthModel} to use
75
+ * the tokens it acquires to authenticate with the Hoist server. (Note this requires a suitable
76
+ * server-side `AuthenticationService` implementation to validate the token and actually resolve
77
+ * the user.) On init, the client impl will initiate a pop-up or redirect flow as necessary.
78
+ */
79
+ export declare abstract class BaseOAuthClient<C extends BaseOAuthClientConfig<S>, S extends AccessTokenSpec> extends HoistBase {
80
+ /** Config loaded from UI server + init method. */
81
+ protected config: C;
82
+ /** ID Scopes */
83
+ protected idScopes: string[];
84
+ /** Specification for Access Tokens **/
85
+ protected accessSpecs: Record<string, S>;
86
+ private timer;
87
+ private lastRefreshAttempt;
88
+ private TIMER_INTERVAL;
89
+ private pendingRelogin;
90
+ private lastRelogin;
91
+ constructor(config: C);
92
+ /**
93
+ * Main entry point for this object.
94
+ */
95
+ initAsync(): Promise<void>;
96
+ /**
97
+ * Request an interactive login with the underlying OAuth provider.
98
+ */
99
+ loginAsync(method?: LoginMethod): Promise<void>;
100
+ /**
101
+ * Request a full logout from the underlying OAuth provider.
102
+ */
103
+ logoutAsync(): Promise<void>;
104
+ /**
105
+ * Get an ID token.
106
+ */
107
+ getIdTokenAsync(): Promise<Token>;
108
+ /**
109
+ * Get an Access token.
110
+ */
111
+ getAccessTokenAsync(key: string): Promise<Token>;
112
+ /**
113
+ * Get all configured tokens.
114
+ */
115
+ getAllTokensAsync(opts?: {
116
+ eagerOnly?: boolean;
117
+ useCache?: boolean;
118
+ }): Promise<TokenMap>;
119
+ /**
120
+ * The last authenticated OAuth username.
121
+ *
122
+ * Provided to facilitate more efficient re-login via SSO or otherwise. Cleared on logout.
123
+ * Note: not necessarily a currently authenticated user, and not necessarily the Hoist username.
124
+ */
125
+ getSelectedUsername(): string;
126
+ /**
127
+ * Set the last authenticated OAuth username.
128
+ * See `getSelectedUsername()`.
129
+ */
130
+ setSelectedUsername(username: string): void;
131
+ protected abstract doInitAsync(): Promise<TokenMap>;
132
+ protected abstract doLoginPopupAsync(): Promise<void>;
133
+ protected abstract doLoginRedirectAsync(): Promise<void>;
134
+ protected abstract fetchIdTokenAsync(useCache: boolean): Promise<Token>;
135
+ protected abstract fetchAccessTokenAsync(spec: S, useCache: boolean): Promise<Token>;
136
+ protected abstract doLogoutAsync(): Promise<void>;
137
+ protected abstract interactiveLoginNeeded(exception: unknown): boolean;
138
+ protected get redirectUrl(): string;
139
+ protected get postLogoutRedirectUrl(): string;
140
+ protected get loginMethod(): LoginMethod;
141
+ protected get baseUrl(): string;
142
+ protected get blankUrl(): string;
143
+ protected popupBlockerErrorMessage: String;
144
+ protected defaultErrorMsg: String;
145
+ /**
146
+ * Call before redirect flow to snapshot any URL-based routing state that should be restored
147
+ * after redirect
148
+ *
149
+ * @returns key - key for re-accessing this state, to be round-tripped with redirect.
150
+ */
151
+ protected captureRedirectState(): string;
152
+ /**
153
+ * Call after redirect flow to rehydrate URL-based routing state.
154
+ *
155
+ * @param key - key for re-accessing this state, as round-tripped with redirect.
156
+ */
157
+ protected restoreRedirectState(key: string): void;
158
+ /** Call after requesting the provider library redirect the user away for auth. */
159
+ protected maskAfterRedirectAsync(): Promise<void>;
160
+ protected fetchAllTokensAsync(opts?: {
161
+ eagerOnly?: boolean;
162
+ useCache?: boolean;
163
+ }): Promise<TokenMap>;
164
+ protected getLocalStorage(key: string, defaultValue?: any): any;
165
+ protected setLocalStorage(key: string, value: any): void;
166
+ private fetchIdTokenSafeAsync;
167
+ private getWithRetry;
168
+ private rethrowWrapped;
169
+ private getLoginTask;
170
+ private onTimerAsync;
171
+ private logTokensDebug;
172
+ }
@@ -0,0 +1,11 @@
1
+ import { PlainObject } from '@xh/hoist/core';
2
+ export declare class Token {
3
+ readonly value: string;
4
+ readonly decoded: PlainObject;
5
+ readonly expiry: number;
6
+ constructor(value: string);
7
+ expiresWithin(interval: number): boolean;
8
+ get formattedExpiry(): string;
9
+ get forLog(): PlainObject;
10
+ equals(other: Token): boolean;
11
+ }
@@ -0,0 +1,14 @@
1
+ import { Token } from './Token';
2
+ export interface AccessTokenSpec {
3
+ /**
4
+ * Mode governing when the access token should be requested from provider:
5
+ * - eager (or undefined) - load on overall initialization, but do not block on failure.
6
+ * Useful for tokens that an app is almost certain to require during a user session.
7
+ * - lazy - defer loading until first requested by client. Useful for tokens that might
8
+ * never be needed by the app during a given user session.
9
+ */
10
+ fetchMode?: 'eager' | 'lazy';
11
+ /** Scopes for the desired access token.*/
12
+ scopes: string[];
13
+ }
14
+ export type TokenMap = Record<string, Token>;
@@ -0,0 +1,57 @@
1
+ import type { Auth0ClientOptions } from '@auth0/auth0-spa-js';
2
+ import { Token } from '@xh/hoist/security/Token';
3
+ import { AccessTokenSpec, TokenMap } from '../Types';
4
+ import { BaseOAuthClient, BaseOAuthClientConfig } from '../BaseOAuthClient';
5
+ export interface AuthZeroClientConfig extends BaseOAuthClientConfig<AuthZeroTokenSpec> {
6
+ /** Domain of your app registered with Auth0. */
7
+ domain: string;
8
+ /**
9
+ * Audience to pass to interactive login and ID token requests.
10
+ *
11
+ * If you are also requesting an *access* token for a single audience, pass that value here to
12
+ * ensure that the initial login/token request returns a ready-to-use access token (and refresh
13
+ * token) with a single request to the Auth0 API, instead of requiring two.
14
+ *
15
+ * This also avoids issues with browsers that block third party cookies when running on
16
+ * localhost or with an Auth0 domain that does not match the app's own domain. In those cases,
17
+ * Auth0 must use refresh tokens to obtain access tokens, and a single audience allows that
18
+ * exchange to work without extra user interaction that this class does not currently support.
19
+ */
20
+ audience?: string;
21
+ /**
22
+ * Additional options for the Auth0Client ctor. Will be deep merged with defaults, with options
23
+ * supplied here taking precedence. Use with care, as overriding defaults may have unintended
24
+ * consequences or fail to work with Hoist's expected usage of the client library.
25
+ */
26
+ authZeroClientOptions?: Partial<Auth0ClientOptions>;
27
+ }
28
+ export interface AuthZeroTokenSpec extends AccessTokenSpec {
29
+ /**
30
+ * Audience (i.e. API) identifier for AccessToken. Must be registered with Auth0.
31
+ * Note that this is required to ensure that issued token is a JWT and not an opaque string.
32
+ */
33
+ audience: string;
34
+ }
35
+ /**
36
+ * This class supports OAuth via an integration with Auth0, a commercial service supporting login
37
+ * via Google, GitHub, Microsoft, and various other OAuth providers *or* via a username/password
38
+ * combo stored and managed within Auth0's own database. Supported options will depend on the
39
+ * configuration of your Auth0 app.
40
+ *
41
+ * Note: If developing on localhost and using Access Tokens will need to configure your browser to
42
+ * allow third-party cookies.
43
+ */
44
+ export declare class AuthZeroClient extends BaseOAuthClient<AuthZeroClientConfig, AuthZeroTokenSpec> {
45
+ private client;
46
+ protected doInitAsync(): Promise<TokenMap>;
47
+ protected doLoginRedirectAsync(): Promise<void>;
48
+ protected doLoginPopupAsync(): Promise<void>;
49
+ protected fetchIdTokenAsync(useCache?: boolean): Promise<Token>;
50
+ protected fetchAccessTokenAsync(spec: AuthZeroTokenSpec, useCache?: boolean): Promise<Token>;
51
+ protected doLogoutAsync(): Promise<void>;
52
+ protected interactiveLoginNeeded(exception: unknown): boolean;
53
+ private createClient;
54
+ private get loginScope();
55
+ private returningFromRedirect;
56
+ private noteUserAuthenticatedAsync;
57
+ }
@@ -0,0 +1 @@
1
+ export * from './AuthZeroClient';
@@ -0,0 +1,162 @@
1
+ import * as msal from '@azure/msal-browser';
2
+ import { LogLevel } from '@azure/msal-browser';
3
+ import { PlainObject } from '@xh/hoist/core';
4
+ import { Token } from '@xh/hoist/security/Token';
5
+ import { BaseOAuthClient, BaseOAuthClientConfig } from '../BaseOAuthClient';
6
+ import { AccessTokenSpec, TokenMap } from '../Types';
7
+ export interface MsalClientConfig extends BaseOAuthClientConfig<MsalTokenSpec> {
8
+ /**
9
+ * Authority for your organization's tenant: `https://login.microsoftonline.com/[tenantId]`.
10
+ * MSAL defaults to their "common" tenant (https://login.microsoftonline.com/common") to support
11
+ * auth with personal MS accounts, but enterprise/Hoist apps will almost certainly use a
12
+ * specific authority to point to their own private/corporate tenant.
13
+ */
14
+ authority: string;
15
+ /**
16
+ * A hint about the tenant or domain that the user should use to sign in.
17
+ * The value of the domain hint is a registered domain for the tenant.
18
+ */
19
+ domainHint?: string;
20
+ /**
21
+ * True to enable support for built-in telemetry provided by this class's internal MSAL client.
22
+ * Captured performance events will be summarized as {@link MsalClientTelemetry}. Default true.
23
+ */
24
+ enableTelemetry?: boolean;
25
+ /**
26
+ * If specified, the client will use this value when initializing the app to enforce a minimum
27
+ * amount of time during which no further auth flow with the provider should be necessary.
28
+ *
29
+ * Use this argument to front-load any necessary auth flow to the apps initialization stage
30
+ * thereby minimizing disruption to user activity during application use.
31
+ *
32
+ * This value may be set to anything up to 86400 (24 hours), the maximum lifetime
33
+ * of an Azure refresh token. Set to -1 to disable (default).
34
+ *
35
+ * Note that setting to *any* non-disabled amount will require the app to do *some* communication
36
+ * with the login provider at *every* app load. This may just involve loading new tokens via
37
+ * fetch, however, setting to higher values will increase the frequency with which
38
+ * a new refresh token will also need to be requested via a hidden iframe/redirect/popup. This
39
+ * can be time-consuming and potentially disruptive and applications should therefore use with
40
+ * care and typically set to some value significantly less than the max.
41
+ *
42
+ * See https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/token-lifetimes.md
43
+ */
44
+ initRefreshTokenExpirationOffsetSecs?: number;
45
+ /**
46
+ * Enable the use of the MSAL ssoSilent() API, which will attempt to use credentials gained by
47
+ * another app or tab to start a new session for this app. Requires iFrames and 3rd party
48
+ * cookies to be enabled. Default true.
49
+ *
50
+ * In practice, and according to documentation, this operation is likely to fail for a
51
+ * number of reasons, and can often do so as timeout. Therefore, keeping the timeout limit
52
+ * value -- `system.iframeHashTimeout` -- at a relatively low value is critical. Hoist
53
+ * defaults this value to 3000ms vs. the default 10000ms.
54
+ */
55
+ enableSsoSilent?: boolean;
56
+ /** The log level of MSAL. Default is LogLevel.Warning. */
57
+ msalLogLevel?: LogLevel;
58
+ /**
59
+ * Additional options for the MSAL client ctor. Will be deep merged with defaults, with options
60
+ * supplied here taking precedence. Use with care, as overriding defaults may have unintended
61
+ * consequences or fail to work with Hoist's expected usage of the client library.
62
+ */
63
+ msalClientOptions?: Partial<msal.Configuration>;
64
+ }
65
+ export interface MsalTokenSpec extends AccessTokenSpec {
66
+ /**
67
+ * Scopes to be added to the scopes requested during interactive and SSO logins.
68
+ * See the `scopes` property on `PopupRequest`, `RedirectRequest`, and `SSORequest`
69
+ * for more info.
70
+ */
71
+ loginScopes?: string[];
72
+ /**
73
+ * Scopes to be added to the scopes requested during interactive and SSO login.
74
+ *
75
+ * See the `extraScopesToConsent` property on `PopupRequest`, `RedirectRequest`, and
76
+ * `SSORequest` for more info.
77
+ */
78
+ extraScopesToConsent?: string[];
79
+ }
80
+ /**
81
+ * Service to implement OAuth authentication via MSAL.
82
+ *
83
+ * See the following helpful information relevant to our use of this tricky API --
84
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/
85
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/token-lifetimes.md
86
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/login-user.md
87
+ *
88
+ * Also see this doc re. use of blankUrl as redirectUri for all "silent" token requests:
89
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/errors.md#issues-caused-by-the-redirecturi-page
90
+ *
91
+ * Important note: The handling of `ssoSilent` and `initRefreshTokenExpirationOffsetSecs` in this
92
+ * library require 3rd party cookies to be enabled in the browser so that MSAL can load contact
93
+ * in a hidden iFrame.
94
+ */
95
+ export declare class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec> {
96
+ private client;
97
+ private account;
98
+ private initialTokenLoad;
99
+ /** Enable telemetry via `enableTelemetry` ctor config, or via {@link enableTelemetry}. */
100
+ telemetry: MsalClientTelemetry;
101
+ private _telemetryCbHandle;
102
+ constructor(config: MsalClientConfig);
103
+ protected doInitAsync(): Promise<TokenMap>;
104
+ protected doLoginPopupAsync(): Promise<void>;
105
+ protected doLoginRedirectAsync(): Promise<void>;
106
+ protected fetchIdTokenAsync(useCache?: boolean): Promise<Token>;
107
+ protected fetchAccessTokenAsync(spec: MsalTokenSpec, useCache?: boolean): Promise<Token>;
108
+ protected doLogoutAsync(): Promise<void>;
109
+ protected interactiveLoginNeeded(exception: unknown): boolean;
110
+ getFormattedTelemetry(): PlainObject;
111
+ enableTelemetry(): void;
112
+ disableTelemetry(): void;
113
+ private loginSsoAsync;
114
+ private createClientAsync;
115
+ private logFromMsal;
116
+ private get loginScopes();
117
+ private get loginExtraScopesToConsent();
118
+ private get refreshOffsetArgs();
119
+ private setAccount;
120
+ private noteAuthComplete;
121
+ private authRequestCore;
122
+ }
123
+ type AuthMethod = 'acquireSilent' | 'ssoSilent' | 'loginPopup' | 'loginRedirect';
124
+ /**
125
+ * Telemetry produced by this client (if enabled) + included in {@link ClientHealthService}
126
+ * reporting. Leverages MSAL's opt-in support for emitting performance events.
127
+ * See https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/performance.md
128
+ */
129
+ interface MsalClientTelemetry {
130
+ /** Method of last authentication for this client. */
131
+ authMethod: AuthMethod;
132
+ /** Stats across all events */
133
+ summary: {
134
+ successCount: number;
135
+ failureCount: number;
136
+ maxDuration: number;
137
+ lastFailureTime: number;
138
+ };
139
+ /** Stats by event type */
140
+ events: Record<string, MsalEventTelemetry>;
141
+ }
142
+ /** Aggregated telemetry results for a single type of event. */
143
+ interface MsalEventTelemetry {
144
+ firstTime: number;
145
+ lastTime: number;
146
+ successCount: number;
147
+ failureCount: number;
148
+ /** Timing info (in ms) for event instances reported with duration. */
149
+ duration?: {
150
+ count: number;
151
+ total: number;
152
+ average: number;
153
+ max: number;
154
+ };
155
+ lastFailure?: {
156
+ time: number;
157
+ duration: number;
158
+ code: string;
159
+ name: string;
160
+ };
161
+ }
162
+ export {};
@@ -0,0 +1 @@
1
+ export * from './MsalClient';
@@ -0,0 +1,33 @@
1
+ import { IconName } from '@fortawesome/fontawesome-svg-core';
2
+ import { BannerSpec, HoistService, Intent } from '@xh/hoist/core';
3
+ /**
4
+ * Service to display an app-wide alert banner, as configured via the Hoist Admin console.
5
+ *
6
+ * Note that the client is provided with updated banner data from the server via
7
+ * EnvironmentService, and its regular polling. See 'xhEnvPollConfig' for more information.
8
+ */
9
+ export declare class AlertBannerService extends HoistService {
10
+ xhImpl: boolean;
11
+ static instance: AlertBannerService;
12
+ get lastDismissed(): number;
13
+ updateBanner(spec: AlertBannerSpec): Promise<void>;
14
+ genBannerSpec(message: string, intent: Intent, iconName: IconName, enableClose: boolean): BannerSpec;
15
+ private onClose;
16
+ private isTargetedApp;
17
+ }
18
+ /** @internal */
19
+ export interface AlertBannerSpec {
20
+ active: boolean;
21
+ expires: number;
22
+ publishDate: number;
23
+ message: string;
24
+ intent: Intent;
25
+ iconName: AlertBannerIconName;
26
+ enableClose: boolean;
27
+ clientApps: string[];
28
+ created: number;
29
+ updated: number;
30
+ updatedBy: string;
31
+ }
32
+ /** @internal */
33
+ export type AlertBannerIconName = 'bullhorn' | 'check-circle' | 'exclamation-triangle' | 'times-circle' | 'info-circle' | 'question-circle';
@@ -0,0 +1,28 @@
1
+ import { HoistService } from '@xh/hoist/core';
2
+ /**
3
+ * Service to triggers an app-wide auto-refresh (if enabled, on a configurable interval) via the
4
+ * application's root RefreshContextModel.
5
+ *
6
+ * For this service to be active, it must be configured/enabled in two ways:
7
+ *
8
+ * 1) A refresh interval for the client app must be specified via the `xhAutoRefreshIntervals` JSON
9
+ * config. Intervals are specified in seconds and keyed by `clientAppCode` to allow for
10
+ * different auto-refresh behaviors across different JS apps in the same project.
11
+ *
12
+ * 2) The user's `xhAutoRefreshEnabled` preference must be set to true. This is currently a single
13
+ * pref. applied to all JS apps in the project. Apps can add an {@link AppOption} to allow users
14
+ * to customize via the global options dialog, or set a default pref value if per-user
15
+ * customization is not desirable.
16
+ *
17
+ * @see RefreshContextModel - the underlying mechanism used to implement the refresh.
18
+ */
19
+ export declare class AutoRefreshService extends HoistService {
20
+ xhImpl: boolean;
21
+ static instance: AutoRefreshService;
22
+ private timer;
23
+ private initTime;
24
+ get enabled(): boolean;
25
+ get interval(): number;
26
+ initAsync(): Promise<void>;
27
+ private onTimerAsync;
28
+ }
@@ -0,0 +1,62 @@
1
+ import { HoistService } from '@xh/hoist/core';
2
+ /**
3
+ * Service to display an application changelog (aka release notes) to end users, if so configured.
4
+ *
5
+ * Changelog entries are maintained in a CHANGELOG.md file within the project root, formatted as
6
+ * per https://keepachangelog.com. Requires hoist-dev-utils v5.7+ to parse the markdown source
7
+ * into JSON and make available via the special `@xh/app-changelog.json` import above.
8
+ *
9
+ * If a changelog is available, the top-level app menu will include an item to view the log in a
10
+ * dialog. If a string pref is defined with key `xhLastReadChangelog`, this service will track the
11
+ * most recent version viewed by the user, and the app will render a "What's new?" button in the
12
+ * top appBar to alert the user. These app-level UI elements are currently desktop-only, can all be
13
+ * independently disabled, and only appear when this service is enabled.
14
+ *
15
+ * Several additional options can be controlled via soft-config - see below.
16
+ *
17
+ * @see XH.showChangelog - public API for displaying the changelog, if enabled and populated.
18
+ * @see whatsNewButton - utility button that conditionally renders when an unread entry exists for
19
+ * the currently deployed app version. Installed by default in desktop appBar.
20
+ */
21
+ export declare class ChangelogService extends HoistService {
22
+ xhImpl: boolean;
23
+ static instance: ChangelogService;
24
+ readonly SVC_CONFIG_KEY: string;
25
+ readonly LAST_READ_PREF_KEY: string;
26
+ /**
27
+ * The complete changelog object, as produced by the app build or defined
28
+ * in soft-config, or an empty placeholder if neither source is enabled/available.
29
+ */
30
+ changelog: object;
31
+ /**
32
+ * Parsed and cleaned versions, if any, with any versions or
33
+ * nested categories marked for exclusion via config already omitted.
34
+ */
35
+ versions: ChangelogVersion[];
36
+ /**
37
+ * True if an entry exists for the current app version which the user has
38
+ * yet to view (and the required user preference has been created).
39
+ */
40
+ currentVersionIsUnread: boolean;
41
+ get enabled(): boolean;
42
+ get latestAvailableVersion(): string;
43
+ get latestNonEmptyVersion(): string;
44
+ constructor();
45
+ initAsync(): Promise<void>;
46
+ markLatestAsRead(): void;
47
+ private get config();
48
+ private parseVersions;
49
+ private includeVersion;
50
+ private includeCategory;
51
+ private updateUnreadStatus;
52
+ }
53
+ export interface ChangelogVersion {
54
+ version: string;
55
+ title: string;
56
+ isCurrentVersion: boolean;
57
+ categories: ChangelogCategory[];
58
+ }
59
+ export interface ChangelogCategory {
60
+ title: string;
61
+ items: string[];
62
+ }
@@ -0,0 +1,64 @@
1
+ import { HoistService, PageState, PlainObject } from '@xh/hoist/core';
2
+ import { WebSocketTelemetry } from '@xh/hoist/svc/WebSocketService';
3
+ /**
4
+ * Service for gathering data about the current state and health of the client app, for submission
5
+ * to the server or review on the console during interactive troubleshooting.
6
+ *
7
+ * Hoist sends this data once on application load and can be configured to send at regular intervals
8
+ * throughout a user's session via the `xhActivityTracking.clientHealthReport` app config. Reports
9
+ * are submitted via activity tracking for review within the Admin Console.
10
+ */
11
+ export declare class ClientHealthService extends HoistService {
12
+ static instance: ClientHealthService;
13
+ private sources;
14
+ initAsync(): Promise<void>;
15
+ get enabled(): boolean;
16
+ /** @returns a customizable report with metrics capturing client app/session state. */
17
+ getReport(): ClientHealthReport;
18
+ /** @returns a report, formatted for easier viewing in console. **/
19
+ getFormattedReport(): PlainObject;
20
+ /**
21
+ * Register a new source for app-specific data to be sent with each report.
22
+ * @param key - key under which to report the data - can be used to remove this source later.
23
+ * @param callback - function returning serializable to include with each report.
24
+ */
25
+ addSource(key: string, callback: () => any): void;
26
+ /** Unregister a previously-enabled source for client health report data. */
27
+ removeSource(key: string): void;
28
+ /**
29
+ * Generate and submit a report to the server, via TrackService.
30
+ *
31
+ * For ad-hoc troubleshooting. Apps may also configure this service to
32
+ * submit on regular intervals.
33
+ */
34
+ sendReportAsync(): Promise<void>;
35
+ getGeneral(): GeneralData;
36
+ getConnection(): ConnectionData;
37
+ getMemory(): MemoryData;
38
+ getCustom(): PlainObject;
39
+ private sendReportInternal;
40
+ }
41
+ export interface GeneralData {
42
+ startTime: number;
43
+ durationMins: number;
44
+ idleMins: number;
45
+ pageState: PageState;
46
+ }
47
+ export interface ConnectionData {
48
+ downlink: number;
49
+ effectiveType: string;
50
+ rtt: number;
51
+ }
52
+ export interface MemoryData {
53
+ modelCount: number;
54
+ usedPctLimit?: number;
55
+ jsHeapSizeLimit?: number;
56
+ totalJSHeapSize?: number;
57
+ usedJSHeapSize?: number;
58
+ }
59
+ export interface ClientHealthReport {
60
+ general: GeneralData;
61
+ connection: ConnectionData;
62
+ memory: MemoryData;
63
+ webSockets: WebSocketTelemetry;
64
+ }
@@ -0,0 +1,36 @@
1
+ import { HoistService } from '@xh/hoist/core';
2
+ /**
3
+ * Service to read soft-configuration values.
4
+ *
5
+ * Server-side configuration support is provided by hoist-core. AppConfigs must be predefined on the
6
+ * server (they can be managed by the Admin console) and are referenced by their string key. These
7
+ * entries can then be changed on the fly or given per-environment values that allow the app to
8
+ * adjust without requiring a code change or redeployment.
9
+ *
10
+ * Note that for a config to be available here on the client, it must have its `clientVisible` flag
11
+ * set to true. This is to provide support for configurations that should *not* be sent down for
12
+ * possible inspection by end users.
13
+ *
14
+ * Note that this service does *not* currently attempt to reload or update configs once the client
15
+ * application has loaded. A refresh of the application is required to load new entries.
16
+ */
17
+ export declare class ConfigService extends HoistService {
18
+ static instance: ConfigService;
19
+ private _data;
20
+ initAsync(): Promise<void>;
21
+ /**
22
+ * Get the list of available keys.
23
+ */
24
+ get list(): string[];
25
+ /**
26
+ * Get the configured value for a given key. Typically accessed via `XH.getConf()` alias.
27
+ *
28
+ * @param key - identifier of the config to return.
29
+ * @param defaultValue - value to return if the configuration key is not found - i.e. the
30
+ * config has not been created on the server - instead of throwing. Use sparingly! In
31
+ * general, it's better to not provide defaults here, but instead keep entries up-to-date
32
+ * via the Admin client and have it be obvious when one is missing.
33
+ * @returns the soft-configured value.
34
+ */
35
+ get(key: string, defaultValue?: any): any;
36
+ }