@xh/hoist 57.0.0 → 57.0.1
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 +6 -0
- 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/tsconfig.json +14 -7
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/mobile/register';
|
|
4
|
+
import { NavigatorModel } from './NavigatorModel';
|
|
5
|
+
export interface NavigatorProps extends HoistProps<NavigatorModel> {
|
|
6
|
+
/** Set animation style or turn off, default 'slide'. */
|
|
7
|
+
animation?: 'slide' | 'lift' | 'fade' | 'none';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Top-level Component within an application, responsible for rendering a stack of
|
|
11
|
+
* pages and managing transitions between pages.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Navigator: import("react").FC<NavigatorProps>, navigator: import("@xh/hoist/core").ElementFactory<NavigatorProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HoistModel, RefreshMode, RenderMode } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/mobile/register';
|
|
4
|
+
import { PageConfig, PageModel } from './PageModel';
|
|
5
|
+
export interface NavigatorConfig {
|
|
6
|
+
/** Configs for PageModels, representing all supported pages within this Navigator/App. */
|
|
7
|
+
pages: PageConfig[];
|
|
8
|
+
/**
|
|
9
|
+
* True to enable activity tracking of page views (default false).
|
|
10
|
+
* Viewing of each page will be tracked with the `oncePerSession` flag, to avoid duplication.
|
|
11
|
+
*/
|
|
12
|
+
track?: boolean;
|
|
13
|
+
/** True to enable 'swipe to go back' functionality. */
|
|
14
|
+
swipeToGoBack?: boolean;
|
|
15
|
+
/** True to enable 'pull down to refresh' functionality. */
|
|
16
|
+
pullDownToRefresh?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Strategy for rendering pages. Can be set per-page via `PageModel.renderMode`.
|
|
19
|
+
* See enum for description of supported modes.
|
|
20
|
+
*/
|
|
21
|
+
renderMode?: RenderMode;
|
|
22
|
+
/**
|
|
23
|
+
* Strategy for refreshing pages. Can be set per-page via `PageModel.refreshMode`.
|
|
24
|
+
* See enum for description of supported modes.
|
|
25
|
+
*/
|
|
26
|
+
refreshMode?: RefreshMode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Model for handling stack-based navigation between Onsen pages.
|
|
30
|
+
* Provides support for routing based navigation.
|
|
31
|
+
*/
|
|
32
|
+
export declare class NavigatorModel extends HoistModel {
|
|
33
|
+
disableAppRefreshButton: boolean;
|
|
34
|
+
stack: PageModel[];
|
|
35
|
+
pages: PageConfig[];
|
|
36
|
+
track: boolean;
|
|
37
|
+
swipeToGoBack: boolean;
|
|
38
|
+
pullDownToRefresh: boolean;
|
|
39
|
+
renderMode: RenderMode;
|
|
40
|
+
refreshMode: RefreshMode;
|
|
41
|
+
private _navigator;
|
|
42
|
+
private _callback;
|
|
43
|
+
private _prevKeyStack;
|
|
44
|
+
get activePageId(): string;
|
|
45
|
+
get activePage(): PageModel;
|
|
46
|
+
constructor({ pages, track, swipeToGoBack, pullDownToRefresh, renderMode, refreshMode }: NavigatorConfig);
|
|
47
|
+
/**
|
|
48
|
+
* @param callback - function to execute (once) after the next page transition.
|
|
49
|
+
*/
|
|
50
|
+
setCallback(callback: () => void): void;
|
|
51
|
+
private onRouteChange;
|
|
52
|
+
private onStackChangeAsync;
|
|
53
|
+
renderPage: (model: any, navigator: any) => import("react").ReactElement<import("@xh/hoist/core").DefaultHoistProps<PageModel>, any>;
|
|
54
|
+
onPageChange: () => void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Content, HoistModel, HoistProps, RefreshMode, RenderMode } from '@xh/hoist/core';
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import { NavigatorModel } from './NavigatorModel';
|
|
4
|
+
export interface PageConfig {
|
|
5
|
+
/** Unique ID. Must match a configured Router5 route name. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Content to be rendered on this page. */
|
|
8
|
+
content: Content;
|
|
9
|
+
/** Props to be passed to page upon creation. */
|
|
10
|
+
props?: HoistProps;
|
|
11
|
+
/**
|
|
12
|
+
* Strategy for rendering this Page. If null, will default to its Navigator's mode.
|
|
13
|
+
* See enum for description of supported modes.
|
|
14
|
+
*/
|
|
15
|
+
renderMode?: RenderMode;
|
|
16
|
+
/**
|
|
17
|
+
* Strategy for refreshing this Page. If null, will default to its Navigator's mode. See
|
|
18
|
+
* enum for description of supported modes.
|
|
19
|
+
*/
|
|
20
|
+
refreshMode?: RefreshMode;
|
|
21
|
+
/**
|
|
22
|
+
* Don't allow the Page route to be arrived at in a new browser session. Non-linkable
|
|
23
|
+
* routes are unwound to a safe starting point at the start of a new session.
|
|
24
|
+
*/
|
|
25
|
+
disableDirectLink?: boolean;
|
|
26
|
+
/** Hide any visible app refresh button when at this Page. */
|
|
27
|
+
disableAppRefreshButton?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Parent NavigatorModel. Provided by the navigator when constructing these models -
|
|
30
|
+
* no need to specify manually.
|
|
31
|
+
*/
|
|
32
|
+
navigatorModel?: NavigatorModel;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Model for a Page within a Navigator. Specifies the actual content (i.e. page)
|
|
36
|
+
* to be rendered for a given route.
|
|
37
|
+
*
|
|
38
|
+
* This model is not typically created directly within applications. Instead, specify a
|
|
39
|
+
* configuration for it via the `NavigatorModel.pages` constructor config.
|
|
40
|
+
*/
|
|
41
|
+
export declare class PageModel extends HoistModel {
|
|
42
|
+
id: string;
|
|
43
|
+
content: Content;
|
|
44
|
+
props: HoistProps;
|
|
45
|
+
disableDirectLink: boolean;
|
|
46
|
+
disableAppRefreshButton: boolean;
|
|
47
|
+
navigatorModel: any;
|
|
48
|
+
refreshContextModel: any;
|
|
49
|
+
private _renderMode;
|
|
50
|
+
private _refreshMode;
|
|
51
|
+
/**
|
|
52
|
+
* A generated key which combines the id and sorted props to identify the page in the stack.
|
|
53
|
+
* The returned string is stable for a given id and props.
|
|
54
|
+
*/
|
|
55
|
+
get key(): string;
|
|
56
|
+
get renderMode(): RenderMode;
|
|
57
|
+
get refreshMode(): RefreshMode;
|
|
58
|
+
get isActive(): boolean;
|
|
59
|
+
constructor({ id, navigatorModel, content, props, renderMode, refreshMode, disableDirectLink, disableAppRefreshButton }: PageConfig);
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PageModel } from '../PageModel';
|
|
2
|
+
import './Page.scss';
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper for contents to be shown within a Navigator. This Component is used by Navigator's
|
|
5
|
+
* internal implementation to:
|
|
6
|
+
*
|
|
7
|
+
* - Mount/unmount its contents according to `PageModel.renderMode`.
|
|
8
|
+
* - Track and trigger refreshes according to `PageModel.refreshMode`.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const page: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<PageModel>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Swiper.scss';
|
|
2
|
+
import { SwiperModel } from './SwiperModel';
|
|
3
|
+
/**
|
|
4
|
+
* Wrap the Onsen Navigator with drag gesture handling.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const swiper: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<SwiperModel>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HoistModel } from '@xh/hoist/core';
|
|
2
|
+
import './Swiper.scss';
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SwiperModel extends HoistModel {
|
|
7
|
+
navigatorModel: any;
|
|
8
|
+
backProgress: any;
|
|
9
|
+
refreshProgress: any;
|
|
10
|
+
get backStarted(): boolean;
|
|
11
|
+
get backCompleted(): boolean;
|
|
12
|
+
backStart(): void;
|
|
13
|
+
backEnd(): void;
|
|
14
|
+
get refreshStarted(): boolean;
|
|
15
|
+
get refreshCompleted(): boolean;
|
|
16
|
+
refreshStart(): void;
|
|
17
|
+
refreshEnd(): void;
|
|
18
|
+
constructor();
|
|
19
|
+
onDragStart: (e: any) => void;
|
|
20
|
+
onDrag: (e: any) => void;
|
|
21
|
+
onDragEnd: (e: any) => void;
|
|
22
|
+
isDraggingChild(e: any, dir: any): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import './DialogPanel.scss';
|
|
4
|
+
import { PanelProps } from './Panel';
|
|
5
|
+
export interface DialogPanelProps extends PanelProps {
|
|
6
|
+
/** Is the dialog panel shown. */
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wraps a Panel in a fullscreen Dialog.
|
|
11
|
+
*
|
|
12
|
+
* These views do not participate in navigation or routing, and are used for showing fullscreen
|
|
13
|
+
* views outside of the Navigator / TabContainer context.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DialogPanel: import("react").FC<DialogPanelProps>, dialogPanel: import("@xh/hoist/core").ElementFactory<DialogPanelProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BoxProps, TaskObserver, Some, HoistProps, ElementFactory } from '@xh/hoist/core';
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import { ReactNode, ReactElement } from 'react';
|
|
4
|
+
import './Panel.scss';
|
|
5
|
+
export interface PanelProps extends HoistProps, Omit<BoxProps, 'title'> {
|
|
6
|
+
/** A toolbar to be docked at the bottom of the panel. */
|
|
7
|
+
bbar?: Some<ReactNode>;
|
|
8
|
+
/** Items to be added to the right-side of the panel's header. */
|
|
9
|
+
headerItems?: ReactNode[];
|
|
10
|
+
/** An icon placed at the left-side of the panel's header. */
|
|
11
|
+
icon?: ReactElement;
|
|
12
|
+
/**
|
|
13
|
+
* Mask to render on this panel. Set to:
|
|
14
|
+
* + a ReactElement specifying a Mask instance,
|
|
15
|
+
* + true for a default mask,
|
|
16
|
+
* + one or more TaskObservers for a default load mask bound to the tasks
|
|
17
|
+
* + the string 'onLoad' for a default load mask bound to the loading of the current model.
|
|
18
|
+
*/
|
|
19
|
+
mask?: Some<TaskObserver> | ReactElement | boolean | 'onLoad';
|
|
20
|
+
/**
|
|
21
|
+
* LoadingIndicator to render on this panel. Set to:
|
|
22
|
+
* + a ReactElement specifying a LoadingIndicator,
|
|
23
|
+
* + true for a default LoadingIndicator,
|
|
24
|
+
* + one or more TaskObservers for a default LoadingIndicator bound to the tasks
|
|
25
|
+
* + the string 'onLoad' for a default LoadingIndicator bound to the loading of the current model.
|
|
26
|
+
*/
|
|
27
|
+
loadingIndicator?: Some<TaskObserver> | ReactElement | boolean | 'onLoad';
|
|
28
|
+
/** Allow the panel to scroll vertically */
|
|
29
|
+
scrollable?: boolean;
|
|
30
|
+
/** A toolbar to be docked at the top of the panel. */
|
|
31
|
+
tbar?: Some<ReactNode>;
|
|
32
|
+
/** Title text added to the panel's header. */
|
|
33
|
+
title?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A Panel container builds on the lower-level layout components to offer a header element
|
|
37
|
+
* w/standardized styling, title, and Icon as well as support for top and bottom toolbars.
|
|
38
|
+
*/
|
|
39
|
+
export declare const Panel: import("react").FC<PanelProps>, panel: ElementFactory<PanelProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PinPadModel } from '@xh/hoist/cmp/pinpad';
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import './PinPad.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Mobile Implementation of PinPad.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const pinPadImpl: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<PinPadModel>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Content, HoistProps, PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import './Popover.scss';
|
|
5
|
+
export interface PopoverProps extends HoistProps {
|
|
6
|
+
/** Component to display inside the popover */
|
|
7
|
+
content: Content;
|
|
8
|
+
/** The target to which the popover content is attached */
|
|
9
|
+
target: ReactElement;
|
|
10
|
+
/** Whether the popover is visible. Passing this prop puts the popover in controlled mode */
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Callback invoked in controlled mode when the popover open state _would_ change due to
|
|
14
|
+
* user interaction.
|
|
15
|
+
*/
|
|
16
|
+
onInteraction?: (nextOpenState: boolean) => void;
|
|
17
|
+
/** True to disable user interaction */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Whether to display a semi-transparent backdrop behind the popover */
|
|
20
|
+
backdrop?: boolean;
|
|
21
|
+
/** The position (relative to the target) at which the popover should appear. Default 'auto' */
|
|
22
|
+
position?: 'top-left' | 'top' | 'top-right' | 'right-top' | 'right' | 'right-bottom' | 'bottom-right' | 'bottom' | 'bottom-left' | 'left-bottom' | 'left' | 'left-top' | 'auto';
|
|
23
|
+
/** Optional className applied to the popover content wrapper. */
|
|
24
|
+
popoverClassName?: string;
|
|
25
|
+
/** Escape hatch to provide additional options to the PopperJS implementation */
|
|
26
|
+
popperOptions?: PlainObject;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Popovers display floating content next to a target element.
|
|
30
|
+
*
|
|
31
|
+
* The API is based on a stripped-down version of Blueprint's Popover component
|
|
32
|
+
* that is used on Desktop. Popover is built on top of the Popper.js library.
|
|
33
|
+
*
|
|
34
|
+
* @see https://popper.js.org/
|
|
35
|
+
*/
|
|
36
|
+
export declare const Popover: import("react").FC<PopoverProps>, popover: import("@xh/hoist/core").ElementFactory<PopoverProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
/**
|
|
4
|
+
* Mobile implementation of StoreFilterField.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function storeFilterFieldImpl(props: any): import("react").ReactElement<import("@xh/hoist/mobile/cmp/input").TextInputProps, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TabModel } from '@xh/hoist/cmp/tab';
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import './Tabs.scss';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
7
|
+
* Wrapper for contents to be shown within a TabContainer. This Component is used by TabContainer's
|
|
8
|
+
* internal implementation to:
|
|
9
|
+
*
|
|
10
|
+
* - Mount/unmount its contents according to `TabModel.renderMode`.
|
|
11
|
+
* - Track and trigger refreshes according to `TabModel.refreshMode`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const tab: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<TabModel>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import './Tabs.scss';
|
|
4
|
+
import { TabContainerProps } from '@xh/hoist/cmp/tab';
|
|
5
|
+
/**
|
|
6
|
+
* Mobile Implementation of TabContainer.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function tabContainerImpl({ model, className }: TabContainerProps): import("react").ReactElement<any, any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps, HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/mobile/register';
|
|
4
|
+
import './Toolbar.scss';
|
|
5
|
+
export interface ToolbarProps extends HoistProps, BoxProps {
|
|
6
|
+
/** Set to true to vertically align the items of this toolbar */
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A toolbar with built-in styling and padding.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Toolbar: import("react").FC<ToolbarProps>, toolbar: import("@xh/hoist/core").ElementFactory<ToolbarProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/mobile/register';
|
|
3
|
+
import './Toolbar.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Convenience component to insert a pre-styled separator | between Toolbar items.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ToolbarSeparator: import("react").FC<import("@xh/hoist/core").DefaultHoistProps<import("@xh/hoist/core").HoistModel>>, toolbarSeparator: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<import("@xh/hoist/core").HoistModel>>;
|
|
8
|
+
export declare const ToolbarSep: import("react").FC<import("@xh/hoist/core").DefaultHoistProps<import("@xh/hoist/core").HoistModel>>, toolbarSep: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<import("@xh/hoist/core").HoistModel>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decorator to mark a property as observable and also provide a simple MobX action of the
|
|
3
|
+
* form `setPropName()`.
|
|
4
|
+
*
|
|
5
|
+
* This decorator is especially useful for creating observable properties that are intended to be
|
|
6
|
+
* bound to UI components that will both display and set the property.
|
|
7
|
+
*
|
|
8
|
+
* Use `@bindable.ref` for a version of the function that will mark the property as observable by
|
|
9
|
+
* reference. This will use the similarly named `@observable.ref` decorator in the core MobX API.
|
|
10
|
+
*/
|
|
11
|
+
export declare const bindable: any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { action, autorun, comparer, computed, extendObservable, observable, override, reaction, runInAction, toJS, trace, untracked, when } from 'mobx';
|
|
2
|
+
import { observer } from 'mobx-react-lite';
|
|
3
|
+
export { action, autorun, comparer, computed, extendObservable, observable, observer, override, reaction, runInAction, toJS, trace, untracked, when };
|
|
4
|
+
export * from './decorators';
|
|
5
|
+
export * from './overrides';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnnotationsMap, CreateObservableOptions } from 'mobx';
|
|
2
|
+
/**
|
|
3
|
+
* An enhanced version of the native mobx makeObservable.
|
|
4
|
+
*/
|
|
5
|
+
export declare function makeObservable(target: any, annotations?: AnnotationsMap<any, never>, options?: CreateObservableOptions): any;
|
|
6
|
+
/**
|
|
7
|
+
* An enhanced version of the native mobx isObservableProp
|
|
8
|
+
*/
|
|
9
|
+
export declare function isObservableProp(target: any, propertyKey: PropertyKey): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Thunkable, ExceptionHandlerOptions, TaskObserver, TrackOptions } from '@xh/hoist/core';
|
|
2
|
+
/**
|
|
3
|
+
* Enhancements to the Global Promise object.
|
|
4
|
+
* Merged in to definition here and implemented on the prototype below.
|
|
5
|
+
*/
|
|
6
|
+
declare global {
|
|
7
|
+
interface Promise<T> {
|
|
8
|
+
/**
|
|
9
|
+
* Version of `then()` that wraps the callback in a MobX action, for use in a Promise chain
|
|
10
|
+
* that modifies MobX observables.
|
|
11
|
+
*/
|
|
12
|
+
thenAction(onFulfilled?: (value: T) => any, onRejected?: (reason: any) => any): Promise<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Version of `catch()` that will only catch certain exceptions.
|
|
15
|
+
*
|
|
16
|
+
* @param selector - closure that takes an exception and returns a boolean. May also be
|
|
17
|
+
* specified as an exception name or list of names. Only exceptions passing this
|
|
18
|
+
* selector will be handled by this method.
|
|
19
|
+
* @param fn - catch handler
|
|
20
|
+
*/
|
|
21
|
+
catchWhen(selector: ((e: any) => boolean) | string | string[], fn?: (reason: any) => any): Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Version of `catch()` that passes the error onto Hoist's default exception handler for
|
|
24
|
+
* convention-driven logging and alerting. Typically called last in a Promise chain.
|
|
25
|
+
*/
|
|
26
|
+
catchDefault(options?: ExceptionHandlerOptions): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Version of `catchDefault()` that will only catch certain exceptions.
|
|
29
|
+
*/
|
|
30
|
+
catchDefaultWhen(selector: ((e: any) => boolean) | string | string[], options: ExceptionHandlerOptions): Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Wait on a potentially async function before passing on the original value.
|
|
33
|
+
* Useful when we want to block and do something on the promise chain, but do not want to
|
|
34
|
+
* manipulate the values being passed through.
|
|
35
|
+
*
|
|
36
|
+
* @param onFulfillment - function to receive the pass-through value when ready.
|
|
37
|
+
*/
|
|
38
|
+
tap(onFulfillment: (value: T) => any): Promise<T>;
|
|
39
|
+
/**
|
|
40
|
+
* Return a promise that will resolve a specified delay after this promise resolves.
|
|
41
|
+
*
|
|
42
|
+
* @param interval - delay in milliseconds.
|
|
43
|
+
*/
|
|
44
|
+
wait(interval: number): Promise<T>;
|
|
45
|
+
/**
|
|
46
|
+
* Return a promise that will reject if this promise has not been settled after the
|
|
47
|
+
* specified interval has passed.
|
|
48
|
+
*/
|
|
49
|
+
timeout(spec: PromiseTimeoutSpec): Promise<T>;
|
|
50
|
+
/**
|
|
51
|
+
* Link this promise to an instance of a {@link TaskObserver}. See that class for details
|
|
52
|
+
* on what it provides and how it can be used to coordinate masking and progress messages
|
|
53
|
+
* on one or more async operations.
|
|
54
|
+
*/
|
|
55
|
+
linkTo(spec: PromiseLinkSpec): Promise<T>;
|
|
56
|
+
/**
|
|
57
|
+
* Track a Promise (with timing) via Hoist activity tracking.
|
|
58
|
+
* @param options - TrackOptions, or simply a message string.
|
|
59
|
+
*/
|
|
60
|
+
track(options: TrackOptions | string): Promise<T>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Timeout interval in ms, or an object specifying the interval and an optional message to be used
|
|
65
|
+
* for any exception thrown on timeout.
|
|
66
|
+
*/
|
|
67
|
+
export type PromiseTimeoutSpec = number | {
|
|
68
|
+
interval: number;
|
|
69
|
+
message?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* TaskObserver to track execution of a Promise, or an object specifying one with an optional
|
|
73
|
+
* message to show while pending and/or optional flag to skip (e.g. for conditional masking).
|
|
74
|
+
*/
|
|
75
|
+
export type PromiseLinkSpec = TaskObserver | {
|
|
76
|
+
observer: TaskObserver;
|
|
77
|
+
message?: string;
|
|
78
|
+
omit?: Thunkable<boolean>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Return a promise that will resolve after the specified amount of time.
|
|
82
|
+
*
|
|
83
|
+
* This method serves as a lightweight way to start a promise chain for any code.
|
|
84
|
+
*
|
|
85
|
+
* @param interval - milliseconds to delay (default 0). Note that the actual delay will be subject
|
|
86
|
+
* to the minimum delay for `setTimeout()` in the browser.
|
|
87
|
+
*/
|
|
88
|
+
export declare function wait<T>(interval?: number): Promise<T>;
|
|
89
|
+
/**
|
|
90
|
+
* Return a promise that will resolve after a condition has been met, polling at the specified
|
|
91
|
+
* interval.
|
|
92
|
+
*
|
|
93
|
+
* @param condition - function that should return true when condition is met
|
|
94
|
+
* @param interval - milliseconds to wait between checks (default 50). Note that the actual time
|
|
95
|
+
* will be subject to the minimum delay for `setTimeout()` in the browser.
|
|
96
|
+
* @param timeout - milliseconds after which the Promise should be rejected (default 5000).
|
|
97
|
+
*/
|
|
98
|
+
export declare function waitFor(condition: () => boolean, interval?: number, timeout?: number): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Return a promise that resolves immediately.
|
|
101
|
+
* @param value - the value to be returned by the resulting Promise.
|
|
102
|
+
*/
|
|
103
|
+
export declare function resolve<T>(value?: T): Promise<T>;
|
|
104
|
+
/**
|
|
105
|
+
* Return a promise that never resolves.
|
|
106
|
+
*/
|
|
107
|
+
export declare function never<T>(): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Promise';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BannerSpec, HoistService, Intent } from '@xh/hoist/core';
|
|
2
|
+
/**
|
|
3
|
+
* Service to display an app-wide alert banner, as configured via the Hoist Admin console.
|
|
4
|
+
*
|
|
5
|
+
* For this service to be active, a client-visible `xhAlertBannerConfig` config must be specified
|
|
6
|
+
* as `{enabled:true, interval: x}`, where `x` sets this service's polling frequency in seconds.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AlertBannerService extends HoistService {
|
|
9
|
+
xhImpl: boolean;
|
|
10
|
+
static instance: AlertBannerService;
|
|
11
|
+
private timer;
|
|
12
|
+
get interval(): number;
|
|
13
|
+
get enabled(): boolean;
|
|
14
|
+
get lastDismissed(): number;
|
|
15
|
+
initAsync(): Promise<void>;
|
|
16
|
+
checkForBannerAsync(): Promise<void>;
|
|
17
|
+
genBannerSpec(message: string, intent: Intent, iconName: string, enableClose: boolean): BannerSpec;
|
|
18
|
+
private onClose;
|
|
19
|
+
}
|
|
@@ -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
|
+
SVC_CONFIG_KEY: string;
|
|
25
|
+
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
|
+
}
|