@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,14 @@
|
|
|
1
|
+
import { DashContainerViewSpec } from '../DashContainerViewSpec';
|
|
2
|
+
/**
|
|
3
|
+
* Lookup the DashViewModel id of a rendered view
|
|
4
|
+
*/
|
|
5
|
+
export declare function getViewModelId(view: any): any;
|
|
6
|
+
/**
|
|
7
|
+
* Convert the output from Golden Layouts into our serializable state
|
|
8
|
+
*/
|
|
9
|
+
export declare function convertGLToState(goldenLayout: any, dashContainerModel: any): any[];
|
|
10
|
+
/**
|
|
11
|
+
* Convert our serializable state into GoldenLayout config
|
|
12
|
+
*/
|
|
13
|
+
export declare function convertStateToGL(state: any[], dashContainerModel: any): any;
|
|
14
|
+
export declare function goldenLayoutConfig(spec: DashContainerViewSpec): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DashViewModel } from '../../DashViewModel';
|
|
2
|
+
/**
|
|
3
|
+
* Implementation component to show an item within a DashContainer. This component
|
|
4
|
+
* is used by DashContainer's internal implementation to:
|
|
5
|
+
*
|
|
6
|
+
* - Mount/unmount its contents according to `DashViewSpec.renderMode`.
|
|
7
|
+
* - Track and trigger refreshes according to `DashViewSpec.refreshMode`.
|
|
8
|
+
* - Stretch its contents using a flex layout.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const dashContainerView: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<DashViewModel<any>>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './DashConfig';
|
|
2
|
+
export * from './DashModel';
|
|
3
|
+
export * from './DashViewModel';
|
|
4
|
+
export * from './DashViewSpec';
|
|
5
|
+
export * from './container/DashContainer';
|
|
6
|
+
export * from './container/DashContainerModel';
|
|
7
|
+
export * from './container/DashContainerViewSpec';
|
|
8
|
+
export * from './canvas/DashCanvas';
|
|
9
|
+
export * from './canvas/DashCanvasModel';
|
|
10
|
+
export * from './canvas/DashCanvasViewModel';
|
|
11
|
+
export * from './canvas/DashCanvasViewSpec';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { DockContainerModel } from './DockContainerModel';
|
|
5
|
+
export interface DockContainerProps extends HoistProps<DockContainerModel> {
|
|
6
|
+
/** True to style docked headers with reduced padding and font-size. */
|
|
7
|
+
compactHeaders?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* DockContainer provides a user-friendly way to render multiple child components "docked" to its
|
|
11
|
+
* bottom edge. Each view is rendered with a configurable header and controls to allow the user to
|
|
12
|
+
* expand it, collapse it, or optionally "pop it out" into a modal dialog.
|
|
13
|
+
*
|
|
14
|
+
* This mirrors the behavior of the familiar Gmail "compose" window and is intended for similar
|
|
15
|
+
* use-cases such as detail panels and forms, where the user might wish to open multiple children
|
|
16
|
+
* in a non-modal and unobtrusive manner.
|
|
17
|
+
*
|
|
18
|
+
* Docked views are sized according to their content. It is recommended to provide the docked
|
|
19
|
+
* content with a fixed size.
|
|
20
|
+
*
|
|
21
|
+
* DockContainerModel configures all aspects of this container, including its views. See that class
|
|
22
|
+
* for more details.
|
|
23
|
+
*
|
|
24
|
+
* @see DockContainerModel
|
|
25
|
+
*/
|
|
26
|
+
export declare const DockContainer: import("react").FC<DockContainerProps>, dockContainer: import("@xh/hoist/core").ElementFactory<DockContainerProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HoistModel, RefreshMode, RenderMode } from '@xh/hoist/core';
|
|
2
|
+
import '@xh/hoist/desktop/register';
|
|
3
|
+
import { DockViewModel, DockViewConfig } from './DockViewModel';
|
|
4
|
+
interface DockContainerConfig {
|
|
5
|
+
/** DockViewModel configs to be displayed. */
|
|
6
|
+
views?: DockViewConfig[];
|
|
7
|
+
/** Direction in which docked views build up as they are added to the container. */
|
|
8
|
+
direction?: DockViewDirection;
|
|
9
|
+
/** Strategy for rendering DockViews. Can also be set per-view via `DockViewModelConfig.renderMode` */
|
|
10
|
+
renderMode?: RenderMode;
|
|
11
|
+
/** Strategy for refreshing DockViews. Can also be set per-view via `DockViewModelConfig.refreshMode` */
|
|
12
|
+
refreshMode?: RefreshMode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Model for a DockContainer, representing its contents.
|
|
16
|
+
*
|
|
17
|
+
* This object provides support for managing docked views, adding new views on the fly,
|
|
18
|
+
* and expanding / collapsing views programmatically.
|
|
19
|
+
*/
|
|
20
|
+
export declare class DockContainerModel extends HoistModel {
|
|
21
|
+
views: DockViewModel[];
|
|
22
|
+
direction: DockViewDirection;
|
|
23
|
+
renderMode: RenderMode;
|
|
24
|
+
refreshMode: RefreshMode;
|
|
25
|
+
constructor({ views, direction, renderMode, refreshMode }?: DockContainerConfig);
|
|
26
|
+
getView(id: string): DockViewModel;
|
|
27
|
+
addView(cfg: DockViewConfig): void;
|
|
28
|
+
removeView(id: string): void;
|
|
29
|
+
expandView(id: string): void;
|
|
30
|
+
collapseView(id: string): void;
|
|
31
|
+
}
|
|
32
|
+
type DockViewDirection = 'ltr' | 'rtl';
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Content, Thunkable, HoistModel, RefreshContextModel, RefreshMode, RenderMode } from '@xh/hoist/core';
|
|
2
|
+
import { ModalSupportModel } from '@xh/hoist/desktop/cmp/modalsupport/ModalSupportModel';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
|
+
import { DockContainerModel } from './DockContainerModel';
|
|
6
|
+
export interface DockViewConfig {
|
|
7
|
+
/** Unique identifier for this DockViewModel. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** Parent DockContainerModel. Provided by the container when constructing the model - no need to specify manually. */
|
|
10
|
+
containerModel?: DockContainerModel;
|
|
11
|
+
/** Title text added to the header. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** An icon placed at the left-side of the header. */
|
|
14
|
+
icon?: ReactElement;
|
|
15
|
+
/** Content to be rendered by this DockView. */
|
|
16
|
+
content: Content;
|
|
17
|
+
/** Width in pixels. If not set, width will be determined by the content. */
|
|
18
|
+
width?: number;
|
|
19
|
+
/** Height in pixels. If not set, height will be determined by the content. */
|
|
20
|
+
height?: number;
|
|
21
|
+
/** Width of collapsed header in pixels. If not set, width will be determined by the length of the title. */
|
|
22
|
+
collapsedWidth?: number;
|
|
23
|
+
/** Strategy for rendering this DockView. If null, will default to its container's mode. */
|
|
24
|
+
renderMode?: RenderMode;
|
|
25
|
+
/** Strategy for refreshing this DockView. If null, will default to its container's mode. */
|
|
26
|
+
refreshMode?: RefreshMode;
|
|
27
|
+
/** true to exclude this DockView. */
|
|
28
|
+
omit?: Thunkable<boolean>;
|
|
29
|
+
/** true (default) to initialise in dock, false to use Dialog. Respects allowDialog. */
|
|
30
|
+
docked?: boolean;
|
|
31
|
+
/** true to initialise collapsed, false (default) for expanded. */
|
|
32
|
+
collapsed?: boolean;
|
|
33
|
+
/** true (default) to allow removing from the dock entirely. */
|
|
34
|
+
allowClose?: boolean;
|
|
35
|
+
/** true (default) to allow popping out of the dock and displaying in a modal Dialog. */
|
|
36
|
+
allowDialog?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Model for a DockView within a DockContainer. Specifies the actual content (child component)
|
|
40
|
+
* to be rendered within the view and manages that content's collapsed and docked state.
|
|
41
|
+
*
|
|
42
|
+
* This model is not typically created directly within applications. Instead, specify a
|
|
43
|
+
* configuration for it via the `DockContainerModel.views` constructor config or via
|
|
44
|
+
* the `DockContainerModel.addView()` method.
|
|
45
|
+
*/
|
|
46
|
+
export declare class DockViewModel extends HoistModel {
|
|
47
|
+
id: string;
|
|
48
|
+
title: string;
|
|
49
|
+
icon: ReactElement;
|
|
50
|
+
docked: boolean;
|
|
51
|
+
collapsed: boolean;
|
|
52
|
+
content: Content;
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
collapsedWidth: number;
|
|
56
|
+
allowClose: boolean;
|
|
57
|
+
allowDialog: boolean;
|
|
58
|
+
containerModel: DockContainerModel;
|
|
59
|
+
refreshContextModel: RefreshContextModel;
|
|
60
|
+
modalSupportModel: ModalSupportModel;
|
|
61
|
+
private _renderMode;
|
|
62
|
+
private _refreshMode;
|
|
63
|
+
get isActive(): boolean;
|
|
64
|
+
get renderMode(): RenderMode;
|
|
65
|
+
get refreshMode(): RefreshMode;
|
|
66
|
+
constructor({ id, containerModel, title, icon, content, width, height, collapsedWidth, refreshMode, renderMode, docked, collapsed, allowClose, allowDialog }: DockViewConfig);
|
|
67
|
+
toggleDocked(): void;
|
|
68
|
+
showInDialog(): void;
|
|
69
|
+
showInDock(): void;
|
|
70
|
+
toggleCollapsed(): void;
|
|
71
|
+
expand(): void;
|
|
72
|
+
collapse(): void;
|
|
73
|
+
close(): void;
|
|
74
|
+
destroy(): void;
|
|
75
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/desktop/register';
|
|
3
|
+
import './Dock.scss';
|
|
4
|
+
import { DockContainerProps } from '../DockContainer';
|
|
5
|
+
/**
|
|
6
|
+
* Desktop implementation of DockContainer.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function dockContainerImpl({ model, className, compactHeaders, ...props }: DockContainerProps, ref: any): import("react").ReactElement<import("@xh/hoist/cmp/layout").BoxComponentProps, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DockViewModel } from '@xh/hoist/desktop/cmp/dock';
|
|
2
|
+
import { HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import './Dock.scss';
|
|
5
|
+
interface DockViewProps extends HoistProps<DockViewModel> {
|
|
6
|
+
/** True to style docked headers with reduced padding and font-size. */
|
|
7
|
+
compactHeaders?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wrapper for contents to be shown within a DockContainer.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const dockView: import("@xh/hoist/core").ElementFactory<DockViewProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HoistProps, PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { ButtonProps } from '@xh/hoist/desktop/cmp/button';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { ReactNode, MouseEvent } from 'react';
|
|
5
|
+
import './ErrorMessage.scss';
|
|
6
|
+
export interface ErrorMessageProps extends HoistProps {
|
|
7
|
+
/**
|
|
8
|
+
* If provided, will render a "Retry" button that calls this function.
|
|
9
|
+
* Use `actionButtonProps` for further control over this button.
|
|
10
|
+
*/
|
|
11
|
+
actionFn?: (e: MouseEvent) => void;
|
|
12
|
+
/**
|
|
13
|
+
* If provided, component will render an inline action button - prompting to user to take some
|
|
14
|
+
* action that might resolve the error, such as retrying a failed data load.
|
|
15
|
+
*/
|
|
16
|
+
actionButtonProps?: ButtonProps;
|
|
17
|
+
/**
|
|
18
|
+
* Error to display. If undefined, this component will look for an error property on its model.
|
|
19
|
+
* If no error is found, this component will not be displayed.
|
|
20
|
+
*/
|
|
21
|
+
error?: Error | string | PlainObject;
|
|
22
|
+
/**
|
|
23
|
+
* Message to display for the error.
|
|
24
|
+
* Defaults to the error, or any 'message' property contained within it.
|
|
25
|
+
*/
|
|
26
|
+
message?: ReactNode;
|
|
27
|
+
/** Optional title to display above the message. */
|
|
28
|
+
title?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Component for displaying an error with standardized styling.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ErrorMessage: import("react").FC<ErrorMessageProps>, errorMessage: import("@xh/hoist/core").ElementFactory<ErrorMessageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorMessage';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BoxProps, HoistProps, Some } from '@xh/hoist/core';
|
|
2
|
+
import '@xh/hoist/desktop/register';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import './FileChooser.scss';
|
|
5
|
+
import { FileChooserModel } from './FileChooserModel';
|
|
6
|
+
export interface FileChooserProps extends HoistProps<FileChooserModel>, BoxProps {
|
|
7
|
+
/** File type(s) to accept (e.g. `['.doc', '.docx', '.pdf']`). */
|
|
8
|
+
accept?: Some<string>;
|
|
9
|
+
/** True (default) to allow multiple files in a single upload. */
|
|
10
|
+
enableMulti?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* True to allow user to drop multiple files into the dropzone at once. True also allows
|
|
13
|
+
* for selection of multiple files within the OS pop-up window. Defaults to enableMulti.
|
|
14
|
+
*/
|
|
15
|
+
enableAddMulti?: boolean;
|
|
16
|
+
/** Maximum accepted file size in bytes. */
|
|
17
|
+
maxSize?: number;
|
|
18
|
+
/** Minimum accepted file size in bytes. */
|
|
19
|
+
minSize?: number;
|
|
20
|
+
/**
|
|
21
|
+
* True (default) to display the selected file(s) in a grid alongside the dropzone. Note
|
|
22
|
+
* that, if false, the component will not provide any built-in indication of its selection.
|
|
23
|
+
*/
|
|
24
|
+
showFileGrid: boolean;
|
|
25
|
+
/** Intro/help text to display within the dropzone target. */
|
|
26
|
+
targetText?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A component to select one or more files from the local filesystem. Wraps the third-party
|
|
30
|
+
* react-dropzone component to provide both drag-and-drop and click-to-browse file selection.
|
|
31
|
+
* Expands upon this core functionality with an optional grid (enabled by default) displaying
|
|
32
|
+
* the list of selected files and allowing the user to remove files from the selection.
|
|
33
|
+
*
|
|
34
|
+
* This component should be provided with a FileChooserModel instance, as the model holds an
|
|
35
|
+
* observable collection of File objects and provides a public API to manipulate the selection.
|
|
36
|
+
*
|
|
37
|
+
* The application is responsible for processing the selected files (e.g. by uploading them to a
|
|
38
|
+
* server) and clearing the selection when complete.
|
|
39
|
+
*
|
|
40
|
+
* @see FileChooserModel
|
|
41
|
+
*/
|
|
42
|
+
export declare const FileChooser: import("react").FC<FileChooserProps>, fileChooser: import("@xh/hoist/core").ElementFactory<FileChooserProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GridModel } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { HoistModel } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
export declare class FileChooserModel extends HoistModel {
|
|
5
|
+
files: File[];
|
|
6
|
+
lastRejectedCount: number;
|
|
7
|
+
gridModel: GridModel;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Add Files to the selection. Typically called by the component's embedded react-dropzone.
|
|
11
|
+
* Files will be de-duplicated by name, with a newly added file taking precedence over any
|
|
12
|
+
* existing file with the same name.
|
|
13
|
+
*/
|
|
14
|
+
addFiles(filesToAdd: File[]): void;
|
|
15
|
+
setSingleFile(file: File): void;
|
|
16
|
+
/**
|
|
17
|
+
* Remove a single file from the current selection.
|
|
18
|
+
*/
|
|
19
|
+
removeFileByName(name: string): void;
|
|
20
|
+
/** Clear the current selection. */
|
|
21
|
+
removeAllFiles(): void;
|
|
22
|
+
private createGridModel;
|
|
23
|
+
onDrop(accepted: any, rejected: any, enableMulti: any): void;
|
|
24
|
+
onFilesChange(files: any): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FilterChooserModel } from '@xh/hoist/cmp/filter';
|
|
2
|
+
import { HoistProps, LayoutProps } from '@xh/hoist/core';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
|
+
import './FilterChooser.scss';
|
|
6
|
+
export interface FilterChooserProps extends HoistProps<FilterChooserModel>, LayoutProps {
|
|
7
|
+
/** True to focus the control on render. */
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
/** True to disable user interaction. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** True to show a "clear" button at the right of the control. Defaults to true. */
|
|
12
|
+
enableClear?: boolean;
|
|
13
|
+
/** Icon to display inline on the left side of the input. */
|
|
14
|
+
leftIcon?: ReactElement;
|
|
15
|
+
/** Max-height of dropdown. Either a number in pixels or a valid CSS string, such as '80vh'. */
|
|
16
|
+
maxMenuHeight?: number | string;
|
|
17
|
+
/** Placement of the dropdown menu relative to the input control. */
|
|
18
|
+
menuPlacement?: 'auto' | 'top' | 'bottom';
|
|
19
|
+
/** Width in pixels for the dropdown menu - if unspecified, defaults to control width. */
|
|
20
|
+
menuWidth?: number;
|
|
21
|
+
/** Text to display when control is empty. */
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A Select based control for searching and choosing filters.
|
|
26
|
+
* @see FilterChooserModel
|
|
27
|
+
*/
|
|
28
|
+
export declare const FilterChooser: import("react").FC<FilterChooserProps>, filterChooser: import("@xh/hoist/core").ElementFactory<FilterChooserProps>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseFormFieldProps } from '@xh/hoist/cmp/form';
|
|
3
|
+
import { HSide } from '@xh/hoist/core';
|
|
4
|
+
import '@xh/hoist/desktop/register';
|
|
5
|
+
import './FormField.scss';
|
|
6
|
+
import { PopoverPosition, PopperBoundary } from '@blueprintjs/core';
|
|
7
|
+
export interface FormFieldProps extends BaseFormFieldProps {
|
|
8
|
+
/**
|
|
9
|
+
* Focus or toggle input when label is clicked.
|
|
10
|
+
* Defaulted from containing Form, or true.
|
|
11
|
+
*/
|
|
12
|
+
clickableLabel?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Layout field inline with label to the left.
|
|
15
|
+
* Defaulted from containing Form, or false.
|
|
16
|
+
*/
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
/** Alignment of label text, default 'left'. */
|
|
19
|
+
labelTextAlign?: HSide;
|
|
20
|
+
/** Width of the label in pixels. */
|
|
21
|
+
labelWidth?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Signal a validation error by inserting a warning glyph in the far left side of the
|
|
24
|
+
* Input, if supported. (Currently TextField and NumberInput only.)
|
|
25
|
+
* Defaulted from containing Form, or false.
|
|
26
|
+
*/
|
|
27
|
+
leftErrorIcon?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Display validation messages in a tooltip, as opposed to inline within the component.
|
|
30
|
+
* Defaulted from containing Form, or false.
|
|
31
|
+
*/
|
|
32
|
+
minimal?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Minimal validation tooltip will try to fit within the corresponding boundary.
|
|
35
|
+
* @see https://blueprintjs.com/docs/#core/components/popover
|
|
36
|
+
*/
|
|
37
|
+
tooltipBoundary?: PopperBoundary;
|
|
38
|
+
/**
|
|
39
|
+
* Position for minimal validation tooltip.
|
|
40
|
+
* @see https://blueprintjs.com/docs/#core/components/popover
|
|
41
|
+
*/
|
|
42
|
+
tooltipPosition?: PopoverPosition;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Standardised wrapper around a HoistInput component for use in a form. FormField provides
|
|
46
|
+
* consistent layout, labelling, and optional display of validation messages for the field.
|
|
47
|
+
* FormField also supports an alternative read-only display of the bound data.
|
|
48
|
+
*
|
|
49
|
+
* This component is intended to be used within a `Form` component and bound to a 'FieldModel'
|
|
50
|
+
* within that Form's backing `FormModel`. FormField will set up the binding between its input and the
|
|
51
|
+
* FieldModel instance and can display validation messages, switch between read-only and disabled
|
|
52
|
+
* variants of its child, and source default props via the parent Form's `fieldDefaults` prop.
|
|
53
|
+
*
|
|
54
|
+
* This component is designed to work with an instance of `HoistInput` as its input, and makes use
|
|
55
|
+
* of many of HoistInput's props. For best results with a customized input, consider wrapping a
|
|
56
|
+
* HoistInput and passing all props along to it. At the very least, all custom inputs
|
|
57
|
+
* must accept 'model' and 'bind' props in order to show and edit data.
|
|
58
|
+
*
|
|
59
|
+
* FormFields can be sized and otherwise customized via standard layout props. They will
|
|
60
|
+
* adjust their child inputs to fill their available space (if appropriate given the input type),
|
|
61
|
+
* so the recommended approach is to specify any sizing on the FormField (as opposed to the input).
|
|
62
|
+
*/
|
|
63
|
+
export declare const FormField: import("react").FC<FormFieldProps>, formField: import("@xh/hoist/core").ElementFactory<FormFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ColumnSpec } from '@xh/hoist/cmp/grid/columns';
|
|
2
|
+
import '@xh/hoist/desktop/register';
|
|
3
|
+
import './Actions.scss';
|
|
4
|
+
/**
|
|
5
|
+
* A column definition partial for adding an "action column" to a grid. An action column displays
|
|
6
|
+
* one or more record-aware buttons within a button group, providing the user with an easy
|
|
7
|
+
* way to perform push-button operations on a given record.
|
|
8
|
+
*
|
|
9
|
+
* Another useful pattern is to create re-usable `RecordAction` configs and pass those both to this
|
|
10
|
+
* column config as well as the grid's contextMenu. This offers the user two ways of accessing actions
|
|
11
|
+
* without duplicating the action definitions.
|
|
12
|
+
*
|
|
13
|
+
* See the `calcActionColWidth` helper function exported below - this returns a pixel width
|
|
14
|
+
* for your column given a number of actions (accounting for button sizing and padding).
|
|
15
|
+
*
|
|
16
|
+
* Note that action columns will be empty for group rows.
|
|
17
|
+
*
|
|
18
|
+
* @see RecordAction
|
|
19
|
+
*/
|
|
20
|
+
export declare const actionCol: ColumnSpec;
|
|
21
|
+
/**
|
|
22
|
+
* Calculates the width for an action column
|
|
23
|
+
* @param count - number of actions
|
|
24
|
+
* @param cellPadding - desired left and right padding (in pixels) for the action cell.
|
|
25
|
+
* @param buttonWidth - width (in pixels) of the action buttons.
|
|
26
|
+
* Default small minimal buttons with an icon will be 24px
|
|
27
|
+
* @returns the width in pixels
|
|
28
|
+
*/
|
|
29
|
+
export declare function calcActionColWidth(count: number, cellPadding?: number, buttonWidth?: number): number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxProps } from '@xh/hoist/desktop/cmp/input';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export interface BooleanEditorProps extends EditorProps<CheckboxProps> {
|
|
7
|
+
/**
|
|
8
|
+
* True to change underlying record state immediately upon user editing gesture (i.e. clicking,
|
|
9
|
+
* hitting return). Defaults to true.
|
|
10
|
+
*
|
|
11
|
+
* Note that this prop is only available if the `fullRowEditing` property on the containing
|
|
12
|
+
* GridModel is false. It is ignored in `fullRowEditing` mode.
|
|
13
|
+
*/
|
|
14
|
+
quickToggle?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const BooleanEditor: import("react").FC<BooleanEditorProps>, booleanEditor: import("@xh/hoist/core").ElementFactory<BooleanEditorProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateInputProps } from '@xh/hoist/desktop/cmp/input';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export type DateEditorProps = EditorProps<DateInputProps>;
|
|
7
|
+
export declare const DateEditor: import("react").FC<DateEditorProps>, dateEditor: import("@xh/hoist/core").ElementFactory<DateEditorProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Column, GridModel } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { HoistInputProps } from '@xh/hoist/cmp/input';
|
|
3
|
+
import { HoistProps } from '@xh/hoist/core';
|
|
4
|
+
import { StoreRecord } from '@xh/hoist/data';
|
|
5
|
+
import '@xh/hoist/desktop/register';
|
|
6
|
+
import type { ICellEditorParams } from '@ag-grid-community/core';
|
|
7
|
+
export interface EditorProps<InputPropsT extends HoistInputProps> extends HoistProps {
|
|
8
|
+
/** Column in StoreRecord being edited. */
|
|
9
|
+
column: Column;
|
|
10
|
+
/** Owning GridModel of record being edited. */
|
|
11
|
+
gridModel: GridModel;
|
|
12
|
+
/** StoreRecord being edited. */
|
|
13
|
+
record: StoreRecord;
|
|
14
|
+
/** Props to pass through to the underlying HoistInput component */
|
|
15
|
+
inputProps: InputPropsT;
|
|
16
|
+
agParams: ICellEditorParams;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NumberInputProps } from '@xh/hoist/desktop/cmp/input';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export type NumberEditorProps = EditorProps<NumberInputProps>;
|
|
7
|
+
export declare const NumberEditor: import("react").FC<NumberEditorProps>, numberEditor: import("@xh/hoist/core").ElementFactory<NumberEditorProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps } from '@xh/hoist/desktop/cmp/input';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export type SelectEditorProps = EditorProps<SelectProps>;
|
|
7
|
+
export declare const SelectEditor: import("react").FC<SelectEditorProps>, selectEditor: import("@xh/hoist/core").ElementFactory<SelectEditorProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@xh/hoist/desktop/register';
|
|
3
|
+
import { TextAreaProps } from '../../input';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export type TextAreaEditorProps = EditorProps<TextAreaProps>;
|
|
7
|
+
export declare const TextAreaEditor: import("react").FC<TextAreaEditorProps>, textAreaEditor: import("@xh/hoist/core").ElementFactory<TextAreaEditorProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextInputProps } from '@xh/hoist/desktop/cmp/input';
|
|
3
|
+
import '@xh/hoist/desktop/register';
|
|
4
|
+
import { EditorProps } from './EditorProps';
|
|
5
|
+
import './Editors.scss';
|
|
6
|
+
export type TextEditorProps = EditorProps<TextInputProps>;
|
|
7
|
+
export declare const TextEditor: import("react").FC<TextEditorProps>, textEditor: import("@xh/hoist/core").ElementFactory<TextEditorProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementFactory } from '@xh/hoist/core';
|
|
2
|
+
import { EditorProps } from '@xh/hoist/desktop/cmp/grid/editors/EditorProps';
|
|
3
|
+
import { ForwardedRef, ReactElement } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to render a component to be used for inline cell editing in ag-grid.
|
|
6
|
+
* @internal - Hoist provides components wrapping the currently-supported `HoistInput`s.
|
|
7
|
+
*
|
|
8
|
+
* Implements the lifecycle methods required by ag-grid cell editors.
|
|
9
|
+
* See https://www.ag-grid.com/react-grid/react-hooks/#hooks-with-lifecycle-methods for details.
|
|
10
|
+
*
|
|
11
|
+
* @param component - ElementFactory for HoistInput to render.
|
|
12
|
+
* @param props - props passed to containing component
|
|
13
|
+
* @param ref - forwardRef passed to containing component
|
|
14
|
+
*/
|
|
15
|
+
export declare function useInlineEditorModel(component: ElementFactory, props: EditorProps<any>, ref: ForwardedRef<any>): ReactElement;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GridModel } from '@xh/hoist/cmp/grid';
|
|
3
|
+
import { LayoutProps } from '@xh/hoist/core';
|
|
4
|
+
import { TextInputProps } from '@xh/hoist/desktop/cmp/input';
|
|
5
|
+
import '@xh/hoist/desktop/register';
|
|
6
|
+
import './GridFindField.scss';
|
|
7
|
+
export interface GridFindFieldProps extends TextInputProps, LayoutProps {
|
|
8
|
+
/**
|
|
9
|
+
* GridModel whose data this control should search. This component will, by default, use the
|
|
10
|
+
* fields for all *visible* columns when matching, as well as any groupBy field.
|
|
11
|
+
*/
|
|
12
|
+
gridModel?: GridModel;
|
|
13
|
+
/** Mode to use when searching (default 'startWord'). */
|
|
14
|
+
matchMode?: 'start' | 'startWord' | 'any';
|
|
15
|
+
/**
|
|
16
|
+
* Delay (in ms) to buffer searching the grid after the value changes from user input.
|
|
17
|
+
* Default 200ms. Set to 0 to filter immediately on each keystroke.
|
|
18
|
+
*/
|
|
19
|
+
queryBuffer?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Names of field(s) to include in search. Cannot be used with `excludeFields`.
|
|
22
|
+
*/
|
|
23
|
+
includeFields?: string[];
|
|
24
|
+
/** Names of field(s) to exclude from search. Cannot be used with `includeFields`. */
|
|
25
|
+
excludeFields?: string[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A text input Component that enables users to search through a Grid and select rows that match
|
|
29
|
+
* the entered search term based on simple word-boundary matching of its value to the value of
|
|
30
|
+
* configured fields on a record. If any field values match, the record itself is considered a match.
|
|
31
|
+
*
|
|
32
|
+
* This component is designed to be bound to a GridModel via `gridModel` prop. (If not configured to
|
|
33
|
+
* bind to a specific GridModel, this component will bind by default to the nearest GridModel found
|
|
34
|
+
* in context.) Binding in this way allows the component to auto-generate the fields in the store to
|
|
35
|
+
* be searched by the field and to automatically select the results in the Grid.
|
|
36
|
+
*
|
|
37
|
+
* Fields to be searched can be automatically determined from the bound Grid's Store, and/or
|
|
38
|
+
* customized via the include/excludeFields props. See prop comments for details.
|
|
39
|
+
*
|
|
40
|
+
* This component supports all props available to TextInput and will pass them along to its
|
|
41
|
+
* underlying TextInput.
|
|
42
|
+
*/
|
|
43
|
+
export declare const GridFindField: import("react").FC<GridFindFieldProps>, gridFindField: import("@xh/hoist/core").ElementFactory<GridFindFieldProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GridModel } from '@xh/hoist/cmp/grid';
|
|
3
|
+
import { HoistModel } from '@xh/hoist/core';
|
|
4
|
+
import { TextInputModel } from '@xh/hoist/desktop/cmp/input';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare class GridFindFieldImplModel extends HoistModel {
|
|
9
|
+
xhImpl: boolean;
|
|
10
|
+
gridModel: GridModel;
|
|
11
|
+
get matchMode(): string;
|
|
12
|
+
get queryBuffer(): number;
|
|
13
|
+
get includeFields(): string[];
|
|
14
|
+
get excludeFields(): string[];
|
|
15
|
+
results: any;
|
|
16
|
+
inputRef: import("react").RefObject<TextInputModel> & ((instance: TextInputModel) => void);
|
|
17
|
+
_records: any;
|
|
18
|
+
get count(): number;
|
|
19
|
+
get selectedIdx(): number;
|
|
20
|
+
get countLabel(): string;
|
|
21
|
+
get hasFocus(): boolean;
|
|
22
|
+
get hasQuery(): boolean;
|
|
23
|
+
get hasResults(): boolean;
|
|
24
|
+
get query(): string;
|
|
25
|
+
setQuery(v: any): void;
|
|
26
|
+
constructor();
|
|
27
|
+
onLinked(): void;
|
|
28
|
+
selectPrev(): void;
|
|
29
|
+
selectNext(): void;
|
|
30
|
+
private updateResults;
|
|
31
|
+
private getRecords;
|
|
32
|
+
private sortRecordsRecursive;
|
|
33
|
+
private sortRecordsByGroupBy;
|
|
34
|
+
private getRegex;
|
|
35
|
+
private getActiveFields;
|
|
36
|
+
private getValGetters;
|
|
37
|
+
}
|