@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,9 @@
|
|
|
1
|
+
import { ColumnSpec } from './Column';
|
|
2
|
+
/** Column config to render truthy values with a standardized green check icon. */
|
|
3
|
+
export declare const boolCheck: ColumnSpec;
|
|
4
|
+
export declare const number: ColumnSpec;
|
|
5
|
+
export declare const fileExt: ColumnSpec;
|
|
6
|
+
export declare const tags: ColumnSpec;
|
|
7
|
+
export declare const boolCheckCol: ColumnSpec;
|
|
8
|
+
export declare const numberCol: ColumnSpec;
|
|
9
|
+
export declare const fileExtCol: ColumnSpec;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnSpec } from '@xh/hoist/cmp/grid';
|
|
2
|
+
export declare const date: ColumnSpec;
|
|
3
|
+
export declare const time: ColumnSpec;
|
|
4
|
+
export declare const dateTime: ColumnSpec;
|
|
5
|
+
export declare const dateTimeSec: ColumnSpec;
|
|
6
|
+
export declare const compactDate: ColumnSpec;
|
|
7
|
+
export declare const localDate: ColumnSpec;
|
|
8
|
+
export declare const dateCol: ColumnSpec;
|
|
9
|
+
export declare const timeCol: ColumnSpec;
|
|
10
|
+
export declare const dateTimeCol: ColumnSpec;
|
|
11
|
+
export declare const compactDateCol: ColumnSpec;
|
|
12
|
+
export declare const localDateCol: ColumnSpec;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data-type specific cell formats used in server-side Excel exports.
|
|
3
|
+
* Specify for a Grid Column via the `Column.excelFormat` config.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ExcelFormat: {
|
|
6
|
+
DEFAULT: string;
|
|
7
|
+
LONG_TEXT: string;
|
|
8
|
+
NUM: string;
|
|
9
|
+
NUM_1DP: string;
|
|
10
|
+
NUM_2DP: string;
|
|
11
|
+
NUM_4DP: string;
|
|
12
|
+
NUM_DELIMITED: string;
|
|
13
|
+
NUM_DELIMITED_1DP: string;
|
|
14
|
+
NUM_DELIMITED_2DP: string;
|
|
15
|
+
NUM_DELIMITED_4DP: string;
|
|
16
|
+
LEDGER: string;
|
|
17
|
+
LEDGER_1DP: string;
|
|
18
|
+
LEDGER_2DP: string;
|
|
19
|
+
LEDGER_4DP: string;
|
|
20
|
+
LEDGER_COLOR: string;
|
|
21
|
+
LEDGER_COLOR_1DP: string;
|
|
22
|
+
LEDGER_COLOR_2DP: string;
|
|
23
|
+
LEDGER_COLOR_4DP: string;
|
|
24
|
+
THOUSANDS: string;
|
|
25
|
+
MILLIONS: string;
|
|
26
|
+
BILLIONS: string;
|
|
27
|
+
PCT: string;
|
|
28
|
+
PCT_1DP: string;
|
|
29
|
+
PCT_2DP: string;
|
|
30
|
+
PCT_4DP: string;
|
|
31
|
+
DATE_FMT: string;
|
|
32
|
+
DATETIME_FMT: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mode for Grid governing Autosize behavior.
|
|
3
|
+
*/
|
|
4
|
+
export declare const GridAutosizeMode: Readonly<{
|
|
5
|
+
/** Grid will not allow autosizing of columns.*/
|
|
6
|
+
DISABLED: "disabled";
|
|
7
|
+
/**
|
|
8
|
+
* Grid will offer affordances such as context menus and gestures to allow users to manually
|
|
9
|
+
* trigger an autosize only. Applications should trigger with autosizeAsync().
|
|
10
|
+
*/
|
|
11
|
+
ON_DEMAND: "onDemand";
|
|
12
|
+
/**
|
|
13
|
+
* Grid will autosize columns when the GridModel's sizingMode changes.
|
|
14
|
+
* Also offers the affordances provided by ON_DEMAND.
|
|
15
|
+
*/
|
|
16
|
+
ON_SIZING_MODE_CHANGE: "onSizingModeChange";
|
|
17
|
+
/**
|
|
18
|
+
* Grid will autosize columns when the GridModel's sizingMode changes or data is loaded,
|
|
19
|
+
* unless the user has manually modified their column widths.
|
|
20
|
+
* Also offers the affordances provided by ON_DEMAND.
|
|
21
|
+
*/
|
|
22
|
+
MANAGED: "managed";
|
|
23
|
+
}>;
|
|
24
|
+
export type GridAutosizeMode = (typeof GridAutosizeMode)[keyof typeof GridAutosizeMode];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options controlling treeMode-specific styles (row background highlights and borders) for Grids.
|
|
3
|
+
*/
|
|
4
|
+
export declare const TreeStyle: Readonly<{
|
|
5
|
+
/** Highlight parent nodes in tree */
|
|
6
|
+
HIGHLIGHTS: "highlights";
|
|
7
|
+
COLORS: "colors";
|
|
8
|
+
/** Separate groups by placing a border above top level parent nodes */
|
|
9
|
+
BORDERS: "borders";
|
|
10
|
+
HIGHLIGHTS_AND_BORDERS: "highlightsAndBorders";
|
|
11
|
+
COLORS_AND_BORDERS: "colorsAndBorders";
|
|
12
|
+
NONE: "none";
|
|
13
|
+
}>;
|
|
14
|
+
export type TreeStyle = (typeof TreeStyle)[keyof typeof TreeStyle];
|
|
15
|
+
export declare function getTreeStyleClasses(treeStyle: any): "xh-grid--tree-style-highlights" | "xh-grid--tree-style-colors" | "xh-grid--tree-style-borders" | "xh-grid--tree-style-highlights xh-grid--tree-style-borders" | "xh-grid--tree-style-colors xh-grid--tree-style-borders";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ColumnRenderer } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { HoistInputProps } from '@xh/hoist/cmp/input';
|
|
3
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
4
|
+
import { FieldFilterOperator } from '@xh/hoist/data';
|
|
5
|
+
import { BaseFilterFieldSpec, BaseFilterFieldSpecConfig } from '@xh/hoist/data/filter/BaseFilterFieldSpec';
|
|
6
|
+
import { GridFilterModel } from './GridFilterModel';
|
|
7
|
+
export interface GridFilterFieldSpecConfig extends BaseFilterFieldSpecConfig {
|
|
8
|
+
/** GridFilterModel instance owning this fieldSpec. */
|
|
9
|
+
filterModel?: GridFilterModel;
|
|
10
|
+
/**
|
|
11
|
+
* Function returning a formatted string for each value in this values filter display.
|
|
12
|
+
* If not provided, the Column's renderer will be used.
|
|
13
|
+
*/
|
|
14
|
+
renderer?: ColumnRenderer;
|
|
15
|
+
/**
|
|
16
|
+
* Props to pass through to the HoistInput components used on the custom filter tab.
|
|
17
|
+
* Note that the HoistInput component used is decided by fieldType.
|
|
18
|
+
*/
|
|
19
|
+
inputProps?: HoistInputProps;
|
|
20
|
+
/** Default operator displayed in custom filter tab. */
|
|
21
|
+
defaultOp?: FieldFilterOperator;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Apps should NOT instantiate this class directly.
|
|
25
|
+
* Instead, provide a config for this object to the GridModel's `filterModel` config.
|
|
26
|
+
*/
|
|
27
|
+
export declare class GridFilterFieldSpec extends BaseFilterFieldSpec {
|
|
28
|
+
filterModel: GridFilterModel;
|
|
29
|
+
renderer: ColumnRenderer;
|
|
30
|
+
inputProps: PlainObject;
|
|
31
|
+
defaultOp: FieldFilterOperator;
|
|
32
|
+
valueCount: number;
|
|
33
|
+
constructor({ filterModel, renderer, inputProps, defaultOp, ...rest }: GridFilterFieldSpecConfig);
|
|
34
|
+
loadValuesFromSource(): void;
|
|
35
|
+
cleanFilter(filter: any): any;
|
|
36
|
+
valueFromRecord(record: any): any;
|
|
37
|
+
getUniqueValue(value: any): any;
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { GridFilterFieldSpec, GridFilterModelConfig } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { HoistModel } from '@xh/hoist/core';
|
|
3
|
+
import { CompoundFilter, FieldFilter, Filter, FilterLike, Store, View } from '@xh/hoist/data';
|
|
4
|
+
import { GridModel } from '../GridModel';
|
|
5
|
+
/**
|
|
6
|
+
* Model for managing a Grid's column filters.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class GridFilterModel extends HoistModel {
|
|
10
|
+
xhImpl: boolean;
|
|
11
|
+
gridModel: GridModel;
|
|
12
|
+
bind: Store | View;
|
|
13
|
+
commitOnChange: boolean;
|
|
14
|
+
fieldSpecs: GridFilterFieldSpec[];
|
|
15
|
+
get filter(): Filter;
|
|
16
|
+
dialogOpen: boolean;
|
|
17
|
+
static BLANK_PLACEHOLDER: string;
|
|
18
|
+
constructor({ bind, commitOnChange, fieldSpecs, fieldSpecDefaults }: GridFilterModelConfig, gridModel: GridModel);
|
|
19
|
+
/**
|
|
20
|
+
* Set / replace the filters for a given field.
|
|
21
|
+
* @param field - field to identify this filter
|
|
22
|
+
* @param filter - Filter to apply. If null, the filter will be removed
|
|
23
|
+
*/
|
|
24
|
+
setColumnFilters(field: string, filter: FilterLike): void;
|
|
25
|
+
/**
|
|
26
|
+
* Appends the value of a new filter into the existing filter on the same field and operator.
|
|
27
|
+
* If such no filter exists, one will be created. Only applicable for filters with multi-value operators.
|
|
28
|
+
* @param field - field to identify this filter
|
|
29
|
+
* @param filter - Filter to apply. If null, the filter will be removed
|
|
30
|
+
*/
|
|
31
|
+
mergeColumnFilters(field: string, filter: FilterLike): void;
|
|
32
|
+
clear(): void;
|
|
33
|
+
getColumnFilters(field: string): FieldFilter[];
|
|
34
|
+
/** The CompoundFilter that wraps the filters for specified field. */
|
|
35
|
+
getColumnCompoundFilter(field: string): CompoundFilter;
|
|
36
|
+
getFieldSpec(field: string): GridFilterFieldSpec;
|
|
37
|
+
toDisplayValue(value: any): any;
|
|
38
|
+
fromDisplayValue(value: any): any;
|
|
39
|
+
openDialog(): void;
|
|
40
|
+
closeDialog(): void;
|
|
41
|
+
setFilter(filter: any): void;
|
|
42
|
+
private parseFieldSpecs;
|
|
43
|
+
private getOuterCompoundFilter;
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GridModel } from '../GridModel';
|
|
3
|
+
import { BoxProps, HoistProps } from '@xh/hoist/core';
|
|
4
|
+
export interface GridCountLabelProps extends HoistProps, BoxProps {
|
|
5
|
+
/** GridModel to which this component should bind. */
|
|
6
|
+
gridModel?: GridModel;
|
|
7
|
+
/**
|
|
8
|
+
* True to count nested child records.
|
|
9
|
+
* If false (default) only root records will be included in count.
|
|
10
|
+
*/
|
|
11
|
+
includeChildren?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Control display of selection count after overall records count: auto (default) to display
|
|
14
|
+
* count when greater than 1, or always/never to show/hide regardless of current count.
|
|
15
|
+
*/
|
|
16
|
+
showSelectionCount?: 'always' | 'never' | 'auto';
|
|
17
|
+
/** Units label appropriate for records being counted (e.g. "user" will yield, e.g. "50 users"). */
|
|
18
|
+
unit?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Displays the number of records loaded into a grid's store + (configurable) selection count.
|
|
22
|
+
*
|
|
23
|
+
* Alternative to more general {@link StoreCountLabel}.
|
|
24
|
+
*/
|
|
25
|
+
export declare const GridCountLabel: import("react").FC<GridCountLabelProps>, gridCountLabel: import("@xh/hoist/core").ElementFactory<GridCountLabelProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ColumnGroup, GridModel } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { HoistModel, HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import type { AgColumnGroup, IHeaderGroupParams } from '@xh/hoist/kit/ag-grid';
|
|
4
|
+
export interface ColumnGroupHeaderProps extends HoistProps<ColumnGroupHeaderModel>, IHeaderGroupParams {
|
|
5
|
+
gridModel: GridModel;
|
|
6
|
+
xhColumnGroup: ColumnGroup;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A custom ag-Grid group header component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const columnGroupHeader: import("@xh/hoist/core").ElementFactory<ColumnGroupHeaderProps>;
|
|
14
|
+
declare class ColumnGroupHeaderModel extends HoistModel {
|
|
15
|
+
xhImpl: boolean;
|
|
16
|
+
isExpanded: boolean;
|
|
17
|
+
get isExpandable(): boolean;
|
|
18
|
+
get agColumnGroup(): AgColumnGroup;
|
|
19
|
+
constructor();
|
|
20
|
+
onLinked(): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
syncIsExpanded: () => boolean;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HoistModel, HoistProps } from '@xh/hoist/core';
|
|
3
|
+
import { Column, GridModel } from '@xh/hoist/cmp/grid';
|
|
4
|
+
import { GridSorter } from '../GridSorter';
|
|
5
|
+
import type { IHeaderParams, AgColumn } from '@xh/hoist/kit/ag-grid';
|
|
6
|
+
export interface ColumnHeaderProps extends HoistProps<ColumnHeaderModel>, IHeaderParams {
|
|
7
|
+
gridModel: GridModel;
|
|
8
|
+
xhColumn: Column;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A custom ag-Grid header component.
|
|
12
|
+
*
|
|
13
|
+
* Relays sorting events directly to the controlling GridModel. Supports absolute value sorting
|
|
14
|
+
* by checking `Column.absSort` to determine next sortBy and by rendering custom sort icons.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const columnHeader: import("@xh/hoist/core").ElementFactory<ColumnHeaderProps>;
|
|
19
|
+
declare class ColumnHeaderModel extends HoistModel {
|
|
20
|
+
xhImpl: boolean;
|
|
21
|
+
get gridModel(): GridModel;
|
|
22
|
+
get xhColumn(): Column;
|
|
23
|
+
get agColumn(): AgColumn;
|
|
24
|
+
get colId(): string;
|
|
25
|
+
get enableSorting(): boolean;
|
|
26
|
+
availableSorts: any;
|
|
27
|
+
enableFilter: any;
|
|
28
|
+
columnHeaderFilterModel: any;
|
|
29
|
+
isAgFiltered: boolean;
|
|
30
|
+
agFilterButtonRef: import("react").RefObject<HTMLElement> & ((instance: HTMLElement) => void);
|
|
31
|
+
private _doubleClick;
|
|
32
|
+
private _lastTouch;
|
|
33
|
+
private _lastTouchStart;
|
|
34
|
+
private _lastMouseDown;
|
|
35
|
+
constructor();
|
|
36
|
+
onLinked(): void;
|
|
37
|
+
destroy(): void;
|
|
38
|
+
get activeGridSorter(): GridSorter;
|
|
39
|
+
get hasNonPrimarySort(): boolean;
|
|
40
|
+
get isFiltered(): any;
|
|
41
|
+
onFilterChanged: () => void;
|
|
42
|
+
get rootsWithChildren(): number;
|
|
43
|
+
get majorityIsExpanded(): boolean;
|
|
44
|
+
onMouseDown: () => void;
|
|
45
|
+
onExpandOrCollapse: (e: any) => void;
|
|
46
|
+
onClick: (e: any) => void;
|
|
47
|
+
onDoubleClick: () => void;
|
|
48
|
+
onTouchStart: (e: any) => void;
|
|
49
|
+
onTouchEnd: (e: any) => void;
|
|
50
|
+
updateSort(shiftKey: any): void;
|
|
51
|
+
getNextSortBy(): any;
|
|
52
|
+
autosize(): void;
|
|
53
|
+
parseAvailableSorts(): GridSorter[];
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GridAutosizeOptions } from '@xh/hoist/cmp/grid/GridAutosizeOptions';
|
|
2
|
+
import { Filter, StoreRecord } from '@xh/hoist/data';
|
|
3
|
+
import { Column } from '../columns';
|
|
4
|
+
import { GridModel } from '../GridModel';
|
|
5
|
+
/**
|
|
6
|
+
* Calculates the column width required to display column. Used by GridAutoSizeService.
|
|
7
|
+
*
|
|
8
|
+
* Uses Canvas, off-screen DOM, and heuristics to estimate the actual size requirement
|
|
9
|
+
* for a set of records when rendered in a column.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class ColumnWidthCalculator {
|
|
14
|
+
/** Max number value to calculate size per column */
|
|
15
|
+
SIZE_CALC_SAMPLES: number;
|
|
16
|
+
private _canvasContext;
|
|
17
|
+
private _headerEl;
|
|
18
|
+
private _cellEl;
|
|
19
|
+
private _rowEl;
|
|
20
|
+
calcWidthAsync(gridModel: GridModel, records: StoreRecord[], colId: string, options: GridAutosizeOptions): Promise<any>;
|
|
21
|
+
calcHeaderWidth(gridModel: any, column: any, options: any): any;
|
|
22
|
+
calcDataWidthAsync(gridModel: any, records: any, column: any, options: any): Promise<number>;
|
|
23
|
+
calcLevelWidthAsync(gridModel: any, records: any, column: any, options: any, indentationPx?: number): Promise<number>;
|
|
24
|
+
getHeaderWidth(gridModel: any, column: any, includeHeaderIcons: any, bufferPx: any): any;
|
|
25
|
+
isColumnFiltered(filter: Filter, column: Column): boolean;
|
|
26
|
+
getHeaderHtml(gridModel: any, column: any): string;
|
|
27
|
+
resetHeaderClassNames(): void;
|
|
28
|
+
setHeaderClassNames(sizingMode: any, showSort: any, showMenu: any, headerClass: any): void;
|
|
29
|
+
getHeaderEl(): any;
|
|
30
|
+
getHeaderClass(gridModel: any, column: any): string;
|
|
31
|
+
getCellWidth(value: any, renderer: any): number;
|
|
32
|
+
resetClassNames(): void;
|
|
33
|
+
setClassNames(sizingMode: any, rowClass: any, cellClass: any): void;
|
|
34
|
+
getCellEl(): any;
|
|
35
|
+
getCellClass(gridModel: any, column: any, record: any, value: any): string;
|
|
36
|
+
getRowEl(): any;
|
|
37
|
+
getRowClass(gridModel: any, record: any): string;
|
|
38
|
+
getIndentation(depth: any): number;
|
|
39
|
+
getStringWidth(string: any): any;
|
|
40
|
+
getCanvasContext(): any;
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HoistModel, PersistenceProvider, PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { GridModel } from '../GridModel';
|
|
3
|
+
import { GridModelPersistOptions } from '../Types';
|
|
4
|
+
/**
|
|
5
|
+
* Model to manage persisting state from GridModel.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare class GridPersistenceModel extends HoistModel {
|
|
9
|
+
xhImpl: boolean;
|
|
10
|
+
VERSION: number;
|
|
11
|
+
gridModel: GridModel;
|
|
12
|
+
state: PlainObject;
|
|
13
|
+
provider: PersistenceProvider;
|
|
14
|
+
constructor(gridModel: GridModel, { persistColumns, persistGrouping, persistSort, ...persistWith }: GridModelPersistOptions);
|
|
15
|
+
clear(): void;
|
|
16
|
+
columnReaction(): {
|
|
17
|
+
track: () => (import("../Types").AutosizeState | import("../Types").ColumnState[])[];
|
|
18
|
+
run: ([columnState, autosizeState]: [any, any]) => void;
|
|
19
|
+
};
|
|
20
|
+
updateGridColumns(): void;
|
|
21
|
+
sortReaction(): {
|
|
22
|
+
track: () => import("..").GridSorter[];
|
|
23
|
+
run: (sortBy: any) => void;
|
|
24
|
+
};
|
|
25
|
+
updateGridSort(): void;
|
|
26
|
+
groupReaction(): {
|
|
27
|
+
track: () => string[];
|
|
28
|
+
run: (groupBy: any) => void;
|
|
29
|
+
};
|
|
30
|
+
updateGridGroupBy(): void;
|
|
31
|
+
patchState(updates: any): void;
|
|
32
|
+
loadState(): any;
|
|
33
|
+
legacyState(): any;
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GridModel } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { GridContextMenuSpec } from '../GridContextMenu';
|
|
3
|
+
import type { GetContextMenuItemsParams, MenuItemDef } from '@xh/hoist/kit/ag-grid';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function getAgGridMenuItems(params: GetContextMenuItemsParams, model: GridModel, spec: GridContextMenuSpec): Array<string | MenuItemDef>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GridModel } from '../GridModel';
|
|
2
|
+
import type { CellPosition, NavigateToNextCellParams } from '@xh/hoist/kit/ag-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Add support for row based navigation to GridModel.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RowKeyNavSupport {
|
|
7
|
+
gridModel: GridModel;
|
|
8
|
+
constructor(gridModel: GridModel);
|
|
9
|
+
navigateToNextCell(agParams: NavigateToNextCellParams): CellPosition;
|
|
10
|
+
findNextSelectable(index: any, isUp: any, agApi: any): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './enums/TreeStyle';
|
|
2
|
+
export * from './enums/GridAutosizeMode';
|
|
3
|
+
export * from './enums/ExcelFormat';
|
|
4
|
+
export * from './GridAutosizeOptions';
|
|
5
|
+
export * from './GridSorter';
|
|
6
|
+
export * from './GridContextMenu';
|
|
7
|
+
export * from './Types';
|
|
8
|
+
export * from './columns';
|
|
9
|
+
export * from './helpers/GridCountLabel';
|
|
10
|
+
export * from './renderers/MultiFieldRenderer';
|
|
11
|
+
export * from './renderers/TagsRenderer';
|
|
12
|
+
export * from './filter/GridFilterModel';
|
|
13
|
+
export * from './filter/GridFilterFieldSpec';
|
|
14
|
+
export * from './Grid';
|
|
15
|
+
export * from './GridModel';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ColumnRenderer } from '@xh/hoist/cmp/grid';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* A grid rendererFn that renders a collection of additional SubFields in a row beneath the main column field.
|
|
5
|
+
*
|
|
6
|
+
* Requires the column to also specify a multiFieldConfig in its `appData`.
|
|
7
|
+
*
|
|
8
|
+
* The configs `subFields` act as pointers to other columns that exist in the GridModel's columns collection
|
|
9
|
+
* (often hidden). They will be rendered using the same rendererFn, headerName and value as the column
|
|
10
|
+
* they refer to.
|
|
11
|
+
*/
|
|
12
|
+
export declare function multiFieldRenderer(value: any, context: any): ReactNode;
|
|
13
|
+
export interface MultiFieldConfig {
|
|
14
|
+
/** Array of SubField specifications to render. */
|
|
15
|
+
subFields: MultiFieldSubField[];
|
|
16
|
+
/** Renderer for primary field. */
|
|
17
|
+
mainRenderer?: ColumnRenderer;
|
|
18
|
+
/** string rendered between consecutive SubFields. */
|
|
19
|
+
delimiter?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface MultiFieldSubField {
|
|
22
|
+
colId: string;
|
|
23
|
+
/** True to include the Column's headerName as label, or string. */
|
|
24
|
+
label?: boolean | 'string';
|
|
25
|
+
/** Where to render the sub field. Default 'bottom'. */
|
|
26
|
+
position?: 'top' | 'bottom';
|
|
27
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HoistModel, PersistenceProvider, PersistOptions, PlainObject } from '@xh/hoist/core';
|
|
3
|
+
export interface GroupingChooserConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Dimensions available for selection. When using GroupingChooser to create Cube queries,
|
|
6
|
+
* it is recommended to pass the `dimensions` from the related cube (or a subset thereof).
|
|
7
|
+
* Note that {@link CubeField} meets the `DimensionSpec` interface.
|
|
8
|
+
*/
|
|
9
|
+
dimensions?: (DimensionSpec | string)[];
|
|
10
|
+
/** Initial value as an array of dimension names, or a function to produce such an array. */
|
|
11
|
+
initialValue?: string[] | (() => string[]);
|
|
12
|
+
/** Initial favorites as an array of dim name arrays, or a function to produce such an array. */
|
|
13
|
+
initialFavorites?: string[][] | (() => string[][]);
|
|
14
|
+
/** Options governing persistence. */
|
|
15
|
+
persistWith?: GroupingChooserPersistOptions;
|
|
16
|
+
/** True to accept an empty list as a valid value. */
|
|
17
|
+
allowEmpty?: boolean;
|
|
18
|
+
/** Maximum number of dimensions allowed in a single grouping. */
|
|
19
|
+
maxDepth?: number;
|
|
20
|
+
/**
|
|
21
|
+
* False (default) waits for the user to dismiss the popover before updating the
|
|
22
|
+
* external/observable value.
|
|
23
|
+
*/
|
|
24
|
+
commitOnChange?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Metadata for dimensions that are available for selection via a GroupingChooser control.
|
|
28
|
+
* Note that {@link CubeField} instances satisfy this interface.
|
|
29
|
+
*/
|
|
30
|
+
export interface DimensionSpec {
|
|
31
|
+
/** Shortname or code (almost always a `CubeField.name`). */
|
|
32
|
+
name: string;
|
|
33
|
+
/** User-friendly / longer name for display. */
|
|
34
|
+
displayName?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GroupingChooserPersistOptions extends PersistOptions {
|
|
37
|
+
/** True (default) to save value to state. */
|
|
38
|
+
persistValue?: boolean;
|
|
39
|
+
/** True (default) to include favorites. */
|
|
40
|
+
persistFavorites?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare class GroupingChooserModel extends HoistModel {
|
|
43
|
+
value: string[];
|
|
44
|
+
favorites: string[][];
|
|
45
|
+
dimensions: Record<string, DimensionSpec>;
|
|
46
|
+
dimensionNames: string[];
|
|
47
|
+
allowEmpty: boolean;
|
|
48
|
+
maxDepth: number;
|
|
49
|
+
commitOnChange: boolean;
|
|
50
|
+
provider: PersistenceProvider;
|
|
51
|
+
persistValue: boolean;
|
|
52
|
+
persistFavorites: boolean;
|
|
53
|
+
pendingValue: string[];
|
|
54
|
+
editorIsOpen: boolean;
|
|
55
|
+
favoritesIsOpen: boolean;
|
|
56
|
+
popoverRef: import("react").RefObject<HTMLElement> & ((instance: HTMLElement) => void);
|
|
57
|
+
get availableDims(): string[];
|
|
58
|
+
get isValid(): boolean;
|
|
59
|
+
get isAddEnabled(): boolean;
|
|
60
|
+
constructor({ dimensions, initialValue, initialFavorites, persistWith, allowEmpty, maxDepth, commitOnChange }: GroupingChooserConfig);
|
|
61
|
+
setValue(value: string[]): void;
|
|
62
|
+
toggleEditor(): void;
|
|
63
|
+
toggleFavoritesMenu(): void;
|
|
64
|
+
closePopover(): void;
|
|
65
|
+
addPendingDim(dimName: string): void;
|
|
66
|
+
replacePendingDimAtIdx(dimName: string, idx: number): void;
|
|
67
|
+
removePendingDimAtIdx(idx: number): void;
|
|
68
|
+
movePendingDimToIndex(dimName: string, toIdx: number): void;
|
|
69
|
+
commitPendingValueAndClose(): void;
|
|
70
|
+
validateValue(value: any): boolean;
|
|
71
|
+
normalizeDimensions(dims: Array<DimensionSpec | string>): Record<string, DimensionSpec>;
|
|
72
|
+
createDimension(src: DimensionSpec | string): {
|
|
73
|
+
/** Shortname or code (almost always a `CubeField.name`). */
|
|
74
|
+
name: string;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
getValueLabel(value: string[]): string;
|
|
78
|
+
getDimDisplayName(dimName: string): string;
|
|
79
|
+
onDragEnd(result: any): void;
|
|
80
|
+
get favoritesOptions(): {
|
|
81
|
+
value: string[];
|
|
82
|
+
label: string;
|
|
83
|
+
}[];
|
|
84
|
+
setFavorites(favorites: string[][]): void;
|
|
85
|
+
addFavorite(value: string[]): void;
|
|
86
|
+
removeFavorite(value: string[]): void;
|
|
87
|
+
isFavorite(value: string[]): string[];
|
|
88
|
+
get persistState(): PlainObject;
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GroupingChooserModel';
|