@xh/hoist 57.0.0 → 57.0.2
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.
- package/CHANGELOG.md +22 -3
- package/build/types/admin/AppComponent.d.ts +4 -0
- package/build/types/admin/AppModel.d.ts +13 -0
- package/build/types/admin/columns/Core.d.ts +6 -0
- package/build/types/admin/columns/Rest.d.ts +5 -0
- package/build/types/admin/columns/Tracking.d.ts +18 -0
- package/build/types/admin/columns/User.d.ts +9 -0
- package/build/types/admin/columns/UserData.d.ts +7 -0
- package/build/types/admin/columns/index.d.ts +5 -0
- package/build/types/admin/differ/Differ.d.ts +2 -0
- package/build/types/admin/differ/DifferDetail.d.ts +3 -0
- package/build/types/admin/differ/DifferDetailModel.d.ts +17 -0
- package/build/types/admin/differ/DifferModel.d.ts +43 -0
- package/build/types/admin/regroup/RegroupDialog.d.ts +2 -0
- package/build/types/admin/regroup/RegroupDialogModel.d.ts +20 -0
- package/build/types/admin/tabs/activity/ActivityTab.d.ts +2 -0
- package/build/types/admin/tabs/activity/aggregators/RangeAggregator.d.ts +8 -0
- package/build/types/admin/tabs/activity/clienterrors/ClientErrorDetail.d.ts +2 -0
- package/build/types/admin/tabs/activity/clienterrors/ClientErrorsModel.d.ts +30 -0
- package/build/types/admin/tabs/activity/clienterrors/ClientErrorsPanel.d.ts +2 -0
- package/build/types/admin/tabs/activity/feedback/FeedbackPanel.d.ts +1 -0
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingModel.d.ts +50 -0
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingPanel.d.ts +2 -0
- package/build/types/admin/tabs/activity/tracking/charts/ChartsModel.d.ts +32 -0
- package/build/types/admin/tabs/activity/tracking/charts/ChartsPanel.d.ts +2 -0
- package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailModel.d.ts +15 -0
- package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailView.d.ts +2 -0
- package/build/types/admin/tabs/general/GeneralTab.d.ts +1 -0
- package/build/types/admin/tabs/general/about/AboutPanel.d.ts +2 -0
- package/build/types/admin/tabs/general/alertBanner/AlertBannerModel.d.ts +24 -0
- package/build/types/admin/tabs/general/alertBanner/AlertBannerPanel.d.ts +3 -0
- package/build/types/admin/tabs/general/config/ConfigPanel.d.ts +2 -0
- package/build/types/admin/tabs/general/config/ConfigPanelModel.d.ts +19 -0
- package/build/types/admin/tabs/general/users/UserModel.d.ts +12 -0
- package/build/types/admin/tabs/general/users/UserPanel.d.ts +2 -0
- package/build/types/admin/tabs/monitor/MonitorColumns.d.ts +15 -0
- package/build/types/admin/tabs/monitor/MonitorEditorPanel.d.ts +1 -0
- package/build/types/admin/tabs/monitor/MonitorResultsModel.d.ts +17 -0
- package/build/types/admin/tabs/monitor/MonitorResultsPanel.d.ts +3 -0
- package/build/types/admin/tabs/monitor/MonitorResultsToolbar.d.ts +2 -0
- package/build/types/admin/tabs/monitor/MonitorTab.d.ts +1 -0
- package/build/types/admin/tabs/monitor/Tile.d.ts +2 -0
- package/build/types/admin/tabs/server/ServerTab.d.ts +1 -0
- package/build/types/admin/tabs/server/ehcache/EhCacheModel.d.ts +10 -0
- package/build/types/admin/tabs/server/ehcache/EhCachePanel.d.ts +2 -0
- package/build/types/admin/tabs/server/environment/ServerEnvModel.d.ts +11 -0
- package/build/types/admin/tabs/server/environment/ServerEnvPanel.d.ts +2 -0
- package/build/types/admin/tabs/server/logLevel/LogLevelColumns.d.ts +5 -0
- package/build/types/admin/tabs/server/logLevel/LogLevelPanel.d.ts +1 -0
- package/build/types/admin/tabs/server/logViewer/LogDisplay.d.ts +6 -0
- package/build/types/admin/tabs/server/logViewer/LogDisplayModel.d.ts +29 -0
- package/build/types/admin/tabs/server/logViewer/LogViewer.d.ts +3 -0
- package/build/types/admin/tabs/server/logViewer/LogViewerModel.d.ts +23 -0
- package/build/types/admin/tabs/server/memory/MemoryMonitorModel.d.ts +15 -0
- package/build/types/admin/tabs/server/memory/MemoryMonitorPanel.d.ts +2 -0
- package/build/types/admin/tabs/server/services/ServiceModel.d.ts +8 -0
- package/build/types/admin/tabs/server/services/ServicePanel.d.ts +2 -0
- package/build/types/admin/tabs/server/websocket/WebSocketColumns.d.ts +8 -0
- package/build/types/admin/tabs/server/websocket/WebSocketModel.d.ts +12 -0
- package/build/types/admin/tabs/server/websocket/WebSocketPanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/JsonBlobColumns.d.ts +9 -0
- package/build/types/admin/tabs/userData/JsonBlobModel.d.ts +15 -0
- package/build/types/admin/tabs/userData/JsonBlobPanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/PreferenceModel.d.ts +16 -0
- package/build/types/admin/tabs/userData/PreferencePanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/UserDataTab.d.ts +1 -0
- package/build/types/admin/tabs/userData/UserPreferencePanel.d.ts +1 -0
- package/build/types/appcontainer/AboutDialogModel.d.ts +15 -0
- package/build/types/appcontainer/AppContainerModel.d.ts +43 -0
- package/build/types/appcontainer/AppOption.d.ts +23 -0
- package/build/types/appcontainer/BannerModel.d.ts +26 -0
- package/build/types/appcontainer/BannerSourceModel.d.ts +15 -0
- package/build/types/appcontainer/ChangelogDialogModel.d.ts +9 -0
- package/build/types/appcontainer/ErrorBoundary.d.ts +16 -0
- package/build/types/appcontainer/ExceptionDialogModel.d.ts +28 -0
- package/build/types/appcontainer/FeedbackDialogModel.d.ts +24 -0
- package/build/types/appcontainer/ImpersonationBarModel.d.ts +20 -0
- package/build/types/appcontainer/MessageModel.d.ts +35 -0
- package/build/types/appcontainer/MessageSourceModel.d.ts +18 -0
- package/build/types/appcontainer/OptionsDialogModel.d.ts +23 -0
- package/build/types/appcontainer/SizingModeModel.d.ts +13 -0
- package/build/types/appcontainer/ThemeModel.d.ts +13 -0
- package/build/types/appcontainer/ToastModel.d.ts +27 -0
- package/build/types/appcontainer/ToastSourceModel.d.ts +13 -0
- package/build/types/appcontainer/ViewportSizeModel.d.ts +19 -0
- package/build/types/appcontainer/login/LoginPanelModel.d.ts +15 -0
- package/build/types/cmp/ag-grid/AgGrid.d.ts +31 -0
- package/build/types/cmp/ag-grid/AgGridModel.d.ts +183 -0
- package/build/types/cmp/ag-grid/index.d.ts +2 -0
- package/build/types/cmp/badge/Badge.d.ts +13 -0
- package/build/types/cmp/badge/index.d.ts +1 -0
- package/build/types/cmp/chart/Chart.d.ts +18 -0
- package/build/types/cmp/chart/ChartModel.d.ts +48 -0
- package/build/types/cmp/chart/impl/copyToClipboard.d.ts +6 -0
- package/build/types/cmp/chart/impl/zoomout.d.ts +5 -0
- package/build/types/cmp/chart/index.d.ts +2 -0
- package/build/types/cmp/chart/theme/Dark.d.ts +216 -0
- package/build/types/cmp/chart/theme/Light.d.ts +193 -0
- package/build/types/cmp/clock/Clock.d.ts +26 -0
- package/build/types/cmp/clock/index.d.ts +1 -0
- package/build/types/cmp/dataview/DataView.d.ts +22 -0
- package/build/types/cmp/dataview/DataViewModel.d.ts +103 -0
- package/build/types/cmp/dataview/index.d.ts +2 -0
- package/build/types/cmp/filter/FilterChooserFieldSpec.d.ts +39 -0
- package/build/types/cmp/filter/FilterChooserModel.d.ts +130 -0
- package/build/types/cmp/filter/impl/Option.d.ts +47 -0
- package/build/types/cmp/filter/impl/QueryEngine.d.ts +29 -0
- package/build/types/cmp/filter/index.d.ts +1 -0
- package/build/types/cmp/form/BaseFormFieldProps.d.ts +33 -0
- package/build/types/cmp/form/Form.d.ts +35 -0
- package/build/types/cmp/form/FormModel.d.ts +130 -0
- package/build/types/cmp/form/field/BaseFieldModel.d.ts +156 -0
- package/build/types/cmp/form/field/FieldModel.d.ts +11 -0
- package/build/types/cmp/form/field/SubformsFieldModel.d.ts +65 -0
- package/build/types/cmp/form/index.d.ts +6 -0
- package/build/types/cmp/grid/Grid.d.ts +39 -0
- package/build/types/cmp/grid/GridAutosizeOptions.d.ts +44 -0
- package/build/types/cmp/grid/GridContextMenu.d.ts +28 -0
- package/build/types/cmp/grid/GridModel.d.ts +556 -0
- package/build/types/cmp/grid/GridSorter.d.ts +23 -0
- package/build/types/cmp/grid/Types.d.ts +274 -0
- package/build/types/cmp/grid/columns/Column.d.ts +362 -0
- package/build/types/cmp/grid/columns/ColumnGroup.d.ts +56 -0
- package/build/types/cmp/grid/columns/Core.d.ts +9 -0
- package/build/types/cmp/grid/columns/DatesTimes.d.ts +12 -0
- package/build/types/cmp/grid/columns/index.d.ts +4 -0
- package/build/types/cmp/grid/enums/ExcelFormat.d.ts +33 -0
- package/build/types/cmp/grid/enums/GridAutosizeMode.d.ts +24 -0
- package/build/types/cmp/grid/enums/TreeStyle.d.ts +15 -0
- package/build/types/cmp/grid/filter/GridFilterFieldSpec.d.ts +38 -0
- package/build/types/cmp/grid/filter/GridFilterModel.d.ts +44 -0
- package/build/types/cmp/grid/helpers/GridCountLabel.d.ts +25 -0
- package/build/types/cmp/grid/impl/ColumnGroupHeader.d.ts +24 -0
- package/build/types/cmp/grid/impl/ColumnHeader.d.ts +55 -0
- package/build/types/cmp/grid/impl/ColumnWidthCalculator.d.ts +41 -0
- package/build/types/cmp/grid/impl/GridPersistenceModel.d.ts +34 -0
- package/build/types/cmp/grid/impl/MenuSupport.d.ts +7 -0
- package/build/types/cmp/grid/impl/RowKeyNavSupport.d.ts +11 -0
- package/build/types/cmp/grid/impl/Utils.d.ts +5 -0
- package/build/types/cmp/grid/index.d.ts +15 -0
- package/build/types/cmp/grid/renderers/MultiFieldRenderer.d.ts +27 -0
- package/build/types/cmp/grid/renderers/TagsRenderer.d.ts +3 -0
- package/build/types/cmp/grouping/GroupingChooserModel.d.ts +89 -0
- package/build/types/cmp/grouping/index.d.ts +1 -0
- package/build/types/cmp/input/HoistInputModel.d.ts +148 -0
- package/build/types/cmp/input/HoistInputProps.d.ts +19 -0
- package/build/types/cmp/input/index.d.ts +2 -0
- package/build/types/cmp/layout/Box.d.ts +17 -0
- package/build/types/cmp/layout/Frame.d.ts +15 -0
- package/build/types/cmp/layout/Placeholder.d.ts +12 -0
- package/build/types/cmp/layout/Spacer.d.ts +15 -0
- package/build/types/cmp/layout/Tags.d.ts +32 -0
- package/build/types/cmp/layout/TileFrame.d.ts +38 -0
- package/build/types/cmp/layout/Viewport.d.ts +9 -0
- package/build/types/cmp/layout/index.d.ts +7 -0
- package/build/types/cmp/pinpad/PinPad.d.ts +10 -0
- package/build/types/cmp/pinpad/PinPadModel.d.ts +35 -0
- package/build/types/cmp/pinpad/index.d.ts +2 -0
- package/build/types/cmp/relativetimestamp/RelativeTimestamp.d.ts +46 -0
- package/build/types/cmp/relativetimestamp/index.d.ts +1 -0
- package/build/types/cmp/spinner/Spinner.d.ts +16 -0
- package/build/types/cmp/spinner/index.d.ts +1 -0
- package/build/types/cmp/store/StoreCountLabel.d.ts +18 -0
- package/build/types/cmp/store/StoreFilterField.d.ts +82 -0
- package/build/types/cmp/store/impl/StoreFilterFieldImplModel.d.ts +23 -0
- package/build/types/cmp/store/index.d.ts +2 -0
- package/build/types/cmp/tab/TabContainer.d.ts +20 -0
- package/build/types/cmp/tab/TabContainerModel.d.ts +114 -0
- package/build/types/cmp/tab/TabModel.d.ts +71 -0
- package/build/types/cmp/tab/TabSwitcherProps.d.ts +16 -0
- package/build/types/cmp/tab/index.d.ts +4 -0
- package/build/types/cmp/websocket/WebSocketIndicator.d.ts +10 -0
- package/build/types/cmp/websocket/index.d.ts +1 -0
- package/build/types/core/AppSpec.d.ts +106 -0
- package/build/types/core/AppState.d.ts +13 -0
- package/build/types/core/HoistAppModel.d.ts +81 -0
- package/build/types/core/HoistBase.d.ts +160 -0
- package/build/types/core/HoistBaseDecorators.d.ts +20 -0
- package/build/types/core/HoistComponent.d.ts +109 -0
- package/build/types/core/HoistProps.d.ts +91 -0
- package/build/types/core/HoistService.d.ts +56 -0
- package/build/types/core/RefreshContextView.d.ts +11 -0
- package/build/types/core/RouterModel.d.ts +41 -0
- package/build/types/core/TaskObserver.d.ts +75 -0
- package/build/types/core/XH.d.ts +358 -0
- package/build/types/core/elem.d.ts +55 -0
- package/build/types/core/enums/RefreshMode.d.ts +16 -0
- package/build/types/core/enums/RenderMode.d.ts +13 -0
- package/build/types/core/enums/SizingMode.d.ts +10 -0
- package/build/types/core/exception/Exception.d.ts +63 -0
- package/build/types/core/exception/ExceptionHandler.d.ts +121 -0
- package/build/types/core/exception/Types.d.ts +50 -0
- package/build/types/core/impl/InstallServices.d.ts +18 -0
- package/build/types/core/impl/InstanceManager.d.ts +19 -0
- package/build/types/core/impl/PlatformManager.d.ts +13 -0
- package/build/types/core/index.d.ts +24 -0
- package/build/types/core/load/LoadSpec.d.ts +50 -0
- package/build/types/core/load/LoadSupport.d.ts +36 -0
- package/build/types/core/load/Loadable.d.ts +48 -0
- package/build/types/core/load/index.d.ts +3 -0
- package/build/types/core/model/CreatesSpec.d.ts +29 -0
- package/build/types/core/model/HoistModel.d.ts +121 -0
- package/build/types/core/model/Hooks.d.ts +28 -0
- package/build/types/core/model/ManagedRefreshContextModel.d.ts +23 -0
- package/build/types/core/model/ModelLookup.d.ts +27 -0
- package/build/types/core/model/ModelSelector.d.ts +28 -0
- package/build/types/core/model/ModelSpec.d.ts +30 -0
- package/build/types/core/model/RefreshContextModel.d.ts +45 -0
- package/build/types/core/model/RootRefreshContextModel.d.ts +14 -0
- package/build/types/core/model/UsesSpec.d.ts +49 -0
- package/build/types/core/model/index.d.ts +10 -0
- package/build/types/core/persist/CustomProvider.d.ts +16 -0
- package/build/types/core/persist/DashViewProvider.d.ts +11 -0
- package/build/types/core/persist/LocalStorageProvider.d.ts +11 -0
- package/build/types/core/persist/PersistOptions.d.ts +31 -0
- package/build/types/core/persist/PersistenceProvider.d.ts +49 -0
- package/build/types/core/persist/PrefProvider.d.ts +11 -0
- package/build/types/core/persist/index.d.ts +6 -0
- package/build/types/core/types/Interfaces.d.ts +232 -0
- package/build/types/core/types/Types.d.ts +41 -0
- package/build/types/data/Field.d.ts +72 -0
- package/build/types/data/RecordAction.d.ts +114 -0
- package/build/types/data/Store.d.ts +386 -0
- package/build/types/data/StoreRecord.d.ts +167 -0
- package/build/types/data/StoreSelectionModel.d.ts +52 -0
- package/build/types/data/UrlStore.d.ts +26 -0
- package/build/types/data/cube/BucketSpec.d.ts +13 -0
- package/build/types/data/cube/Cube.d.ts +159 -0
- package/build/types/data/cube/CubeField.d.ts +52 -0
- package/build/types/data/cube/Query.d.ts +63 -0
- package/build/types/data/cube/View.d.ts +97 -0
- package/build/types/data/cube/aggregate/AggregationContext.d.ts +21 -0
- package/build/types/data/cube/aggregate/Aggregator.d.ts +40 -0
- package/build/types/data/cube/aggregate/AverageAggregator.d.ts +4 -0
- package/build/types/data/cube/aggregate/AverageStrictAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/ChildCountAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/LeafCountAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/MaxAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/MinAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/NullAggregator.d.ts +4 -0
- package/build/types/data/cube/aggregate/SingleAggregator.d.ts +4 -0
- package/build/types/data/cube/aggregate/SumAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/SumStrictAggregator.d.ts +5 -0
- package/build/types/data/cube/aggregate/UniqueAggregator.d.ts +5 -0
- package/build/types/data/cube/row/AggregateRow.d.ts +13 -0
- package/build/types/data/cube/row/BaseRow.d.ts +27 -0
- package/build/types/data/cube/row/BucketRow.d.ts +12 -0
- package/build/types/data/cube/row/LeafRow.d.ts +12 -0
- package/build/types/data/cube/row/RowUpdate.d.ts +10 -0
- package/build/types/data/filter/BaseFilterFieldSpec.d.ts +73 -0
- package/build/types/data/filter/CompoundFilter.d.ts +23 -0
- package/build/types/data/filter/FieldFilter.d.ts +32 -0
- package/build/types/data/filter/Filter.d.ts +25 -0
- package/build/types/data/filter/FunctionFilter.d.ts +20 -0
- package/build/types/data/filter/Types.d.ts +31 -0
- package/build/types/data/filter/Utils.d.ts +49 -0
- package/build/types/data/impl/RecordSet.d.ts +44 -0
- package/build/types/data/impl/RecordValidator.d.ts +39 -0
- package/build/types/data/impl/StoreValidator.d.ts +47 -0
- package/build/types/data/index.d.ts +31 -0
- package/build/types/data/validation/Rule.d.ts +51 -0
- package/build/types/data/validation/ValidationState.d.ts +6 -0
- package/build/types/data/validation/constraints.d.ts +64 -0
- package/build/types/deprecated/index.d.ts +0 -0
- package/build/types/desktop/appcontainer/AboutDialog.d.ts +11 -0
- package/build/types/desktop/appcontainer/AppContainer.d.ts +13 -0
- package/build/types/desktop/appcontainer/Banner.d.ts +8 -0
- package/build/types/desktop/appcontainer/ChangelogDialog.d.ts +3 -0
- package/build/types/desktop/appcontainer/ExceptionDialog.d.ts +13 -0
- package/build/types/desktop/appcontainer/ExceptionDialogDetails.d.ts +8 -0
- package/build/types/desktop/appcontainer/FeedbackDialog.d.ts +6 -0
- package/build/types/desktop/appcontainer/IdlePanel.d.ts +8 -0
- package/build/types/desktop/appcontainer/ImpersonationBar.d.ts +9 -0
- package/build/types/desktop/appcontainer/LockoutPanel.d.ts +8 -0
- package/build/types/desktop/appcontainer/LoginPanel.d.ts +9 -0
- package/build/types/desktop/appcontainer/Message.d.ts +8 -0
- package/build/types/desktop/appcontainer/MessageSource.d.ts +6 -0
- package/build/types/desktop/appcontainer/OptionsDialog.d.ts +9 -0
- package/build/types/desktop/appcontainer/SuspendPanel.d.ts +6 -0
- package/build/types/desktop/appcontainer/ToastSource.d.ts +8 -0
- package/build/types/desktop/appcontainer/VersionBar.d.ts +3 -0
- package/build/types/desktop/appcontainer/index.d.ts +1 -0
- package/build/types/desktop/cmp/appOption/AutoRefreshAppOption.d.ts +340 -0
- package/build/types/desktop/cmp/appOption/SizingModeAppOption.d.ts +17 -0
- package/build/types/desktop/cmp/appOption/ThemeAppOption.d.ts +340 -0
- package/build/types/desktop/cmp/appOption/index.d.ts +3 -0
- package/build/types/desktop/cmp/appbar/AppBar.d.ts +34 -0
- package/build/types/desktop/cmp/appbar/AppBarSeparator.d.ts +6 -0
- package/build/types/desktop/cmp/appbar/index.d.ts +2 -0
- package/build/types/desktop/cmp/button/AppMenuButton.d.ts +36 -0
- package/build/types/desktop/cmp/button/Button.d.ts +28 -0
- package/build/types/desktop/cmp/button/ButtonGroup.d.ts +17 -0
- package/build/types/desktop/cmp/button/ColAutosizeButton.d.ts +14 -0
- package/build/types/desktop/cmp/button/ColChooserButton.d.ts +19 -0
- package/build/types/desktop/cmp/button/DashCanvasAddViewButton.d.ts +11 -0
- package/build/types/desktop/cmp/button/ExportButton.d.ts +22 -0
- package/build/types/desktop/cmp/button/FeedbackButton.d.ts +9 -0
- package/build/types/desktop/cmp/button/LaunchAdminButton.d.ts +9 -0
- package/build/types/desktop/cmp/button/LogoutButton.d.ts +11 -0
- package/build/types/desktop/cmp/button/ModalToggleButton.d.ts +11 -0
- package/build/types/desktop/cmp/button/OptionsButton.d.ts +10 -0
- package/build/types/desktop/cmp/button/RefreshButton.d.ts +13 -0
- package/build/types/desktop/cmp/button/RestoreDefaultsButton.d.ts +16 -0
- package/build/types/desktop/cmp/button/ThemeToggleButton.d.ts +8 -0
- package/build/types/desktop/cmp/button/WhatsNewButton.d.ts +11 -0
- package/build/types/desktop/cmp/button/index.d.ts +15 -0
- package/build/types/desktop/cmp/clipboard/ClipboardButton.d.ts +13 -0
- package/build/types/desktop/cmp/clipboard/ClipboardMenuItem.d.ts +7 -0
- package/build/types/desktop/cmp/clipboard/index.d.ts +2 -0
- package/build/types/desktop/cmp/contextmenu/ContextMenu.d.ts +21 -0
- package/build/types/desktop/cmp/contextmenu/index.d.ts +1 -0
- package/build/types/desktop/cmp/dash/DashConfig.d.ts +33 -0
- package/build/types/desktop/cmp/dash/DashModel.d.ts +19 -0
- package/build/types/desktop/cmp/dash/DashViewModel.d.ts +52 -0
- package/build/types/desktop/cmp/dash/DashViewSpec.d.ts +41 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvas.d.ts +19 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvasModel.d.ts +104 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvasViewModel.d.ts +27 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvasViewSpec.d.ts +30 -0
- package/build/types/desktop/cmp/dash/canvas/impl/DashCanvasContextMenu.d.ts +8 -0
- package/build/types/desktop/cmp/dash/canvas/impl/DashCanvasView.d.ts +12 -0
- package/build/types/desktop/cmp/dash/canvas/impl/utils.d.ts +10 -0
- package/build/types/desktop/cmp/dash/container/DashContainer.d.ts +9 -0
- package/build/types/desktop/cmp/dash/container/DashContainerModel.d.ts +143 -0
- package/build/types/desktop/cmp/dash/container/DashContainerViewSpec.d.ts +17 -0
- package/build/types/desktop/cmp/dash/container/impl/DashContainerContextMenu.d.ts +15 -0
- package/build/types/desktop/cmp/dash/container/impl/DashContainerMenuButton.d.ts +7 -0
- package/build/types/desktop/cmp/dash/container/impl/DashContainerUtils.d.ts +14 -0
- package/build/types/desktop/cmp/dash/container/impl/DashContainerView.d.ts +12 -0
- package/build/types/desktop/cmp/dash/index.d.ts +11 -0
- package/build/types/desktop/cmp/dock/DockContainer.d.ts +26 -0
- package/build/types/desktop/cmp/dock/DockContainerModel.d.ts +33 -0
- package/build/types/desktop/cmp/dock/DockViewModel.d.ts +75 -0
- package/build/types/desktop/cmp/dock/impl/DockContainer.d.ts +10 -0
- package/build/types/desktop/cmp/dock/impl/DockView.d.ts +15 -0
- package/build/types/desktop/cmp/dock/index.d.ts +3 -0
- package/build/types/desktop/cmp/error/ErrorMessage.d.ts +33 -0
- package/build/types/desktop/cmp/error/index.d.ts +1 -0
- package/build/types/desktop/cmp/filechooser/FileChooser.d.ts +42 -0
- package/build/types/desktop/cmp/filechooser/FileChooserModel.d.ts +25 -0
- package/build/types/desktop/cmp/filechooser/index.d.ts +2 -0
- package/build/types/desktop/cmp/filter/FilterChooser.d.ts +28 -0
- package/build/types/desktop/cmp/filter/index.d.ts +2 -0
- package/build/types/desktop/cmp/form/FormField.d.ts +63 -0
- package/build/types/desktop/cmp/form/index.d.ts +1 -0
- package/build/types/desktop/cmp/grid/columns/Actions.d.ts +29 -0
- package/build/types/desktop/cmp/grid/editors/BooleanEditor.d.ts +16 -0
- package/build/types/desktop/cmp/grid/editors/DateEditor.d.ts +7 -0
- package/build/types/desktop/cmp/grid/editors/EditorProps.d.ts +17 -0
- package/build/types/desktop/cmp/grid/editors/NumberEditor.d.ts +7 -0
- package/build/types/desktop/cmp/grid/editors/SelectEditor.d.ts +7 -0
- package/build/types/desktop/cmp/grid/editors/TextAreaEditor.d.ts +7 -0
- package/build/types/desktop/cmp/grid/editors/TextEditor.d.ts +7 -0
- package/build/types/desktop/cmp/grid/editors/impl/InlineEditorModel.d.ts +15 -0
- package/build/types/desktop/cmp/grid/editors/index.d.ts +6 -0
- package/build/types/desktop/cmp/grid/find/GridFindField.d.ts +43 -0
- package/build/types/desktop/cmp/grid/find/impl/GridFindFieldImplModel.d.ts +37 -0
- package/build/types/desktop/cmp/grid/impl/colchooser/ColChooser.d.ts +18 -0
- package/build/types/desktop/cmp/grid/impl/colchooser/ColChooserDialog.d.ts +2 -0
- package/build/types/desktop/cmp/grid/impl/colchooser/ColChooserModel.d.ts +33 -0
- package/build/types/desktop/cmp/grid/impl/filter/ColumnHeaderFilter.d.ts +9 -0
- package/build/types/desktop/cmp/grid/impl/filter/ColumnHeaderFilterModel.d.ts +38 -0
- package/build/types/desktop/cmp/grid/impl/filter/GridFilterDialog.d.ts +11 -0
- package/build/types/desktop/cmp/grid/impl/filter/custom/CustomRow.d.ts +6 -0
- package/build/types/desktop/cmp/grid/impl/filter/custom/CustomRowModel.d.ts +28 -0
- package/build/types/desktop/cmp/grid/impl/filter/custom/CustomTab.d.ts +7 -0
- package/build/types/desktop/cmp/grid/impl/filter/custom/CustomTabModel.d.ts +21 -0
- package/build/types/desktop/cmp/grid/impl/filter/values/ValuesTab.d.ts +7 -0
- package/build/types/desktop/cmp/grid/impl/filter/values/ValuesTabModel.d.ts +33 -0
- package/build/types/desktop/cmp/grid/index.d.ts +3 -0
- package/build/types/desktop/cmp/grouping/GroupingChooser.d.ts +26 -0
- package/build/types/desktop/cmp/grouping/index.d.ts +2 -0
- package/build/types/desktop/cmp/input/ButtonGroupInput.d.ts +26 -0
- package/build/types/desktop/cmp/input/Checkbox.d.ts +28 -0
- package/build/types/desktop/cmp/input/CodeInput.d.ts +80 -0
- package/build/types/desktop/cmp/input/DateInput.d.ts +117 -0
- package/build/types/desktop/cmp/input/JsonInput.d.ts +9 -0
- package/build/types/desktop/cmp/input/NumberInput.d.ts +77 -0
- package/build/types/desktop/cmp/input/RadioInput.d.ts +22 -0
- package/build/types/desktop/cmp/input/Select.d.ts +139 -0
- package/build/types/desktop/cmp/input/Slider.d.ts +33 -0
- package/build/types/desktop/cmp/input/SwitchInput.d.ts +21 -0
- package/build/types/desktop/cmp/input/TextArea.d.ts +26 -0
- package/build/types/desktop/cmp/input/TextInput.d.ts +55 -0
- package/build/types/desktop/cmp/input/index.d.ts +12 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooser.d.ts +14 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserFilter.d.ts +15 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserModel.d.ts +83 -0
- package/build/types/desktop/cmp/leftrightchooser/impl/ChooserToolbar.d.ts +3 -0
- package/build/types/desktop/cmp/leftrightchooser/impl/Description.d.ts +3 -0
- package/build/types/desktop/cmp/leftrightchooser/index.d.ts +3 -0
- package/build/types/desktop/cmp/loadingindicator/LoadingIndicator.d.ts +27 -0
- package/build/types/desktop/cmp/loadingindicator/index.d.ts +1 -0
- package/build/types/desktop/cmp/mask/Mask.d.ts +27 -0
- package/build/types/desktop/cmp/mask/index.d.ts +1 -0
- package/build/types/desktop/cmp/modalsupport/ModalSupport.d.ts +16 -0
- package/build/types/desktop/cmp/modalsupport/ModalSupportModel.d.ts +30 -0
- package/build/types/desktop/cmp/modalsupport/index.d.ts +2 -0
- package/build/types/desktop/cmp/panel/Panel.d.ts +60 -0
- package/build/types/desktop/cmp/panel/PanelModel.d.ts +112 -0
- package/build/types/desktop/cmp/panel/impl/PanelHeader.d.ts +2 -0
- package/build/types/desktop/cmp/panel/impl/ResizeContainer.d.ts +1 -0
- package/build/types/desktop/cmp/panel/impl/Splitter.d.ts +2 -0
- package/build/types/desktop/cmp/panel/impl/dragger/Dragger.d.ts +3 -0
- package/build/types/desktop/cmp/panel/impl/dragger/DraggerModel.d.ts +33 -0
- package/build/types/desktop/cmp/panel/index.d.ts +2 -0
- package/build/types/desktop/cmp/pinpad/impl/PinPad.d.ts +11 -0
- package/build/types/desktop/cmp/record/RecordActionBar.d.ts +33 -0
- package/build/types/desktop/cmp/record/impl/RecordActionButton.d.ts +21 -0
- package/build/types/desktop/cmp/record/index.d.ts +1 -0
- package/build/types/desktop/cmp/rest/Actions.d.ts +7 -0
- package/build/types/desktop/cmp/rest/RestGrid.d.ts +24 -0
- package/build/types/desktop/cmp/rest/RestGridModel.d.ts +98 -0
- package/build/types/desktop/cmp/rest/data/RestField.d.ts +37 -0
- package/build/types/desktop/cmp/rest/data/RestStore.d.ts +39 -0
- package/build/types/desktop/cmp/rest/impl/RestForm.d.ts +6 -0
- package/build/types/desktop/cmp/rest/impl/RestFormField.d.ts +5 -0
- package/build/types/desktop/cmp/rest/impl/RestFormModel.d.ts +48 -0
- package/build/types/desktop/cmp/rest/impl/RestGridToolbar.d.ts +5 -0
- package/build/types/desktop/cmp/rest/index.d.ts +4 -0
- package/build/types/desktop/cmp/store/impl/StoreFilterField.d.ts +7 -0
- package/build/types/desktop/cmp/tab/TabSwitcher.d.ts +15 -0
- package/build/types/desktop/cmp/tab/impl/Tab.d.ts +12 -0
- package/build/types/desktop/cmp/tab/impl/TabContainer.d.ts +8 -0
- package/build/types/desktop/cmp/tab/index.d.ts +1 -0
- package/build/types/desktop/cmp/toolbar/Toolbar.d.ts +31 -0
- package/build/types/desktop/cmp/toolbar/ToolbarSep.d.ts +11 -0
- package/build/types/desktop/cmp/toolbar/index.d.ts +2 -0
- package/build/types/desktop/cmp/treemap/SplitTreeMap.d.ts +11 -0
- package/build/types/desktop/cmp/treemap/SplitTreeMapModel.d.ts +79 -0
- package/build/types/desktop/cmp/treemap/TreeMap.d.ts +16 -0
- package/build/types/desktop/cmp/treemap/TreeMapModel.d.ts +182 -0
- package/build/types/desktop/cmp/treemap/impl/Splitter.d.ts +6 -0
- package/build/types/desktop/cmp/treemap/index.d.ts +4 -0
- package/build/types/desktop/hooks/UseContextMenu.d.ts +11 -0
- package/build/types/desktop/hooks/UseHotkeys.d.ts +14 -0
- package/build/types/desktop/hooks/index.d.ts +2 -0
- package/build/types/desktop/register.d.ts +1 -0
- package/build/types/dynamics/desktop.d.ts +27 -0
- package/build/types/dynamics/mobile.d.ts +21 -0
- package/build/types/format/FormatDate.d.ts +52 -0
- package/build/types/format/FormatMisc.d.ts +41 -0
- package/build/types/format/FormatNumber.d.ts +112 -0
- package/build/types/format/FormatUtils.d.ts +11 -0
- package/build/types/format/impl/Utils.d.ts +7 -0
- package/build/types/format/index.d.ts +4 -0
- package/build/types/icon/Icon.d.ts +340 -0
- package/build/types/icon/XHLogo.d.ts +4 -0
- package/build/types/icon/impl/IconCmp.d.ts +6 -0
- package/build/types/icon/impl/IconHtml.d.ts +13 -0
- package/build/types/icon/index.d.ts +2 -0
- package/build/types/inspector/InspectorPanel.d.ts +5 -0
- package/build/types/inspector/instances/InstancesModel.d.ts +48 -0
- package/build/types/inspector/instances/InstancesPanel.d.ts +2 -0
- package/build/types/inspector/stats/StatsModel.d.ts +19 -0
- package/build/types/inspector/stats/StatsPanel.d.ts +2 -0
- package/build/types/kit/ag-grid/index.d.ts +19 -0
- package/build/types/kit/blueprint/Dialog.d.ts +13 -0
- package/build/types/kit/blueprint/Wrappers.d.ts +5 -0
- package/build/types/kit/blueprint/index.d.ts +8 -0
- package/build/types/kit/highcharts/index.d.ts +6 -0
- package/build/types/kit/onsen/index.d.ts +8 -0
- package/build/types/kit/react-beautiful-dnd/index.d.ts +3 -0
- package/build/types/kit/react-dates/index.d.ts +5 -0
- package/build/types/kit/react-dropzone/index.d.ts +3 -0
- package/build/types/kit/react-select/index.d.ts +7 -0
- package/build/types/mobile/appcontainer/AboutDialog.d.ts +10 -0
- package/build/types/mobile/appcontainer/AppContainer.d.ts +13 -0
- package/build/types/mobile/appcontainer/Banner.d.ts +8 -0
- package/build/types/mobile/appcontainer/ExceptionDialog.d.ts +13 -0
- package/build/types/mobile/appcontainer/ExceptionDialogDetails.d.ts +7 -0
- package/build/types/mobile/appcontainer/FeedbackDialog.d.ts +6 -0
- package/build/types/mobile/appcontainer/IdlePanel.d.ts +8 -0
- package/build/types/mobile/appcontainer/ImpersonationBar.d.ts +9 -0
- package/build/types/mobile/appcontainer/LockoutPanel.d.ts +7 -0
- package/build/types/mobile/appcontainer/LoginPanel.d.ts +9 -0
- package/build/types/mobile/appcontainer/Message.d.ts +7 -0
- package/build/types/mobile/appcontainer/MessageSource.d.ts +6 -0
- package/build/types/mobile/appcontainer/OptionsDialog.d.ts +6 -0
- package/build/types/mobile/appcontainer/SuspendPanel.d.ts +6 -0
- package/build/types/mobile/appcontainer/Toast.d.ts +6 -0
- package/build/types/mobile/appcontainer/ToastSource.d.ts +7 -0
- package/build/types/mobile/appcontainer/VersionBar.d.ts +5 -0
- package/build/types/mobile/appcontainer/index.d.ts +1 -0
- package/build/types/mobile/cmp/appOption/AutoRefreshAppOption.d.ts +333 -0
- package/build/types/mobile/cmp/appOption/SizingModeAppOption.d.ts +336 -0
- package/build/types/mobile/cmp/appOption/ThemeAppOption.d.ts +333 -0
- package/build/types/mobile/cmp/appOption/index.d.ts +3 -0
- package/build/types/mobile/cmp/button/Button.d.ts +22 -0
- package/build/types/mobile/cmp/button/ButtonGroup.d.ts +13 -0
- package/build/types/mobile/cmp/button/ColAutosizeButton.d.ts +14 -0
- package/build/types/mobile/cmp/button/ColChooserButton.d.ts +15 -0
- package/build/types/mobile/cmp/button/ExpandCollapseButton.d.ts +12 -0
- package/build/types/mobile/cmp/button/FeedbackButton.d.ts +9 -0
- package/build/types/mobile/cmp/button/LogoutButton.d.ts +11 -0
- package/build/types/mobile/cmp/button/NavigatorBackButton.d.ts +8 -0
- package/build/types/mobile/cmp/button/OptionsButton.d.ts +10 -0
- package/build/types/mobile/cmp/button/RefreshButton.d.ts +13 -0
- package/build/types/mobile/cmp/button/RestoreDefaultsButton.d.ts +16 -0
- package/build/types/mobile/cmp/button/ThemeToggleButton.d.ts +8 -0
- package/build/types/mobile/cmp/button/index.d.ts +11 -0
- package/build/types/mobile/cmp/dialog/Dialog.d.ts +17 -0
- package/build/types/mobile/cmp/dialog/index.d.ts +1 -0
- package/build/types/mobile/cmp/error/ErrorMessage.d.ts +33 -0
- package/build/types/mobile/cmp/error/index.d.ts +1 -0
- package/build/types/mobile/cmp/form/FormField.d.ts +26 -0
- package/build/types/mobile/cmp/form/index.d.ts +1 -0
- package/build/types/mobile/cmp/grid/impl/ColChooser.d.ts +22 -0
- package/build/types/mobile/cmp/grid/impl/ColChooserModel.d.ts +46 -0
- package/build/types/mobile/cmp/grouping/GroupingChooser.d.ts +20 -0
- package/build/types/mobile/cmp/grouping/index.d.ts +2 -0
- package/build/types/mobile/cmp/header/AppBar.d.ts +39 -0
- package/build/types/mobile/cmp/header/AppMenuButton.d.ts +31 -0
- package/build/types/mobile/cmp/header/index.d.ts +2 -0
- package/build/types/mobile/cmp/input/ButtonGroupInput.d.ts +23 -0
- package/build/types/mobile/cmp/input/Checkbox.d.ts +14 -0
- package/build/types/mobile/cmp/input/DateInput.d.ts +53 -0
- package/build/types/mobile/cmp/input/Label.d.ts +11 -0
- package/build/types/mobile/cmp/input/NumberInput.d.ts +52 -0
- package/build/types/mobile/cmp/input/SearchInput.d.ts +24 -0
- package/build/types/mobile/cmp/input/Select.d.ts +122 -0
- package/build/types/mobile/cmp/input/SwitchInput.d.ts +14 -0
- package/build/types/mobile/cmp/input/TextArea.d.ts +22 -0
- package/build/types/mobile/cmp/input/TextInput.d.ts +39 -0
- package/build/types/mobile/cmp/input/index.d.ts +10 -0
- package/build/types/mobile/cmp/loadingindicator/LoadingIndicator.d.ts +27 -0
- package/build/types/mobile/cmp/loadingindicator/index.d.ts +1 -0
- package/build/types/mobile/cmp/mask/Mask.d.ts +25 -0
- package/build/types/mobile/cmp/mask/index.d.ts +1 -0
- package/build/types/mobile/cmp/menu/MenuButton.d.ts +21 -0
- package/build/types/mobile/cmp/menu/impl/Menu.d.ts +12 -0
- package/build/types/mobile/cmp/menu/index.d.ts +1 -0
- package/build/types/mobile/cmp/navigator/Navigator.d.ts +13 -0
- package/build/types/mobile/cmp/navigator/NavigatorModel.d.ts +55 -0
- package/build/types/mobile/cmp/navigator/PageModel.d.ts +60 -0
- package/build/types/mobile/cmp/navigator/impl/Page.d.ts +12 -0
- package/build/types/mobile/cmp/navigator/impl/swipe/BackIndicator.d.ts +6 -0
- package/build/types/mobile/cmp/navigator/impl/swipe/RefreshIndicator.d.ts +6 -0
- package/build/types/mobile/cmp/navigator/impl/swipe/Swiper.d.ts +8 -0
- package/build/types/mobile/cmp/navigator/impl/swipe/SwiperModel.d.ts +23 -0
- package/build/types/mobile/cmp/navigator/index.d.ts +2 -0
- package/build/types/mobile/cmp/panel/DialogPanel.d.ts +15 -0
- package/build/types/mobile/cmp/panel/Panel.d.ts +39 -0
- package/build/types/mobile/cmp/panel/impl/PanelHeader.d.ts +6 -0
- package/build/types/mobile/cmp/panel/index.d.ts +2 -0
- package/build/types/mobile/cmp/pinpad/impl/PinPad.d.ts +9 -0
- package/build/types/mobile/cmp/popover/Popover.d.ts +36 -0
- package/build/types/mobile/cmp/popover/index.d.ts +1 -0
- package/build/types/mobile/cmp/store/impl/StoreFilterField.d.ts +7 -0
- package/build/types/mobile/cmp/tab/impl/Tab.d.ts +13 -0
- package/build/types/mobile/cmp/tab/impl/TabContainer.d.ts +10 -0
- package/build/types/mobile/cmp/toolbar/Toolbar.d.ts +12 -0
- package/build/types/mobile/cmp/toolbar/ToolbarSeparator.d.ts +8 -0
- package/build/types/mobile/cmp/toolbar/index.d.ts +2 -0
- package/build/types/mobile/register.d.ts +1 -0
- package/build/types/mobx/decorators.d.ts +11 -0
- package/build/types/mobx/index.d.ts +5 -0
- package/build/types/mobx/overrides.d.ts +9 -0
- package/build/types/promise/Promise.d.ts +107 -0
- package/build/types/promise/index.d.ts +1 -0
- package/build/types/svc/AlertBannerService.d.ts +19 -0
- package/build/types/svc/AutoRefreshService.d.ts +28 -0
- package/build/types/svc/ChangelogService.d.ts +62 -0
- package/build/types/svc/ConfigService.d.ts +36 -0
- package/build/types/svc/EnvironmentService.d.ts +24 -0
- package/build/types/svc/FetchService.d.ts +139 -0
- package/build/types/svc/GridAutosizeService.d.ts +38 -0
- package/build/types/svc/GridExportService.d.ts +56 -0
- package/build/types/svc/IdentityService.d.ts +61 -0
- package/build/types/svc/IdleService.d.ts +21 -0
- package/build/types/svc/InspectorService.d.ts +74 -0
- package/build/types/svc/JsonBlobService.d.ts +35 -0
- package/build/types/svc/LocalStorageService.d.ts +24 -0
- package/build/types/svc/PrefService.d.ts +76 -0
- package/build/types/svc/TrackService.d.ts +15 -0
- package/build/types/svc/WebSocketService.d.ts +94 -0
- package/build/types/svc/index.d.ts +16 -0
- package/build/types/utils/async/AsyncUtils.d.ts +40 -0
- package/build/types/utils/async/Timer.d.ts +89 -0
- package/build/types/utils/async/index.d.ts +2 -0
- package/build/types/utils/datetime/DateTimeUtils.d.ts +10 -0
- package/build/types/utils/datetime/LocalDate.d.ts +94 -0
- package/build/types/utils/datetime/index.d.ts +2 -0
- package/build/types/utils/impl/Equals.d.ts +4 -0
- package/build/types/utils/impl/IsOmitted.d.ts +7 -0
- package/build/types/utils/impl/Separators.d.ts +10 -0
- package/build/types/utils/impl/TimeZone.d.ts +4 -0
- package/build/types/utils/impl/index.d.ts +4 -0
- package/build/types/utils/js/BrowserUtils.d.ts +4 -0
- package/build/types/utils/js/Decorators.d.ts +25 -0
- package/build/types/utils/js/DomUtils.d.ts +46 -0
- package/build/types/utils/js/HtmlUtils.d.ts +4 -0
- package/build/types/utils/js/LangUtils.d.ts +112 -0
- package/build/types/utils/js/LogUtils.d.ts +32 -0
- package/build/types/utils/js/VersionUtils.d.ts +17 -0
- package/build/types/utils/js/index.d.ts +7 -0
- package/build/types/utils/react/ClassName.d.ts +14 -0
- package/build/types/utils/react/Hooks.d.ts +47 -0
- package/build/types/utils/react/LayoutPropUtils.d.ts +42 -0
- package/build/types/utils/react/ObservableRef.d.ts +13 -0
- package/build/types/utils/react/ReactUtils.d.ts +19 -0
- package/build/types/utils/react/index.d.ts +5 -0
- package/package.json +2 -2
- package/static/preflight.js +15 -13
- package/tsconfig.json +14 -7
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { HoistService, AppSpec, AppState, ExceptionHandlerOptions, ExceptionHandler, TrackOptions, SizingMode, HoistServiceClass, Theme, PlainObject, HoistException } from './';
|
|
2
|
+
import { Store } from '@xh/hoist/data';
|
|
3
|
+
import { AlertBannerService, AutoRefreshService, ChangelogService, ConfigService, EnvironmentService, FetchService, GridAutosizeService, GridExportService, IdentityService, IdleService, InspectorService, JsonBlobService, LocalStorageService, PrefService, TrackService, WebSocketService, FetchOptions } from '@xh/hoist/svc';
|
|
4
|
+
import { AppContainerModel } from '../appcontainer/AppContainerModel';
|
|
5
|
+
import { ToastModel } from '../appcontainer/ToastModel';
|
|
6
|
+
import { BannerModel } from '../appcontainer/BannerModel';
|
|
7
|
+
import '../styles/XH.scss';
|
|
8
|
+
import { ModelSelector, HoistModel, RefreshContextModel } from './model';
|
|
9
|
+
import { HoistAppModel, RouterModel, BannerSpec, ToastSpec, MessageSpec, HoistUser, TaskObserver } from './';
|
|
10
|
+
/**
|
|
11
|
+
* Top-level Singleton model for Hoist. This is the main entry point for the API.
|
|
12
|
+
*
|
|
13
|
+
* Provides access to the built-in Hoist services, metadata about the application and environment,
|
|
14
|
+
* and convenience aliases to the most common framework operations. It also maintains key observable
|
|
15
|
+
* application state regarding dialogs, loading, and exceptions.
|
|
16
|
+
*
|
|
17
|
+
* Available via import as `XH` - also installed as `window.XH` for troubleshooting purposes.
|
|
18
|
+
*/
|
|
19
|
+
export declare class XHApi {
|
|
20
|
+
private _initCalled;
|
|
21
|
+
private _lastActivityMs;
|
|
22
|
+
private _uaParser;
|
|
23
|
+
constructor();
|
|
24
|
+
/** short internal code for the application. */
|
|
25
|
+
appCode: string;
|
|
26
|
+
/** user-facing display name for the app. See also `XH.clientAppName`. */
|
|
27
|
+
appName: string;
|
|
28
|
+
/** semVer or Snapshot version of the client build. */
|
|
29
|
+
appVersion: string;
|
|
30
|
+
/**
|
|
31
|
+
* optional identifier for the client build (e.g. a git commit hash or a
|
|
32
|
+
* build ID from a CI system). Varies depending on how builds are configured.
|
|
33
|
+
*/
|
|
34
|
+
appBuild: string;
|
|
35
|
+
/** root URL context/path - prepended to all relative fetch requests. */
|
|
36
|
+
baseUrl: string;
|
|
37
|
+
/** true if app is running in a local development environment. */
|
|
38
|
+
isDevelopmentMode: boolean;
|
|
39
|
+
alertBannerService: AlertBannerService;
|
|
40
|
+
autoRefreshService: AutoRefreshService;
|
|
41
|
+
changelogService: ChangelogService;
|
|
42
|
+
configService: ConfigService;
|
|
43
|
+
environmentService: EnvironmentService;
|
|
44
|
+
fetchService: FetchService;
|
|
45
|
+
gridAutosizeService: GridAutosizeService;
|
|
46
|
+
gridExportService: GridExportService;
|
|
47
|
+
identityService: IdentityService;
|
|
48
|
+
idleService: IdleService;
|
|
49
|
+
inspectorService: InspectorService;
|
|
50
|
+
jsonBlobService: JsonBlobService;
|
|
51
|
+
localStorageService: LocalStorageService;
|
|
52
|
+
prefService: PrefService;
|
|
53
|
+
trackService: TrackService;
|
|
54
|
+
webSocketService: WebSocketService;
|
|
55
|
+
/** Get a reference to a singleton service by camel case name.*/
|
|
56
|
+
getService(name: string): HoistService;
|
|
57
|
+
/** Get a reference to a singleton service by full class. */
|
|
58
|
+
getService<T extends HoistService>(cls: HoistServiceClass<T>): T;
|
|
59
|
+
fetch(opts: FetchOptions): Promise<import("./").FetchResponse>;
|
|
60
|
+
fetchJson(opts: FetchOptions): Promise<any>;
|
|
61
|
+
/**
|
|
62
|
+
* Primary convenience alias for reading soft configuration values.
|
|
63
|
+
* @param key - identifier of the config to return.
|
|
64
|
+
* @param defaultVal - value to return if there is no client-side config with this key.
|
|
65
|
+
* @returns the soft-configured value.
|
|
66
|
+
*/
|
|
67
|
+
getConf(key: string, defaultVal?: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* Primary convenience alias for reading user preference values.
|
|
70
|
+
* @param key - identifier of the pref to return.
|
|
71
|
+
* @param defaultVal - value to return if there is no pref with this key.
|
|
72
|
+
* @returns the user's preference, or the data-driven default if pref not yet set by user.
|
|
73
|
+
*/
|
|
74
|
+
getPref(key: string, defaultVal?: any): any;
|
|
75
|
+
/**
|
|
76
|
+
* Primary convenience alias for setting user preference values.
|
|
77
|
+
* @param key - identifier of the pref to set.
|
|
78
|
+
* @param val - the new value to persist for the current user.
|
|
79
|
+
*/
|
|
80
|
+
setPref(key: string, val: any): void;
|
|
81
|
+
track(opts: string | TrackOptions): void;
|
|
82
|
+
getEnv(key: string): any;
|
|
83
|
+
getUser(): HoistUser;
|
|
84
|
+
getUsername(): string;
|
|
85
|
+
get isMobileApp(): boolean;
|
|
86
|
+
get clientAppCode(): string;
|
|
87
|
+
get clientAppName(): string;
|
|
88
|
+
get isPhone(): boolean;
|
|
89
|
+
get isTablet(): boolean;
|
|
90
|
+
get isDesktop(): boolean;
|
|
91
|
+
appContainerModel: AppContainerModel;
|
|
92
|
+
routerModel: RouterModel;
|
|
93
|
+
suspendData: any;
|
|
94
|
+
accessDeniedMessage: string;
|
|
95
|
+
exceptionHandler: ExceptionHandler;
|
|
96
|
+
/** current lifecycle state of the application. */
|
|
97
|
+
appState: AppState;
|
|
98
|
+
/** milliseconds timestamp at moment user activity / interaction was last detected. */
|
|
99
|
+
get lastActivityMs(): number;
|
|
100
|
+
/** true if application initialized and running (observable). */
|
|
101
|
+
get appIsRunning(): boolean;
|
|
102
|
+
/** The currently authenticated user. */
|
|
103
|
+
authUsername: string;
|
|
104
|
+
/** Root level application model. */
|
|
105
|
+
appModel: HoistAppModel;
|
|
106
|
+
/** Specifications for this application, provided in call to `XH.renderApp()`. */
|
|
107
|
+
appSpec: AppSpec;
|
|
108
|
+
/** Main entry point. Initialize and render application code. */
|
|
109
|
+
renderApp<T extends HoistAppModel>(appSpec: AppSpec<T>): void;
|
|
110
|
+
/**
|
|
111
|
+
* Install HoistServices on XH.
|
|
112
|
+
*
|
|
113
|
+
* @param serviceClasses - Classes extending HoistService
|
|
114
|
+
*
|
|
115
|
+
* This method will create, initialize, and install the services classes listed on XH.
|
|
116
|
+
* All services will be initialized concurrently. To guarantee execution order of service
|
|
117
|
+
* initialization, make multiple calls to this method with await.
|
|
118
|
+
*
|
|
119
|
+
* Applications must choose a unique name of the form xxxService to avoid naming collisions.
|
|
120
|
+
* If naming collisions are detected, an error will be thrown.
|
|
121
|
+
*/
|
|
122
|
+
installServicesAsync(...serviceClasses: HoistServiceClass[]): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Transition the application state.
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
setAppState(appState: AppState): void;
|
|
128
|
+
/**
|
|
129
|
+
* Trigger a full reload of the current application.
|
|
130
|
+
*
|
|
131
|
+
* This method will reload the entire application document in the browser.
|
|
132
|
+
* To simply trigger a refresh of the loadable content within the application,
|
|
133
|
+
* see {@link XH.refreshAppAsync} instead.
|
|
134
|
+
*/
|
|
135
|
+
reloadApp(): void;
|
|
136
|
+
/**
|
|
137
|
+
* Refresh the current application.
|
|
138
|
+
*
|
|
139
|
+
* This method will do an "in-place" refresh of the loadable content as defined by the app.
|
|
140
|
+
* It is a short-cut to `XH.refreshContextModel.refreshAsync()`.
|
|
141
|
+
*
|
|
142
|
+
* To trigger a full reload of the application document in the browser (including code)
|
|
143
|
+
* see {@link XH.reloadApp} instead.
|
|
144
|
+
*/
|
|
145
|
+
refreshAppAsync(): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Tracks globally loading promises.
|
|
148
|
+
* Apps should link any async operations that should mask the entire viewport to this model.
|
|
149
|
+
*/
|
|
150
|
+
get appLoadModel(): TaskObserver;
|
|
151
|
+
/**
|
|
152
|
+
* The global RefreshContextModel for this application.
|
|
153
|
+
*/
|
|
154
|
+
get refreshContextModel(): RefreshContextModel;
|
|
155
|
+
/** Toggle the theme between light and dark variants. */
|
|
156
|
+
toggleTheme(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Sets the theme directly (useful for custom app option controls).
|
|
159
|
+
*/
|
|
160
|
+
setTheme(value: Theme, persist?: boolean): void;
|
|
161
|
+
/** Is the app currently rendering in dark theme? */
|
|
162
|
+
get darkTheme(): boolean;
|
|
163
|
+
setSizingMode(sizingMode: SizingMode): void;
|
|
164
|
+
get sizingMode(): SizingMode;
|
|
165
|
+
/** Current viewport width / height. (observable) */
|
|
166
|
+
get viewportSize(): {
|
|
167
|
+
width: number;
|
|
168
|
+
height: number;
|
|
169
|
+
};
|
|
170
|
+
/** Is the viewport in portrait orientation? (observable) */
|
|
171
|
+
get isPortrait(): boolean;
|
|
172
|
+
/** Is the viewport in landscape orientation? (observable) */
|
|
173
|
+
get isLandscape(): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Underlying Router5 Router object implementing the routing state.
|
|
176
|
+
* Applications should use this property to directly access the Router5 API.
|
|
177
|
+
*/
|
|
178
|
+
get router(): import("router5").Router;
|
|
179
|
+
/**
|
|
180
|
+
* The current routing state as an observable property.
|
|
181
|
+
* @see RoutingManager.currentState
|
|
182
|
+
*/
|
|
183
|
+
get routerState(): import("router5").State;
|
|
184
|
+
/** Route the app - shortcut to this.router.navigate. */
|
|
185
|
+
navigate(...args: any[]): import("router5/types/types/base").CancelFn;
|
|
186
|
+
/** Add a routeName to the current route, preserving params */
|
|
187
|
+
appendRoute(routeName: string, newParams?: PlainObject): import("router5/types/types/base").CancelFn;
|
|
188
|
+
/** Remove last routeName from the current route, preserving params */
|
|
189
|
+
popRoute(): import("router5/types/types/base").CancelFn;
|
|
190
|
+
/**
|
|
191
|
+
* Show a modal message dialog.
|
|
192
|
+
*
|
|
193
|
+
* Note that this method will autofocus the confirm button by default. To focus the cancel
|
|
194
|
+
* button instead (e.g. for confirming risky operations), applications should specify a
|
|
195
|
+
* `cancelProps` argument of the following form `cancelProps: {..., autoFocus: true}`.
|
|
196
|
+
*
|
|
197
|
+
* @returns true if user confirms, false if user cancels. If an input is provided, the
|
|
198
|
+
* Promise will resolve to the input value if user confirms.
|
|
199
|
+
*/
|
|
200
|
+
message<T = unknown>(config: MessageSpec): Promise<T | boolean>;
|
|
201
|
+
/**
|
|
202
|
+
* Show a modal 'alert' dialog with message and default 'OK' button.
|
|
203
|
+
* @returns true when user acknowledges alert.
|
|
204
|
+
*/
|
|
205
|
+
alert(config: MessageSpec): Promise<boolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Show a modal 'confirm' dialog with message and default 'OK'/'Cancel' buttons.
|
|
208
|
+
* @returns true if user confirms, false if user cancels.
|
|
209
|
+
*/
|
|
210
|
+
confirm(config: MessageSpec): Promise<boolean>;
|
|
211
|
+
/**
|
|
212
|
+
* Show a modal 'prompt' dialog with a default TextInput, message and 'OK'/'Cancel' buttons.
|
|
213
|
+
*
|
|
214
|
+
* The default TextInput comes with props set for:
|
|
215
|
+
* 1. autoFocus = true
|
|
216
|
+
* 2. selectOnFocus = true (desktop only)
|
|
217
|
+
* 3. onKeyDown handler to confirm on <enter> (same as clicking 'OK') (desktop only)
|
|
218
|
+
* Applications may also provide a custom HoistInput, in which all props must be set.
|
|
219
|
+
*
|
|
220
|
+
* @returns value of input if user confirms, false if user cancels.
|
|
221
|
+
*/
|
|
222
|
+
prompt<T = unknown>(config: MessageSpec): Promise<T | false>;
|
|
223
|
+
/**
|
|
224
|
+
* Show a non-modal "toast" notification that appears and then automatically dismisses.
|
|
225
|
+
* @returns model representing the toast. May be used for programmatic dismissal.
|
|
226
|
+
*/
|
|
227
|
+
toast(config: ToastSpec | string): ToastModel;
|
|
228
|
+
/**
|
|
229
|
+
* Show a toast with default intent and icon indicating success.
|
|
230
|
+
*/
|
|
231
|
+
successToast(config: ToastSpec | string): ToastModel;
|
|
232
|
+
/**
|
|
233
|
+
* Show a toast with default intent and icon indicating a warning.
|
|
234
|
+
*/
|
|
235
|
+
warningToast(config: ToastSpec | string): ToastModel;
|
|
236
|
+
/**
|
|
237
|
+
* Show a toast with intent and icon indicating a serious issue.
|
|
238
|
+
*/
|
|
239
|
+
dangerToast(config: ToastSpec | string): ToastModel;
|
|
240
|
+
/**
|
|
241
|
+
* Show a Banner across the top of the viewport. Banners are unique by their
|
|
242
|
+
* category prop - showing a new banner with an existing category will replace it.
|
|
243
|
+
*/
|
|
244
|
+
showBanner(spec: BannerSpec | string): BannerModel;
|
|
245
|
+
/**
|
|
246
|
+
* Hide banner by category name.
|
|
247
|
+
*/
|
|
248
|
+
hideBanner(category?: string): void;
|
|
249
|
+
/**
|
|
250
|
+
* Handle an exception. This method is an alias for {@link ExceptionHandler.handleException}.
|
|
251
|
+
*
|
|
252
|
+
* This method may be called by applications in order to provide logging, reporting, and
|
|
253
|
+
* display of exceptions. It is typically called directly in catch() blocks.
|
|
254
|
+
*
|
|
255
|
+
* See also Promise.catchDefault(). That method will delegate its arguments to this method
|
|
256
|
+
* and provides a more convenient interface for catching exceptions in Promise chains.
|
|
257
|
+
*
|
|
258
|
+
* @param exception - thrown object, will be coerced into a HoistException by Exception.create().
|
|
259
|
+
* @param options - provides further control over how the exception is shown and/or logged.
|
|
260
|
+
*/
|
|
261
|
+
handleException(exception: unknown, options?: ExceptionHandlerOptions): void;
|
|
262
|
+
/**
|
|
263
|
+
* Show an exception. This method is an alias for {@link ExceptionHandler.showException}.
|
|
264
|
+
*
|
|
265
|
+
* Intended to be used for the deferred / user-initiated showing of exceptions that have
|
|
266
|
+
* already been appropriately logged. Applications should typically prefer `handleException`.
|
|
267
|
+
*
|
|
268
|
+
* @param exception - thrown object, will be coerced into a HoistException by Exception.create().
|
|
269
|
+
* @param options - provides further control over how the exception is shown and/or logged.
|
|
270
|
+
*/
|
|
271
|
+
showException(exception: unknown, options?: ExceptionHandlerOptions): void;
|
|
272
|
+
/**
|
|
273
|
+
* Create a new exception - See {@link Exception}.
|
|
274
|
+
*
|
|
275
|
+
* @param src - If a native JS Error, it will be enhanced into a HoistException and returned.
|
|
276
|
+
* If a plain object, all properties will be set on a new HoistException.
|
|
277
|
+
* Other inputs will be treated as the `message` of a new HoistException.
|
|
278
|
+
*/
|
|
279
|
+
exception(src: unknown): HoistException;
|
|
280
|
+
/** Show "about this app" dialog, powered by {@link EnvironmentService}. */
|
|
281
|
+
showAboutDialog(): void;
|
|
282
|
+
/** Show a "release notes" dialog, powered by {@link ChangelogService}. */
|
|
283
|
+
showChangelog(): void;
|
|
284
|
+
/**
|
|
285
|
+
* Show a dialog to elicit feedback from the user.
|
|
286
|
+
* @param message - optional message to preset within the feedback dialog.
|
|
287
|
+
*/
|
|
288
|
+
showFeedbackDialog({ message }?: {
|
|
289
|
+
message?: string;
|
|
290
|
+
}): void;
|
|
291
|
+
/** Show the impersonation bar to allow switching users. */
|
|
292
|
+
showImpersonationBar(): void;
|
|
293
|
+
/** Show a dialog to allow the user to view and set app options. */
|
|
294
|
+
showOptionsDialog(): void;
|
|
295
|
+
/**
|
|
296
|
+
* Return a collection of Models currently 'active' in this application.
|
|
297
|
+
*
|
|
298
|
+
* This will include all models that have not had `destroy()`
|
|
299
|
+
* called on them. Models will be returned in creation order.
|
|
300
|
+
*/
|
|
301
|
+
getActiveModels(selector?: ModelSelector): HoistModel[];
|
|
302
|
+
/** All services registered with this application. */
|
|
303
|
+
getServices(): HoistService[];
|
|
304
|
+
/** All Stores registered with this application. */
|
|
305
|
+
getStores(): Store[];
|
|
306
|
+
/**
|
|
307
|
+
* Resets user preferences and any persistent local application state, then reloads the app.
|
|
308
|
+
*/
|
|
309
|
+
restoreDefaultsAsync(): Promise<void>;
|
|
310
|
+
/**
|
|
311
|
+
* Helper method to destroy resources safely (e.g. child HoistModels). Will quietly skip args
|
|
312
|
+
* that are null / undefined or that do not implement destroy().
|
|
313
|
+
*
|
|
314
|
+
* @param args - objects to be destroyed. If any argument is an array,
|
|
315
|
+
* each element in the array will be destroyed (this is *not* done recursively);.
|
|
316
|
+
*/
|
|
317
|
+
safeDestroy(...args: (any | any[])[]): void;
|
|
318
|
+
/**
|
|
319
|
+
* Generate an ID string, unique within this run of the client application and suitable
|
|
320
|
+
* for local-to-client uses such as auto-generated store record identifiers.
|
|
321
|
+
*
|
|
322
|
+
* Deliberately *not* intended to be globally unique, suitable for reuse, or to appear as such.
|
|
323
|
+
*/
|
|
324
|
+
genId(): string;
|
|
325
|
+
/**
|
|
326
|
+
* Called when application container first mounted in order to trigger initial
|
|
327
|
+
* authentication and initialization of framework and application.
|
|
328
|
+
* @internal
|
|
329
|
+
*/
|
|
330
|
+
initAsync(): Promise<void>;
|
|
331
|
+
/**
|
|
332
|
+
* Complete initialization. Called after the client has confirmed that the user is generally
|
|
333
|
+
* authenticated and known to the server (regardless of application roles at this point).
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
completeInitAsync(): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Suspend all app activity and display, including timers and web sockets.
|
|
339
|
+
*
|
|
340
|
+
* Suspension is a terminal state, requiring user to reload the app.
|
|
341
|
+
* Used for idling, forced version upgrades, and ad-hoc killing of problematic clients.
|
|
342
|
+
* @internal
|
|
343
|
+
*/
|
|
344
|
+
suspendApp(suspendData: any): void;
|
|
345
|
+
private checkAccess;
|
|
346
|
+
private setDocTitle;
|
|
347
|
+
private getAuthStatusFromServerAsync;
|
|
348
|
+
private startRouter;
|
|
349
|
+
private startOptionsDialog;
|
|
350
|
+
private get acm();
|
|
351
|
+
private bindInitSequenceToAppLoadModel;
|
|
352
|
+
private trackLoad;
|
|
353
|
+
private createActivityListeners;
|
|
354
|
+
private get uaParser();
|
|
355
|
+
private parseAppSpec;
|
|
356
|
+
}
|
|
357
|
+
/** app-wide singleton instance. */
|
|
358
|
+
export declare const XH: XHApi;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReactNode, ReactElement, ForwardedRef, Key } from 'react';
|
|
2
|
+
import { PlainObject, Some, Thunkable } from './types/Types';
|
|
3
|
+
/**
|
|
4
|
+
* Alternative format for specifying React Elements in render functions. This type is designed to
|
|
5
|
+
* provide a well-formatted, declarative, native javascript approach to configuring Elements and
|
|
6
|
+
* their children. It serves as an alternative to JSX and is especially useful for code-heavy
|
|
7
|
+
* element trees. (For element trees with a significant amount of hypertext, JSX could be a better
|
|
8
|
+
* choice.)
|
|
9
|
+
*
|
|
10
|
+
* The core enhancement to this format over jsx is it expects child elements and props to be
|
|
11
|
+
* specified in a single bundle, with children placed within an `item` or `items` key. This allows
|
|
12
|
+
* developers to write declarative, multi-level element trees in a concise yet highly-readable
|
|
13
|
+
* style. An additional feature is the minor-but-useful support for an `omit` property, which
|
|
14
|
+
* allows element subtrees to be declaratively excluded from rendering if a given condition is met.
|
|
15
|
+
* This avoids the need for the common, but clunky React practice of wrapping elements in ternary
|
|
16
|
+
* statements to accomplish conditional rendering.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link createElement} - That function is a thin-wrapper over `React.createChildren` that
|
|
19
|
+
* consumes this format.
|
|
20
|
+
*
|
|
21
|
+
* Finally, note that if a React Component has its own props of `item`, `items`, or `omit`, the
|
|
22
|
+
* props may be specified in this object with a `$` prefix (e.g. `$item`) to avoid conflicting
|
|
23
|
+
* with this API. The '$' will be stripped from the prop name before passing it along to the
|
|
24
|
+
* underlying component.
|
|
25
|
+
*/
|
|
26
|
+
export type ElementSpec<P extends PlainObject> = P & {
|
|
27
|
+
/** Child Element(s). Equivalent provided as Rest Arguments to React.createElement.*/
|
|
28
|
+
items?: Some<ReactNode>;
|
|
29
|
+
/** Equivalent to `items`, offered for code clarity when only one child is needed. */
|
|
30
|
+
item?: Some<ReactNode>;
|
|
31
|
+
/** True to exclude the Element. */
|
|
32
|
+
omit?: Thunkable<boolean>;
|
|
33
|
+
/** React Ref for this component. */
|
|
34
|
+
ref?: ForwardedRef<any>;
|
|
35
|
+
/** React key for this component. */
|
|
36
|
+
key?: Key;
|
|
37
|
+
$items?: any;
|
|
38
|
+
$item?: any;
|
|
39
|
+
$omit?: any;
|
|
40
|
+
};
|
|
41
|
+
export type ElementFactory<P = any> = ((...args: ReactNode[]) => ReactElement<P, any>) & ((arg: ElementSpec<P>) => ReactElement<P, any>);
|
|
42
|
+
/**
|
|
43
|
+
* Create a React Element from a Component type and an ElementSpec.
|
|
44
|
+
*
|
|
45
|
+
* This function is a thin-wrapper over `React.createChildren` that
|
|
46
|
+
* consumes the ElementSpec format.
|
|
47
|
+
*
|
|
48
|
+
* @param type - React Component or string representing an HTML element.
|
|
49
|
+
* @param spec - element spec.
|
|
50
|
+
*/
|
|
51
|
+
export declare function createElement<P = any>(type: any, spec: ElementSpec<P>): ReactElement<P, any>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a factory function that can create a ReactElement from an ElementSpec.
|
|
54
|
+
*/
|
|
55
|
+
export declare function elementFactory<P = any>(type: any): ElementFactory<P>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for how content should be refreshed via their built-in RefreshContextModel when they
|
|
3
|
+
* receive a refresh request while inactive/hidden or are (re)activated by their parent container.
|
|
4
|
+
* Used by {@link TabContainerModel} and {@link DashContainerModel}.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RefreshMode: Readonly<{
|
|
7
|
+
/** Always refresh a tab when requested, even if it is inactive (hidden). */
|
|
8
|
+
ALWAYS: "always";
|
|
9
|
+
/** Note a refresh request for an inactive tab and run refresh if/when tab is next activated. */
|
|
10
|
+
ON_SHOW_LAZY: "onShowLazy";
|
|
11
|
+
/** Always refresh when tab is activated, regardless of whether or not refresh was requested. */
|
|
12
|
+
ON_SHOW_ALWAYS: "onShowAlways";
|
|
13
|
+
/** Ignore refresh requests entirely when tab is inactive. Do not auto-refresh when reactivated. */
|
|
14
|
+
SKIP_HIDDEN: "skipHidden";
|
|
15
|
+
}>;
|
|
16
|
+
export type RefreshMode = (typeof RefreshMode)[keyof typeof RefreshMode];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for how contents should be rendered by their parent container.
|
|
3
|
+
* Used by {@link TabContainerModel}, {@link DashContainerModel}, and {@link PanelModel}.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderMode: Readonly<{
|
|
6
|
+
/** Always render contents when the parent container is rendered, even if inactive. */
|
|
7
|
+
ALWAYS: "always";
|
|
8
|
+
/** Render contents lazily or "just in time" - only if/when the content is first activated. */
|
|
9
|
+
LAZY: "lazy";
|
|
10
|
+
/** Render lazily, and actively unmount the contents if/when de-activated. */
|
|
11
|
+
UNMOUNT_ON_HIDE: "unmountOnHide";
|
|
12
|
+
}>;
|
|
13
|
+
export type RenderMode = (typeof RenderMode)[keyof typeof RenderMode];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standardized sizes used by Grid - affects padding, row heights, font sizes, etc.
|
|
3
|
+
*/
|
|
4
|
+
export declare const SizingMode: Readonly<{
|
|
5
|
+
TINY: "tiny";
|
|
6
|
+
COMPACT: "compact";
|
|
7
|
+
STANDARD: "standard";
|
|
8
|
+
LARGE: "large";
|
|
9
|
+
}>;
|
|
10
|
+
export type SizingMode = (typeof SizingMode)[keyof typeof SizingMode];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FetchOptions } from '@xh/hoist/svc';
|
|
2
|
+
import { FetchResponse } from '../';
|
|
3
|
+
import { FetchException, HoistException, TimeoutException, TimeoutExceptionConfig } from './Types';
|
|
4
|
+
/**
|
|
5
|
+
* Standardized Exception/Error objects.
|
|
6
|
+
*
|
|
7
|
+
* The main entry point for this class is the create() method.
|
|
8
|
+
* Applications can use this method to create various generic runtime exceptions.
|
|
9
|
+
* @see ExceptionHandler.handleException
|
|
10
|
+
*/
|
|
11
|
+
export declare class Exception {
|
|
12
|
+
/**
|
|
13
|
+
* Create and return a HoistException
|
|
14
|
+
*
|
|
15
|
+
* See {@link XH.exception} - an alias for this factory off of `XH`.
|
|
16
|
+
*
|
|
17
|
+
* @param src - If a native JS Error, it will be enhanced into a HoistException and returned.
|
|
18
|
+
* If a plain object, all properties will be set on a new HoistException.
|
|
19
|
+
* Other inputs will be treated as the `message` of a new HoistException.
|
|
20
|
+
*/
|
|
21
|
+
static create(src: unknown): HoistException;
|
|
22
|
+
/**
|
|
23
|
+
* Create an Error for when an operation (e.g. a Promise) times out.
|
|
24
|
+
*/
|
|
25
|
+
static timeout(config: TimeoutExceptionConfig): TimeoutException;
|
|
26
|
+
/**
|
|
27
|
+
* Create an Error to throw when a fetch call returns a !ok response.
|
|
28
|
+
* @param fetchOptions - original options passed to FetchService.
|
|
29
|
+
* @param fetchResponse - return value of native fetch, as enhanced by FetchService.
|
|
30
|
+
*/
|
|
31
|
+
static fetchError(fetchOptions: FetchOptions, fetchResponse: FetchResponse): FetchException;
|
|
32
|
+
/**
|
|
33
|
+
* Create an Error to throw when a fetchJson call encounters a SyntaxError.
|
|
34
|
+
* @param fetchOptions - original options passed to FetchService.
|
|
35
|
+
* @param cause - object thrown by native {@link response.json}.
|
|
36
|
+
*/
|
|
37
|
+
static fetchJsonParseError(fetchOptions: FetchOptions, cause: any): FetchException;
|
|
38
|
+
/**
|
|
39
|
+
* Create an Error to throw when a fetch call is aborted.
|
|
40
|
+
* @param fetchOptions - original options passed to FetchService.
|
|
41
|
+
* @param cause - object thrown by native fetch
|
|
42
|
+
*/
|
|
43
|
+
static fetchAborted(fetchOptions: FetchOptions, cause: any): FetchException;
|
|
44
|
+
/**
|
|
45
|
+
* Create an Error to throw when a fetch call times out.
|
|
46
|
+
* @param fetchOptions - original options the app passed when calling FetchService.
|
|
47
|
+
* @param cause - underlying timeout exception
|
|
48
|
+
* @param message - optional custom message
|
|
49
|
+
*
|
|
50
|
+
* @returns an exception that is both a TimeoutException, and a FetchException, with the
|
|
51
|
+
* underlying TimeoutException as its cause.
|
|
52
|
+
*/
|
|
53
|
+
static fetchTimeout(fetchOptions: FetchOptions, cause: TimeoutException, message: string): FetchException & TimeoutException;
|
|
54
|
+
/**
|
|
55
|
+
* Create an Error for when the server called by fetch does not respond
|
|
56
|
+
* @param fetchOptions - original options the app passed to FetchService.fetch
|
|
57
|
+
* @param cause - object thrown by native fetch
|
|
58
|
+
*/
|
|
59
|
+
static serverUnavailable(fetchOptions: FetchOptions, cause: any): FetchException;
|
|
60
|
+
private static createFetchException;
|
|
61
|
+
private static createInternal;
|
|
62
|
+
}
|
|
63
|
+
export declare function isHoistException(src: unknown): src is HoistException;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { HoistException } from '../';
|
|
2
|
+
export interface ExceptionHandlerOptions {
|
|
3
|
+
/** Text (ideally user-friendly) describing the error. */
|
|
4
|
+
message?: string;
|
|
5
|
+
/** Title for an alert dialog, if shown. */
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Configure modal alert and logging to indicate that this is an unexpected error. Default
|
|
9
|
+
* true for most exceptions, false for those marked as `isRoutine`.
|
|
10
|
+
*/
|
|
11
|
+
showAsError?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Send the exception to the server to be stored for review in the Hoist Admin Console?
|
|
14
|
+
* Default true when `showAsError` is true, excepting 'isAutoRefresh' fetch exceptions.
|
|
15
|
+
*/
|
|
16
|
+
logOnServer?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Display an alert dialog to the user.
|
|
19
|
+
* Default true, excepting 'isAutoRefresh' and 'isFetchAborted' exceptions.
|
|
20
|
+
*/
|
|
21
|
+
showAlert?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If `showAlert`, which type of alert to display. Defaults to ExceptionHandler.ALERT_TYPE.
|
|
24
|
+
*/
|
|
25
|
+
alertType?: 'dialog' | 'toast';
|
|
26
|
+
/**
|
|
27
|
+
* Force user to fully refresh the app in order to dismiss - default false, excepting
|
|
28
|
+
* session-related exceptions.
|
|
29
|
+
*/
|
|
30
|
+
requireReload?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A list of parameters that should be hidden from the exception log and alert.
|
|
33
|
+
*/
|
|
34
|
+
hideParams?: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface ExceptionHandlerLoggingOptions {
|
|
37
|
+
/** Exception to be logged. */
|
|
38
|
+
exception: HoistException;
|
|
39
|
+
/** True if the user was shown a modal alert. */
|
|
40
|
+
userAlerted: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Optional user-provided message detailing what they did to trigger the error, or any other
|
|
43
|
+
* details the user chooses to provide.
|
|
44
|
+
*/
|
|
45
|
+
userMessage?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Provides Centralized Exception Handling for Hoist Application.
|
|
49
|
+
* Manages the logging and display of exceptions.
|
|
50
|
+
*/
|
|
51
|
+
export declare class ExceptionHandler {
|
|
52
|
+
#private;
|
|
53
|
+
/**
|
|
54
|
+
* Property paths within error details JSON to replace with '******'
|
|
55
|
+
*/
|
|
56
|
+
static REDACT_PATHS: string[];
|
|
57
|
+
/**
|
|
58
|
+
* Default type of alert to use to display exceptions with `showAlert`.
|
|
59
|
+
*/
|
|
60
|
+
static ALERT_TYPE: 'dialog' | 'toast';
|
|
61
|
+
/**
|
|
62
|
+
* Default props provided to toast, when alert type is 'toast'
|
|
63
|
+
*/
|
|
64
|
+
static TOAST_PROPS: object;
|
|
65
|
+
constructor();
|
|
66
|
+
/**
|
|
67
|
+
* Called by Hoist internally to handle exceptions, with built-in support for parsing certain
|
|
68
|
+
* Hoist-specific exception options, displaying an appropriate error dialog to users, and
|
|
69
|
+
* logging back to the server for stateful error tracking in the Admin Console.
|
|
70
|
+
*
|
|
71
|
+
* Typical application entry points to this method are the {@link XH.handleException} alias and
|
|
72
|
+
* {@link Promise.catchDefault}.
|
|
73
|
+
*
|
|
74
|
+
* This handler provides the most value with HoistExceptions created by {@link Exception.create}.
|
|
75
|
+
* Hoist automatically creates such exceptions in most instances, most notably in FetchService,
|
|
76
|
+
* which generates de-serialized versions of server exceptions. See {@link XH.exception} for a
|
|
77
|
+
* convenient way to create these enhanced exceptions in application code.
|
|
78
|
+
*
|
|
79
|
+
* This handler will respect an `isRoutine` flag set on HoistExceptions that can be thrown in
|
|
80
|
+
* the course of "normal" app operation and do not represent unexpected errors. When true, this
|
|
81
|
+
* handler will apply defaults that avoid overly alarming the user and skip server-side logging.
|
|
82
|
+
*
|
|
83
|
+
* @param exception - thrown object, will be coerced into a HoistException by Exception.create().
|
|
84
|
+
* @param options - provides further control over how the exception is shown and/or logged.
|
|
85
|
+
*/
|
|
86
|
+
handleException(exception: unknown, options?: ExceptionHandlerOptions): void;
|
|
87
|
+
/**
|
|
88
|
+
* Show an exception in an error dialog, without logging the error to the server or console.
|
|
89
|
+
* Intended to be used for the deferred / user-initiated showing of exceptions that have
|
|
90
|
+
* already been appropriately logged. Applications should typically prefer `handleException`.
|
|
91
|
+
*
|
|
92
|
+
* @param exception - thrown object, will be coerced into a HoistException by Exception.create().
|
|
93
|
+
* @param options - provides further control over how the exception is shown and/or logged.
|
|
94
|
+
*/
|
|
95
|
+
showException(exception: unknown, options?: ExceptionHandlerOptions): void;
|
|
96
|
+
/**
|
|
97
|
+
* Create a server-side exception entry. Client metadata will be set automatically.
|
|
98
|
+
*
|
|
99
|
+
* This method will swallow any exceptions thrown in the course of its own execution, failing
|
|
100
|
+
* silently to avoid masking or compounding the actual exception to be handled.
|
|
101
|
+
*
|
|
102
|
+
* Note the App version is POSTed to ensure we capture the version of the client the user is
|
|
103
|
+
* actually running when the exception was generated.
|
|
104
|
+
*
|
|
105
|
+
* @returns true if message was successfully sent to server.
|
|
106
|
+
*/
|
|
107
|
+
logOnServerAsync(options: ExceptionHandlerLoggingOptions): Promise<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Serialize an error object safely for submission to server, or user display.
|
|
110
|
+
* This method will avoid circular references and will trim the depth of the object.
|
|
111
|
+
*/
|
|
112
|
+
stringifyErrorSafely(exception: HoistException): string;
|
|
113
|
+
private parseArgs;
|
|
114
|
+
private hideParams;
|
|
115
|
+
private logException;
|
|
116
|
+
private parseOptions;
|
|
117
|
+
private sessionMismatch;
|
|
118
|
+
private sessionExpired;
|
|
119
|
+
private cleanStack;
|
|
120
|
+
private cloneAndTrim;
|
|
121
|
+
}
|