@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,109 @@
|
|
|
1
|
+
import { HoistProps, DefaultHoistProps, ElementFactory } from './';
|
|
2
|
+
import { ModelSpec, HoistModel } from './model';
|
|
3
|
+
import { ForwardedRef, FC, ReactNode } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Type representing props passed to a HoistComponent's render function.
|
|
6
|
+
*
|
|
7
|
+
* This type removes from its base type several props that are used by HoistComponent itself and
|
|
8
|
+
* not provided to the render function.
|
|
9
|
+
*/
|
|
10
|
+
export type RenderPropsOf<P extends HoistProps> = P & {
|
|
11
|
+
/** Pre-processed by HoistComponent internals into a mounted model. Never passed to render. */
|
|
12
|
+
modelConfig: never;
|
|
13
|
+
/** Pre-processed by HoistComponent internals and attached to model. Never passed to render. */
|
|
14
|
+
modelRef: never;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Configuration for creating a Component. May be specified either as a render function,
|
|
18
|
+
* or an object containing a render function and associated metadata.
|
|
19
|
+
*/
|
|
20
|
+
export type ComponentConfig<P extends HoistProps> = ((props: RenderPropsOf<P>, ref?: ForwardedRef<any>) => ReactNode) | {
|
|
21
|
+
/** Render function defining the component. */
|
|
22
|
+
render(props: RenderPropsOf<P>, ref?: ForwardedRef<any>): ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Spec defining the model to be rendered by this component.
|
|
25
|
+
* Specify as false for components that don't require a primary model. Otherwise, set to the
|
|
26
|
+
* return of {@link uses} or {@link creates} - these factory functions will create a spec for
|
|
27
|
+
* either externally-provided or internally-created models. Defaults to `uses('*')`.
|
|
28
|
+
*/
|
|
29
|
+
model?: ModelSpec<P['model']> | false;
|
|
30
|
+
/**
|
|
31
|
+
* Base CSS class for this component. Will be combined with any className
|
|
32
|
+
* in props, with the combined string passed into render as a prop.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Component name for debugging/inspection. */
|
|
36
|
+
displayName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* True (default) to wrap component in a call to `React.memo()`.
|
|
39
|
+
* Components that are known to be unable to make effective use of memo (e.g. container
|
|
40
|
+
* components) may set this to `false`. Not typically set by application code.
|
|
41
|
+
*/
|
|
42
|
+
memo?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* True (default) to enable MobX-powered reactivity via the
|
|
45
|
+
* `observer()` HOC from mobx-react. Components that are known to dereference no observable
|
|
46
|
+
* state may set this to `false`, but this is not typically done by application code.
|
|
47
|
+
*/
|
|
48
|
+
observer?: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Hoist utility for defining functional components. This is the primary method for creating
|
|
52
|
+
* components for use in Hoist applications. Accepts either a render function (directly) or a
|
|
53
|
+
* configuration object to specify that function and additional options, as described below.
|
|
54
|
+
*
|
|
55
|
+
* The primary additional config option is `model`. It specifies how a backing HoistModel will be
|
|
56
|
+
* provided to / created by this component and if the component should publish its model to any
|
|
57
|
+
* subcomponents via context.
|
|
58
|
+
*
|
|
59
|
+
* By default, this utility wraps the returned component in the MobX 'observer' HOC, enabling
|
|
60
|
+
* MobX-powered reactivity and auto-re-rendering of observable properties read from models and
|
|
61
|
+
* any other sources of observable state.
|
|
62
|
+
*
|
|
63
|
+
* Forward refs {@link https://reactjs.org/docs/forwarding-refs.html} are supported by specifying a
|
|
64
|
+
* render function that accepts two arguments. In that case, the second arg will be considered a
|
|
65
|
+
* ref, and this utility will apply `React.forwardRef` as required.
|
|
66
|
+
*
|
|
67
|
+
* @param config - specification object, or a render function defining the component.
|
|
68
|
+
* @returns a functional React Component for use within Hoist apps.
|
|
69
|
+
*
|
|
70
|
+
* @see hoistCmp - a shorthand alias to this function.
|
|
71
|
+
*
|
|
72
|
+
* This function also has several related functions
|
|
73
|
+
*
|
|
74
|
+
* - `hoistCmp.factory` - return an elementFactory for a newly defined Component.
|
|
75
|
+
* instead of the Component itself.
|
|
76
|
+
*
|
|
77
|
+
* - `hoistCmp.withFactory` - return a 2-element list containing both the newly
|
|
78
|
+
* defined Component and an elementFactory for it.
|
|
79
|
+
*/
|
|
80
|
+
export declare function hoistCmp<M extends HoistModel>(config: ComponentConfig<DefaultHoistProps<M>>): FC<DefaultHoistProps<M>>;
|
|
81
|
+
export declare function hoistCmp<P extends HoistProps>(config: ComponentConfig<P>): FC<P>;
|
|
82
|
+
export declare namespace hoistCmp {
|
|
83
|
+
var factory: typeof hoistCmpFactory;
|
|
84
|
+
var withFactory: typeof hoistCmpWithFactory;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Alias for {@link hoistCmp}.
|
|
88
|
+
*/
|
|
89
|
+
export declare const hoistComponent: typeof hoistCmp;
|
|
90
|
+
/**
|
|
91
|
+
* Return an element factory for a newly defined component.
|
|
92
|
+
*
|
|
93
|
+
* Most typically used by application, this provides a simple element factory.
|
|
94
|
+
*/
|
|
95
|
+
export declare function hoistCmpFactory<M extends HoistModel>(config: ComponentConfig<DefaultHoistProps<M>>): ElementFactory<DefaultHoistProps<M>>;
|
|
96
|
+
export declare function hoistCmpFactory<P extends HoistProps>(config: ComponentConfig<P>): ElementFactory<P>;
|
|
97
|
+
/**
|
|
98
|
+
* Returns a 2-element list containing both the newly defined Component and an elementFactory for it.
|
|
99
|
+
* Used by Hoist for exporting Component artifacts that support both JSX and elementFactory based development.
|
|
100
|
+
*
|
|
101
|
+
* Not typically used by applications.
|
|
102
|
+
*/
|
|
103
|
+
export declare function hoistCmpWithFactory<M extends HoistModel>(config: ComponentConfig<DefaultHoistProps<M>>): [FC<DefaultHoistProps<M>>, ElementFactory<DefaultHoistProps<M>>];
|
|
104
|
+
export declare function hoistCmpWithFactory<P extends HoistProps>(config: ComponentConfig<P>): [FC<P>, ElementFactory<P>];
|
|
105
|
+
/**
|
|
106
|
+
* Component to render certain errors caught within hoistComponent.
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
export declare function setCmpErrorDisplay(ef: ElementFactory): void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { HoistModel } from '@xh/hoist/core/model';
|
|
2
|
+
import { CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for Hoist Components.
|
|
5
|
+
*
|
|
6
|
+
* This interface brings in additional properties that are added to the props
|
|
7
|
+
* collection by HoistComponent.
|
|
8
|
+
*/
|
|
9
|
+
export interface HoistProps<M extends HoistModel = HoistModel> {
|
|
10
|
+
/**
|
|
11
|
+
* Associated HoistModel for this Component. Depending on the component, may be specified as
|
|
12
|
+
* an instance of a HoistModel, or a configuration object to create one, or left undefined.
|
|
13
|
+
* HoistComponent will resolve (i.e. lookup in context or create if needed) a concrete Model
|
|
14
|
+
* instance and provide it to the Render method of the component.
|
|
15
|
+
*/
|
|
16
|
+
model?: M;
|
|
17
|
+
/**
|
|
18
|
+
* Used for specifying the *configuration* of a model to be created by Hoist for this component
|
|
19
|
+
* when first mounted. Should be used only on a component that specifies the 'uses()' directive
|
|
20
|
+
* with the `createFromConfig` set as true. See the `uses()` directive for more information.
|
|
21
|
+
*/
|
|
22
|
+
modelConfig?: M extends null ? never : M['config'];
|
|
23
|
+
/**
|
|
24
|
+
* Used for gaining a reference to the model of a HoistComponent.
|
|
25
|
+
*/
|
|
26
|
+
modelRef?: M extends null ? never : Ref<M>;
|
|
27
|
+
/**
|
|
28
|
+
* ClassName for the component. Includes the classname as provided in props, enhanced with
|
|
29
|
+
* any base class name provided by the component definition itself.
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
/** React children. */
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A version of Hoist props that allows dynamic keys/properties. This is the interface that
|
|
37
|
+
* Hoist uses for components that do not explicitly specify the type of props they expect.
|
|
38
|
+
*
|
|
39
|
+
* This behavior is useful for file or package-local components that do not require an explicit
|
|
40
|
+
* props API.
|
|
41
|
+
*/
|
|
42
|
+
export interface DefaultHoistProps<M extends HoistModel = HoistModel> extends HoistProps<M> {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Props for Components that support standard Layout attributes
|
|
47
|
+
*
|
|
48
|
+
* Most component will typically separate these props out and pass them along to another component
|
|
49
|
+
* which also supports this interface. Eventually, they should be passed to a Box class.
|
|
50
|
+
*/
|
|
51
|
+
export interface BoxProps extends LayoutProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'contextMenu'> {
|
|
52
|
+
}
|
|
53
|
+
export interface StyleProps {
|
|
54
|
+
style?: CSSProperties;
|
|
55
|
+
}
|
|
56
|
+
export interface LayoutProps {
|
|
57
|
+
margin?: string | number;
|
|
58
|
+
marginTop?: string | number;
|
|
59
|
+
marginRight?: string | number;
|
|
60
|
+
marginBottom?: string | number;
|
|
61
|
+
marginLeft?: string | number;
|
|
62
|
+
padding?: string | number;
|
|
63
|
+
paddingTop?: string | number;
|
|
64
|
+
paddingRight?: string | number;
|
|
65
|
+
paddingBottom?: string | number;
|
|
66
|
+
paddingLeft?: string | number;
|
|
67
|
+
height?: string | number;
|
|
68
|
+
minHeight?: string | number;
|
|
69
|
+
maxHeight?: string | number;
|
|
70
|
+
width?: string | number;
|
|
71
|
+
minWidth?: string | number;
|
|
72
|
+
maxWidth?: string | number;
|
|
73
|
+
flex?: string | number;
|
|
74
|
+
flexBasis?: string | number;
|
|
75
|
+
flexDirection?: string | number;
|
|
76
|
+
flexGrow?: string | number;
|
|
77
|
+
flexShrink?: string | number;
|
|
78
|
+
flexWrap?: string | number;
|
|
79
|
+
alignItems?: string;
|
|
80
|
+
alignSelf?: string;
|
|
81
|
+
alignContent?: string;
|
|
82
|
+
justifyContent?: string;
|
|
83
|
+
overflow?: string;
|
|
84
|
+
overflowX?: string;
|
|
85
|
+
overflowY?: string;
|
|
86
|
+
textOverflow?: string;
|
|
87
|
+
top?: string | number;
|
|
88
|
+
left?: string | number;
|
|
89
|
+
position?: string;
|
|
90
|
+
display?: string;
|
|
91
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { HoistBase, LoadSupport, LoadSpec, Loadable, PlainObject } from './';
|
|
2
|
+
/**
|
|
3
|
+
* Core superclass for Services in Hoist. Services are special classes used in both Hoist and
|
|
4
|
+
* application code as centralized points for managing app-wide state and loading / processing
|
|
5
|
+
* data from external APIs.
|
|
6
|
+
*
|
|
7
|
+
* Services are distinct from Models in that they are typically constructed and initialized within
|
|
8
|
+
* either `XH` (for Hoist-provided services) or within the `initAsync()` method of your primary
|
|
9
|
+
* `AppModel` - see {@link XH.installServicesAsync}. A single instance of each service is
|
|
10
|
+
* constructed and installed as a property on the `XH` singleton.
|
|
11
|
+
*
|
|
12
|
+
* (E.g. an app that defines and initializes a custom `TradeEntryService` class can access and use
|
|
13
|
+
* that instance as `XH.tradeEntryService`. This mirrors the pattern for singleton service
|
|
14
|
+
* injection used within the Grails server.)
|
|
15
|
+
*
|
|
16
|
+
* Services are most commonly used as engines within an application for loading, processing, and
|
|
17
|
+
* potentially caching data, although keep in mind their singleton nature when maintaining and
|
|
18
|
+
* updating state within your service. (E.g. if your service caches business objects and hands them
|
|
19
|
+
* out to callers, take care that those shared objects aren't modified by callers in unexpectedly
|
|
20
|
+
* shared ways.)
|
|
21
|
+
*
|
|
22
|
+
* Services extend `HoistBase` and can therefore leverage MobX-powered observables and reactions if
|
|
23
|
+
* so desired. And while components should typically source their state from backing models, they
|
|
24
|
+
* can also read and react to service state and call service APIs.
|
|
25
|
+
*/
|
|
26
|
+
export declare class HoistService extends HoistBase implements Loadable {
|
|
27
|
+
_created: number;
|
|
28
|
+
static get isHoistService(): boolean;
|
|
29
|
+
get isHoistService(): boolean;
|
|
30
|
+
constructor();
|
|
31
|
+
/**
|
|
32
|
+
* Called by framework or application to initialize before application startup.
|
|
33
|
+
* Throwing an exception from this method will typically block startup.
|
|
34
|
+
* Service writers should take care to stifle and manage all non-fatal exceptions.
|
|
35
|
+
*/
|
|
36
|
+
initAsync(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Provides optional support for Hoist's approach to managed loading.
|
|
39
|
+
*
|
|
40
|
+
* Applications will not typically need to access this object directly. If a subclass
|
|
41
|
+
* declares a concrete implementation of the `doLoadAsync()` template method, an instance of
|
|
42
|
+
* `LoadSupport` will automatically be created and installed to support the extensions below.
|
|
43
|
+
*/
|
|
44
|
+
loadSupport: LoadSupport;
|
|
45
|
+
get loadModel(): import("./TaskObserver").TaskObserver;
|
|
46
|
+
get lastLoadRequested(): Date;
|
|
47
|
+
get lastLoadCompleted(): Date;
|
|
48
|
+
get lastLoadException(): any;
|
|
49
|
+
refreshAsync(meta?: PlainObject): Promise<void>;
|
|
50
|
+
autoRefreshAsync(meta?: PlainObject): Promise<void>;
|
|
51
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
52
|
+
loadAsync(loadSpec?: LoadSpec | Partial<LoadSpec>): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
export interface HoistServiceClass<T extends HoistService = HoistService> {
|
|
55
|
+
new (): T;
|
|
56
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RefreshContextModel } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* Establishes an area of the application with an independent RefreshContextModel.
|
|
5
|
+
*
|
|
6
|
+
* The model established by this view will be refreshed by its parent context but may also be refreshed
|
|
7
|
+
* independently.
|
|
8
|
+
*
|
|
9
|
+
* @see RefreshContextModel
|
|
10
|
+
*/
|
|
11
|
+
export declare const RefreshContextView: import("react").FC<import("./HoistProps").DefaultHoistProps<RefreshContextModel>>, refreshContextView: import("./elem").ElementFactory<import("./HoistProps").DefaultHoistProps<RefreshContextModel>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HoistModel } from './';
|
|
2
|
+
import { Router, State } from 'router5';
|
|
3
|
+
/**
|
|
4
|
+
* Top-level model for managing application routing in Hoist.
|
|
5
|
+
*
|
|
6
|
+
* This observable model uses Router5 (https://router5.js.org/) to manage the
|
|
7
|
+
* underlying routes, presenting them to the application as a set of MobX observables.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RouterModel extends HoistModel {
|
|
10
|
+
/** Router5 state object representing the current state. */
|
|
11
|
+
currentState: State;
|
|
12
|
+
/** Underlying Router5 Router object implementing the routing state. */
|
|
13
|
+
router: Router;
|
|
14
|
+
/**
|
|
15
|
+
* Does the routing system already have a given route?
|
|
16
|
+
*/
|
|
17
|
+
hasRoute(routeName: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Add routes to the router.
|
|
20
|
+
*
|
|
21
|
+
* @param routes - collection of router5 route spec.
|
|
22
|
+
* This method supports an additional keyword 'omit' on each spec, in order to allow declarative
|
|
23
|
+
* exclusion. Otherwise these are Router5 configs to be passed directly to the Router5 API.
|
|
24
|
+
*/
|
|
25
|
+
addRoutes(routes: object[]): void;
|
|
26
|
+
/**
|
|
27
|
+
* Add a routeName to the current route, preserving params
|
|
28
|
+
* @param routeName - the routeName to append
|
|
29
|
+
* @param newParams - additional params for this routeName to be merged with existing params.
|
|
30
|
+
*/
|
|
31
|
+
appendRoute(routeName: string, newParams?: object): import("router5/types/types/base").CancelFn;
|
|
32
|
+
/**
|
|
33
|
+
* Remove last routeName from the current route, preserving params
|
|
34
|
+
*/
|
|
35
|
+
popRoute(): import("router5/types/types/base").CancelFn;
|
|
36
|
+
constructor();
|
|
37
|
+
private setCurrentState;
|
|
38
|
+
private getRouteNames;
|
|
39
|
+
private createRouter;
|
|
40
|
+
private preprocessRoutes;
|
|
41
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Tracks the execution state of one or more asynchronous tasks.
|
|
4
|
+
*
|
|
5
|
+
* An instance of this class can be used to control masks or other UI elements that
|
|
6
|
+
* track the progression of asynchronous tasks. It can be passed directly to a Panel
|
|
7
|
+
* component via its `mask` property, providing a common and convenient
|
|
8
|
+
* method for masking a section of a user interface while an operation is pending.
|
|
9
|
+
*/
|
|
10
|
+
export declare class TaskObserver {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new TaskObserver that will be pending if *any* linked
|
|
13
|
+
* subtasks is still pending.
|
|
14
|
+
*/
|
|
15
|
+
static trackAll({ tasks, message }?: {
|
|
16
|
+
tasks?: TaskObserver[];
|
|
17
|
+
message?: string;
|
|
18
|
+
}): TaskObserver;
|
|
19
|
+
/**
|
|
20
|
+
* Create a new TaskObserver that will be pending if its *last* linked
|
|
21
|
+
* subtask is still pending.
|
|
22
|
+
*
|
|
23
|
+
* Useful for tracking repeated invocations of the same operation, such as
|
|
24
|
+
* serially reloading of data from the server.
|
|
25
|
+
*/
|
|
26
|
+
static trackLast({ message }?: {
|
|
27
|
+
message?: string;
|
|
28
|
+
}): TaskObserver;
|
|
29
|
+
/**
|
|
30
|
+
* Create a TaskObserver bound to a single Promise.
|
|
31
|
+
* @see {@link Promise.linkTo} - preferred way to link an existing TaskObserver to a promise.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
static forPromise({ promise, message }: {
|
|
35
|
+
promise: any;
|
|
36
|
+
message: any;
|
|
37
|
+
}): PromiseObserver;
|
|
38
|
+
get isTaskObserver(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Is the task considered to be executing/in-progress? Observable.
|
|
41
|
+
*/
|
|
42
|
+
get isPending(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The number of pending tasks. Observable.
|
|
45
|
+
*/
|
|
46
|
+
get pendingCount(): number;
|
|
47
|
+
/**
|
|
48
|
+
* The message describing the executing task. Observable.
|
|
49
|
+
*/
|
|
50
|
+
get message(): ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Set the message describing the executing task.
|
|
53
|
+
*/
|
|
54
|
+
setMessage(msg: ReactNode): void;
|
|
55
|
+
/**
|
|
56
|
+
* Link the task to a subtask.
|
|
57
|
+
*/
|
|
58
|
+
linkTo(task: TaskObserver): void;
|
|
59
|
+
/**
|
|
60
|
+
* This class is abstract and should not be instantiated directly. To get an instance of this
|
|
61
|
+
* class, use static methods trackFirst(), trackLast() or fromPromise().
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
constructor();
|
|
65
|
+
}
|
|
66
|
+
declare class PromiseObserver extends TaskObserver {
|
|
67
|
+
private _isPending;
|
|
68
|
+
private _message;
|
|
69
|
+
get isPromiseObserver(): boolean;
|
|
70
|
+
get isPending(): boolean;
|
|
71
|
+
get pendingCount(): 1 | 0;
|
|
72
|
+
get message(): ReactNode;
|
|
73
|
+
constructor(promise: any, message: any);
|
|
74
|
+
}
|
|
75
|
+
export {};
|