@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,159 @@
|
|
|
1
|
+
import { HoistBase, PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { CubeField, CubeFieldSpec } from './CubeField';
|
|
3
|
+
import { QueryConfig } from './Query';
|
|
4
|
+
import { View } from './View';
|
|
5
|
+
import { Store, StoreRecordIdSpec, StoreTransaction } from '../Store';
|
|
6
|
+
import { StoreRecord } from '../StoreRecord';
|
|
7
|
+
import { AggregateRow } from './row/AggregateRow';
|
|
8
|
+
import { BucketRow } from './row/BucketRow';
|
|
9
|
+
import { BaseRow } from './row/BaseRow';
|
|
10
|
+
import { BucketSpec } from './BucketSpec';
|
|
11
|
+
export interface CubeConfig {
|
|
12
|
+
fields: CubeField[] | CubeFieldSpec[];
|
|
13
|
+
/** Default configs applied to all `CubeField`s constructed internally by this Cube. */
|
|
14
|
+
fieldDefaults?: Partial<CubeFieldSpec>;
|
|
15
|
+
/** Array of initial raw data. */
|
|
16
|
+
data?: PlainObject[];
|
|
17
|
+
/** See {@link StoreConfig.idSpec} */
|
|
18
|
+
idSpec?: StoreRecordIdSpec;
|
|
19
|
+
/** See {@link StoreConfig.processRawData} */
|
|
20
|
+
processRawData?: (data: PlainObject) => PlainObject;
|
|
21
|
+
/** Convenience bucket for app-specific metadata associated with the loaded dataset. */
|
|
22
|
+
info?: PlainObject;
|
|
23
|
+
/**
|
|
24
|
+
* Optional function to be called for each aggregate node to determine if it should be "locked",
|
|
25
|
+
* preventing drill-down into its children.
|
|
26
|
+
*/
|
|
27
|
+
lockFn?: LockFn;
|
|
28
|
+
/**
|
|
29
|
+
* Optional function to be called for each dimension during row generation to determine if the
|
|
30
|
+
* children of that dimension should be bucketed into additional dynamic dimensions.
|
|
31
|
+
*/
|
|
32
|
+
bucketSpecFn?: BucketSpecFn;
|
|
33
|
+
/**
|
|
34
|
+
* Optional function to be called on all single child rows during view processing.
|
|
35
|
+
* Return true to omit the row.
|
|
36
|
+
*/
|
|
37
|
+
omitFn?: OmitFn;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A data store that supports grouping, aggregating, and filtering data on multiple dimensions.
|
|
41
|
+
*
|
|
42
|
+
* This object is a wrapper around a "flat" Store containing leaf-level facts. It supports creating
|
|
43
|
+
* Views on that data via structured Queries that can filter, group, and aggregate the flat source
|
|
44
|
+
* data and produce a hierarchical result ready for use in (e.g.) tree grids and maps. Views can
|
|
45
|
+
* be transiently created to run a Query once, on demand, or can be retained to provide efficient,
|
|
46
|
+
* auto-updating results in response to updates to the underlying data.
|
|
47
|
+
*/
|
|
48
|
+
export declare class Cube extends HoistBase {
|
|
49
|
+
static RECORD_ID_DELIMITER: string;
|
|
50
|
+
store: Store;
|
|
51
|
+
lockFn: LockFn;
|
|
52
|
+
bucketSpecFn: BucketSpecFn;
|
|
53
|
+
omitFn: OmitFn;
|
|
54
|
+
info: any;
|
|
55
|
+
_connectedViews: Set<View>;
|
|
56
|
+
constructor({ fields, fieldDefaults, data, idSpec, processRawData, info, lockFn, bucketSpecFn, omitFn }: CubeConfig);
|
|
57
|
+
/** Fields configured for this Cube. */
|
|
58
|
+
get fields(): CubeField[];
|
|
59
|
+
/** Dimension Fields configured for this Cube. */
|
|
60
|
+
get dimensions(): CubeField[];
|
|
61
|
+
/** Records loaded in to this Cube. */
|
|
62
|
+
get records(): StoreRecord[];
|
|
63
|
+
/** Count of currently connected, auto-updating Views. */
|
|
64
|
+
get connectedViewCount(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Query the cube.
|
|
67
|
+
*
|
|
68
|
+
* This method will return a snapshot of javascript objects representing the filtered
|
|
69
|
+
* and aggregated data in the query. In addition to the fields specified in Query, nodes will
|
|
70
|
+
* each contain a 'cubeLabel' and a 'cubeDimension' property.
|
|
71
|
+
*
|
|
72
|
+
* @param query - Config for query defining the shape of the view.
|
|
73
|
+
* @returns data containing the results of the query as a hierarchical set of rows.
|
|
74
|
+
*/
|
|
75
|
+
executeQuery(query: QueryConfig): any;
|
|
76
|
+
/**
|
|
77
|
+
* Create a View on this data.
|
|
78
|
+
*
|
|
79
|
+
* Creates a dynamic View of the cube data, based on a query. Useful for binding to grids a
|
|
80
|
+
* and efficiently displaying changing results in the Cube.
|
|
81
|
+
*
|
|
82
|
+
* Note: Applications should call {@link View.disconnect} or {@link View.destroy} on the View
|
|
83
|
+
* created by this method when appropriate to avoid unnecessary processing.
|
|
84
|
+
*
|
|
85
|
+
* @param query - query to be used to construct this view.
|
|
86
|
+
* @param stores - Stores to be loaded/reloaded with data from this view.
|
|
87
|
+
* To receive data only, use the 'results' property of the returned View instead.
|
|
88
|
+
* @param connect - true to update View automatically when data in
|
|
89
|
+
* the underlying cube is changed. Default false.
|
|
90
|
+
*/
|
|
91
|
+
createView({ query, stores, connect }: {
|
|
92
|
+
query: QueryConfig;
|
|
93
|
+
stores?: Store[] | Store;
|
|
94
|
+
connect?: boolean;
|
|
95
|
+
}): View;
|
|
96
|
+
/**
|
|
97
|
+
* True if the provided view is connected to this Cube for live updates.
|
|
98
|
+
*/
|
|
99
|
+
viewIsConnected(view: View): boolean;
|
|
100
|
+
/** @param view - view to disconnect from live updates. */
|
|
101
|
+
disconnectView(view: View): void;
|
|
102
|
+
/**
|
|
103
|
+
* Populate this cube with a new dataset.
|
|
104
|
+
*
|
|
105
|
+
* This method largely delegates to Store.loadData(). See that method for more
|
|
106
|
+
* information.
|
|
107
|
+
*
|
|
108
|
+
* Note that this method will update its views asynchronously, in order to avoid locking
|
|
109
|
+
* up the browser when attached to multiple expensive views.
|
|
110
|
+
*
|
|
111
|
+
* @param rawData - flat array of lowest/leaf level data rows.
|
|
112
|
+
* @param info - optional metadata to associate with this cube/dataset.
|
|
113
|
+
*/
|
|
114
|
+
loadDataAsync(rawData: PlainObject[], info?: PlainObject): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Update this cube with incremental data set changes and/or info.
|
|
117
|
+
* This method largely delegates to {@link Store.updateData} - see that method for more info.
|
|
118
|
+
*
|
|
119
|
+
* Note that this method will update its views asynchronously in order to avoid locking
|
|
120
|
+
* up the browser when attached to multiple expensive views.
|
|
121
|
+
*
|
|
122
|
+
* @param rawData - data changes to process. If provided as an array, rawData will be processed
|
|
123
|
+
* into adds and updates, with updates determined by matching existing records by ID.
|
|
124
|
+
* @param infoUpdates - new key-value pairs to be applied to existing info on this cube.
|
|
125
|
+
*/
|
|
126
|
+
updateDataAsync(rawData: PlainObject[] | StoreTransaction, infoUpdates?: PlainObject): Promise<void>;
|
|
127
|
+
/** Clear any/all data and info from this Cube. */
|
|
128
|
+
clearAsync(): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Populate the metadata associated with this cube.
|
|
131
|
+
* @param infoUpdates - new key-value pairs to be applied to existing info on this cube.
|
|
132
|
+
*/
|
|
133
|
+
updateInfo(infoUpdates?: PlainObject): void;
|
|
134
|
+
private setInfo;
|
|
135
|
+
private parseFields;
|
|
136
|
+
destroy(): void;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Function to be called for each node to aggregate to determine if it should be "locked",
|
|
140
|
+
* preventing drilldown into its children. If true returned for a node, no drilldown will be
|
|
141
|
+
* allowed, and the row will be marked with a boolean "locked" property.
|
|
142
|
+
*/
|
|
143
|
+
export type LockFn = (row: AggregateRow | BucketRow) => boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Function to be called for each node during row generation to determine if it should be
|
|
146
|
+
* skipped in tree output. Useful for removing aggregates that are degenerate due to context.
|
|
147
|
+
* Note that skipping in this way has no effect on aggregations -- all children of this node are
|
|
148
|
+
* simply promoted to their parent node.
|
|
149
|
+
*/
|
|
150
|
+
export type OmitFn = (row: AggregateRow | BucketRow) => boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Function to be called for each dimension to determine if children of said dimension should be
|
|
153
|
+
* bucketed into additional dynamic dimensions.
|
|
154
|
+
*
|
|
155
|
+
* @param rows - the rows being checked for bucketing
|
|
156
|
+
* @returns a BucketSpec for configuring the bucket to place child rows into, or null to perform
|
|
157
|
+
* no bucketing
|
|
158
|
+
*/
|
|
159
|
+
export type BucketSpecFn = (rows: BaseRow[]) => BucketSpec;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { Aggregator, AverageAggregator, AverageStrictAggregator, ChildCountAggregator, Field, FieldSpec, LeafCountAggregator, MaxAggregator, MinAggregator, NullAggregator, SingleAggregator, SumAggregator, SumStrictAggregator, UniqueAggregator } from '@xh/hoist/data';
|
|
3
|
+
export interface CubeFieldSpec extends FieldSpec {
|
|
4
|
+
/** True to allow this field to be used for grouping.*/
|
|
5
|
+
isDimension?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Instance of a Hoist Cube Aggregator (from the aggregate package), or string alias for the
|
|
8
|
+
* same (e.g. 'MAX').
|
|
9
|
+
*/
|
|
10
|
+
aggregator?: Aggregator | 'AVG' | 'AVG_STRICT' | 'CHILD_COUNT' | 'LEAF_COUNT' | 'MAX' | 'MIN' | 'NULL' | 'SINGLE' | 'SUM' | 'SUM_STRICT' | 'UNIQUE';
|
|
11
|
+
/** Function to determine if aggregation should be performed at a given level of a query result. */
|
|
12
|
+
canAggregateFn?: CanAggregateFn;
|
|
13
|
+
/** True if any further groupings below this dimension would be derivative (have only one member). */
|
|
14
|
+
isLeafDimension?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Name of field that is a 'parent' dimension of this dimension. This marks this dimension as a
|
|
17
|
+
* sub-dimension of the parent dimension (e.g. 'asset group' and 'asset'). This allows the view
|
|
18
|
+
* to skip creating derivative nodes when a parent node has a single identical child node.
|
|
19
|
+
*/
|
|
20
|
+
parentDimension?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param dimension - dimension of aggregation
|
|
24
|
+
* @param value - value of record on dimension
|
|
25
|
+
* @param appliedDims - *all* applied dimension values for this record
|
|
26
|
+
*/
|
|
27
|
+
export type CanAggregateFn = (dimension: string, value: any, appliedDims: PlainObject) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Metadata used to define a measure or dimension in Cube. For properties present on raw data source
|
|
30
|
+
* objects to be included in a Cube, the Cube must be configured with a matching Field that tells
|
|
31
|
+
* it to extract the data from the source objects and how to aggregate or filter on that data.
|
|
32
|
+
*/
|
|
33
|
+
export declare class CubeField extends Field {
|
|
34
|
+
aggregator: Aggregator;
|
|
35
|
+
canAggregateFn: CanAggregateFn;
|
|
36
|
+
isDimension: boolean;
|
|
37
|
+
isLeafDimension: boolean;
|
|
38
|
+
parentDimension: string;
|
|
39
|
+
static averageAggregator: AverageAggregator;
|
|
40
|
+
static averageStrictAggregator: AverageStrictAggregator;
|
|
41
|
+
static childCountAggregator: ChildCountAggregator;
|
|
42
|
+
static leafCountAggregator: LeafCountAggregator;
|
|
43
|
+
static maxAggregator: MaxAggregator;
|
|
44
|
+
static minAggregator: MinAggregator;
|
|
45
|
+
static nullAggregator: NullAggregator;
|
|
46
|
+
static singleAggregator: SingleAggregator;
|
|
47
|
+
static sumAggregator: SumAggregator;
|
|
48
|
+
static sumStrictAggregator: SumStrictAggregator;
|
|
49
|
+
static uniqueAggregator: UniqueAggregator;
|
|
50
|
+
constructor({ isDimension, aggregator, canAggregateFn, isLeafDimension, parentDimension, ...fieldArgs }: CubeFieldSpec);
|
|
51
|
+
private parseAggregator;
|
|
52
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Filter, StoreRecord } from '@xh/hoist/data';
|
|
2
|
+
import { FilterLike } from '../filter/Types';
|
|
3
|
+
import { CubeField } from './CubeField';
|
|
4
|
+
import { Cube } from './Cube';
|
|
5
|
+
/**
|
|
6
|
+
* Queries determine what data is extracted from a cube and how it should be grouped + aggregated.
|
|
7
|
+
*
|
|
8
|
+
* Note that if no dimensions are provided, 'includeRoot' or 'includeLeaves' should be true -
|
|
9
|
+
* otherwise no data will be returned!
|
|
10
|
+
*/
|
|
11
|
+
export interface QueryConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Associated Cube. Required, but note that `Cube.executeQuery()` will install a reference to
|
|
14
|
+
* itself on the query config (automatically)
|
|
15
|
+
*/
|
|
16
|
+
cube?: Cube;
|
|
17
|
+
/**
|
|
18
|
+
* Fields or field names. If unspecified will include all available fields
|
|
19
|
+
* from the source Cube, otherwise supply a subset to optimize aggregation performance.
|
|
20
|
+
*/
|
|
21
|
+
fields?: string[] | CubeField[];
|
|
22
|
+
/**
|
|
23
|
+
* Fields or field names to group on. Any fields provided must also be in fields config, above. If none
|
|
24
|
+
* given the resulting data will not be grouped.
|
|
25
|
+
*/
|
|
26
|
+
dimensions?: string[] | CubeField[];
|
|
27
|
+
/**
|
|
28
|
+
* One or more filters or configs to create one. If an array, a single 'AND' filter will
|
|
29
|
+
* be created.
|
|
30
|
+
*/
|
|
31
|
+
filter?: FilterLike;
|
|
32
|
+
/**
|
|
33
|
+
* IncludeRoot?: True to include a synthetic root node in the return with grand total
|
|
34
|
+
* aggregate values.
|
|
35
|
+
*/
|
|
36
|
+
includeRoot?: boolean;
|
|
37
|
+
/** True to include leaf nodes in return.*/
|
|
38
|
+
includeLeaves?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** {@inheritDoc QueryConfig} */
|
|
41
|
+
export declare class Query {
|
|
42
|
+
readonly fields: CubeField[];
|
|
43
|
+
readonly dimensions: CubeField[];
|
|
44
|
+
readonly filter: Filter;
|
|
45
|
+
readonly includeRoot: boolean;
|
|
46
|
+
readonly includeLeaves: boolean;
|
|
47
|
+
readonly cube: Cube;
|
|
48
|
+
private readonly _testFn;
|
|
49
|
+
constructor({ cube, fields, dimensions, filter, includeRoot, includeLeaves }: QueryConfig);
|
|
50
|
+
clone(overrides: Partial<QueryConfig>): Query;
|
|
51
|
+
test(record: StoreRecord): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* True if the provided other Query is equivalent to this instance.
|
|
54
|
+
*/
|
|
55
|
+
equals(other: Query): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* True if the provided other Query is equivalent to this instance,
|
|
58
|
+
* not considering the filter.
|
|
59
|
+
*/
|
|
60
|
+
equalsExcludingFilter(other: Query): boolean;
|
|
61
|
+
private parseFields;
|
|
62
|
+
private parseDimensions;
|
|
63
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { HoistBase, PlainObject, Some } from '@xh/hoist/core';
|
|
2
|
+
import { Cube, CubeField, Filter, FilterLike, Query, QueryConfig, Store, StoreRecordId } from '@xh/hoist/data';
|
|
3
|
+
import { AggregationContext } from './aggregate/AggregationContext';
|
|
4
|
+
import { LeafRow } from './row/LeafRow';
|
|
5
|
+
export interface ViewConfig {
|
|
6
|
+
/** Query to be used to construct this view. */
|
|
7
|
+
query: Query;
|
|
8
|
+
/**
|
|
9
|
+
* Store(s) to be automatically (re)loaded with data from this view. Optional - read the View's
|
|
10
|
+
* observable `result` property directly to use without a Store.
|
|
11
|
+
*/
|
|
12
|
+
stores?: Store[] | Store;
|
|
13
|
+
/**
|
|
14
|
+
* True to reactively update the View's `result` and any connected store(s) when data in the
|
|
15
|
+
* underlying Cube is changed. False (default) to have this view run its query once to capture
|
|
16
|
+
* a snapshot without further updates based on Cube changes.
|
|
17
|
+
*/
|
|
18
|
+
connect?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DimensionValue {
|
|
21
|
+
/** Dimension field. */
|
|
22
|
+
field: CubeField;
|
|
23
|
+
/** Unique non-null values for the dimension */
|
|
24
|
+
values: Set<any>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Primary interface for consuming grouped and aggregated data from the cube.
|
|
28
|
+
* Applications should create via the {@link Cube.createView} factory.
|
|
29
|
+
*/
|
|
30
|
+
export declare class View extends HoistBase {
|
|
31
|
+
get isView(): boolean;
|
|
32
|
+
/** Query defining this View. Update via `updateQuery()`. */
|
|
33
|
+
query: Query;
|
|
34
|
+
/**
|
|
35
|
+
* Results of this view, an observable object with a `rows` property
|
|
36
|
+
* containing an array of hierarchical data objects.
|
|
37
|
+
*/
|
|
38
|
+
result: {
|
|
39
|
+
rows: PlainObject[];
|
|
40
|
+
leafMap: Map<StoreRecordId, LeafRow>;
|
|
41
|
+
};
|
|
42
|
+
/** Stores to which results of this view should be (re)loaded. */
|
|
43
|
+
stores: Store[];
|
|
44
|
+
/** Cube info associated with this View when last updated. */
|
|
45
|
+
info: PlainObject;
|
|
46
|
+
/** timestamp (ms) of the last time this view's data was changed. */
|
|
47
|
+
lastUpdated: number;
|
|
48
|
+
private _rows;
|
|
49
|
+
private _rowCache;
|
|
50
|
+
private _leafMap;
|
|
51
|
+
private _recordMap;
|
|
52
|
+
_aggContext: AggregationContext;
|
|
53
|
+
/** @internal - applications should use {@link Cube.createView} */
|
|
54
|
+
constructor(config: ViewConfig);
|
|
55
|
+
get cube(): Cube;
|
|
56
|
+
get fields(): CubeField[];
|
|
57
|
+
get fieldNames(): string[];
|
|
58
|
+
get filter(): Filter;
|
|
59
|
+
get isConnected(): boolean;
|
|
60
|
+
get isFiltered(): boolean;
|
|
61
|
+
/** Stop receiving live updates into this view when the linked Cube data changes. */
|
|
62
|
+
disconnect(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Change the query in some way, re-computing the data in this View to reflect the new query.
|
|
65
|
+
*
|
|
66
|
+
* @param overrides - changes to be applied to the query. May include any arguments to the query
|
|
67
|
+
* constructor except `cube`, which cannot be changed on a view once set
|
|
68
|
+
* via the initial query.
|
|
69
|
+
*/
|
|
70
|
+
updateQuery(overrides: Partial<QueryConfig>): void;
|
|
71
|
+
/**
|
|
72
|
+
* Gathers all unique values for each dimension field in the query
|
|
73
|
+
*/
|
|
74
|
+
getDimensionValues(): DimensionValue[];
|
|
75
|
+
/** Get a specific Field by name.*/
|
|
76
|
+
getField(name: string): CubeField;
|
|
77
|
+
/** Set stores to be loaded/reloaded with data from this view. */
|
|
78
|
+
setStores(stores: Some<Store>): void;
|
|
79
|
+
/** Update the filter on the current Query.*/
|
|
80
|
+
setFilter(filter: FilterLike): void;
|
|
81
|
+
noteCubeLoaded(): void;
|
|
82
|
+
noteCubeUpdated(changeLog: PlainObject): void;
|
|
83
|
+
private fullUpdate;
|
|
84
|
+
private dataOnlyUpdate;
|
|
85
|
+
private loadStores;
|
|
86
|
+
private updateResults;
|
|
87
|
+
private generateRows;
|
|
88
|
+
private groupAndInsertRecords;
|
|
89
|
+
private bucketRows;
|
|
90
|
+
private getSimpleUpdates;
|
|
91
|
+
private hasDimUpdates;
|
|
92
|
+
private cachedRow;
|
|
93
|
+
private filterRecords;
|
|
94
|
+
private createAggregationContext;
|
|
95
|
+
private get aggregatorsAreSimple();
|
|
96
|
+
destroy(): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoreRecord } from '../../StoreRecord';
|
|
2
|
+
import { View } from '../View';
|
|
3
|
+
/**
|
|
4
|
+
* Context provided to aggregators.
|
|
5
|
+
*
|
|
6
|
+
* This context will remain over the lifetime of an aggregation update of a view, and can therefore
|
|
7
|
+
* be used by aggregators to accumulate or cache values needed for the current set of records.
|
|
8
|
+
* It will be replaced if the current set of records is being changed in any way.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AggregationContext {
|
|
11
|
+
/** View being aggregated. */
|
|
12
|
+
view: View;
|
|
13
|
+
/** All records currently meeting the filter for this view.*/
|
|
14
|
+
filteredRecords: StoreRecord[];
|
|
15
|
+
/**
|
|
16
|
+
* Custom aggregators may use to store pre-computed values. Custom aggregators should
|
|
17
|
+
* take care to appropriately namespace any data stored within this object.
|
|
18
|
+
*/
|
|
19
|
+
appData: any;
|
|
20
|
+
constructor(view: View, filteredRecords: StoreRecord[]);
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AggregationContext } from './AggregationContext';
|
|
2
|
+
import { BaseRow } from '../row/BaseRow';
|
|
3
|
+
import { LeafRow } from '../row/LeafRow';
|
|
4
|
+
import { RowUpdate } from '../row/RowUpdate';
|
|
5
|
+
export declare abstract class Aggregator {
|
|
6
|
+
/**
|
|
7
|
+
* Does this aggregator depend only on leaf nodes contained by the node being aggregated?
|
|
8
|
+
*
|
|
9
|
+
* By default this property returns true, indicating to the cube that if all children of a
|
|
10
|
+
* given node are the same, the node does not need to be re-aggregated. Aggregators that
|
|
11
|
+
* depend on global values (e.g. % of total) should return false for this value.
|
|
12
|
+
*/
|
|
13
|
+
get dependsOnChildrenOnly(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Aggregate values
|
|
16
|
+
* @param rows - current rows in aggregation. Will never be empty.
|
|
17
|
+
* @param fieldName - name of field to perform the aggregation on.
|
|
18
|
+
* @param context - current aggregation context
|
|
19
|
+
*/
|
|
20
|
+
abstract aggregate(rows: BaseRow[], fieldName: string, context: AggregationContext): any;
|
|
21
|
+
/**
|
|
22
|
+
* Adjust an aggregated value, by replacing one of its constituent components.
|
|
23
|
+
*
|
|
24
|
+
* @param rows - current rows in aggregation. Will never be empty.
|
|
25
|
+
* @param currVal - current value of aggregation
|
|
26
|
+
* @param update - update that occurred to child of this aggregation.
|
|
27
|
+
* Sub-classes may use this method to provide efficient implementations for dynamic changes
|
|
28
|
+
* to an aggregation. The default implementation will simply re-aggregate.
|
|
29
|
+
* @param context - current aggregation context
|
|
30
|
+
* @returns new aggregate value
|
|
31
|
+
*/
|
|
32
|
+
replace(rows: BaseRow[], currVal: any, update: RowUpdate, context: AggregationContext): any;
|
|
33
|
+
/**
|
|
34
|
+
* Call function on all *leaf* children of a set of children.
|
|
35
|
+
*
|
|
36
|
+
* @param rows - array of child rows
|
|
37
|
+
* @param fn - the function to call on each leaf.
|
|
38
|
+
*/
|
|
39
|
+
protected forEachLeaf(rows: BaseRow[], fn: (leaf: LeafRow) => boolean | void): boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { CubeField } from '../CubeField';
|
|
3
|
+
import { View } from '../View';
|
|
4
|
+
import { BaseRow } from './BaseRow';
|
|
5
|
+
/**
|
|
6
|
+
* Object used by views to gather Aggregate rows.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AggregateRow extends BaseRow {
|
|
9
|
+
get isAggregate(): boolean;
|
|
10
|
+
readonly dim: CubeField;
|
|
11
|
+
readonly dimName: string;
|
|
12
|
+
constructor(view: View, id: string, children: BaseRow[], dim: CubeField, val: any, strVal: string, appliedDimensions: PlainObject);
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PlainObject, Some } from '@xh/hoist/core';
|
|
2
|
+
import { BucketSpec } from '@xh/hoist/data/cube/BucketSpec';
|
|
3
|
+
import { View } from '../View';
|
|
4
|
+
import { RowUpdate } from './RowUpdate';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for a view row.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class BaseRow {
|
|
9
|
+
readonly view: View;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly data: PlainObject;
|
|
12
|
+
parent: BaseRow;
|
|
13
|
+
children: BaseRow[];
|
|
14
|
+
locked: boolean;
|
|
15
|
+
canAggregate: PlainObject;
|
|
16
|
+
get isLeaf(): boolean;
|
|
17
|
+
get isAggregate(): boolean;
|
|
18
|
+
get isBucket(): boolean;
|
|
19
|
+
constructor(view: View, id: string);
|
|
20
|
+
noteBucketed(bucketSpec: BucketSpec, bucketVal: any): void;
|
|
21
|
+
getVisibleDatas(): Some<PlainObject>;
|
|
22
|
+
private getVisibleChildrenDatas;
|
|
23
|
+
private isRedundantChild;
|
|
24
|
+
protected initAggregate(children: BaseRow[], dimOrBucketName: string, val: any, appliedDimensions: PlainObject): void;
|
|
25
|
+
applyDataUpdate(childUpdates: RowUpdate[], updatedRowDatas: Set<PlainObject>): void;
|
|
26
|
+
protected computeAggregates(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { BaseRow } from './BaseRow';
|
|
3
|
+
import { BucketSpec } from '../BucketSpec';
|
|
4
|
+
import { View } from '../View';
|
|
5
|
+
/**
|
|
6
|
+
* Object used by views to gather bucket rows.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BucketRow extends BaseRow {
|
|
9
|
+
get isBucket(): boolean;
|
|
10
|
+
readonly bucketSpec: BucketSpec;
|
|
11
|
+
constructor(view: View, id: string, children: BaseRow[], bucketVal: any, bucketSpec: BucketSpec, appliedDimensions: PlainObject);
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlainObject } from '@xh/hoist/core';
|
|
2
|
+
import { StoreRecord } from '../../StoreRecord';
|
|
3
|
+
import { View } from '../View';
|
|
4
|
+
import { BaseRow } from './BaseRow';
|
|
5
|
+
/**
|
|
6
|
+
* Object used to track leaf rows in a View
|
|
7
|
+
*/
|
|
8
|
+
export declare class LeafRow extends BaseRow {
|
|
9
|
+
get isLeaf(): boolean;
|
|
10
|
+
constructor(view: View, id: string, rawRecord: StoreRecord);
|
|
11
|
+
applyLeafDataUpdate(newRec: StoreRecord, updatedRowDatas: Set<PlainObject>): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { HoistBase } from '@xh/hoist/core';
|
|
2
|
+
import { Field, Store, FieldType, View } from '@xh/hoist/data';
|
|
3
|
+
import { FieldFilterOperator } from './Types';
|
|
4
|
+
export interface BaseFilterFieldSpecConfig {
|
|
5
|
+
/** Identifying field name to filter on. */
|
|
6
|
+
field: string;
|
|
7
|
+
/** Type of field, will default from related field on source if provided, or 'auto'. */
|
|
8
|
+
fieldType?: FieldType;
|
|
9
|
+
/** DisplayName, will default from related field on source if provided */
|
|
10
|
+
displayName?: string;
|
|
11
|
+
/** Operators available for filtering, will default to a supported set based on type.*/
|
|
12
|
+
ops?: FieldFilterOperator[];
|
|
13
|
+
/** Used to source matching data `Field` and extract values if configured. */
|
|
14
|
+
source?: Store | View;
|
|
15
|
+
/**
|
|
16
|
+
* True to provide interfaces and auto-complete options
|
|
17
|
+
* with enumerated matches for creating '=' or '!=' filters. Defaults to true for
|
|
18
|
+
* enumerable fieldTypes. Always true if 'values' provided or if fieldType is BOOL.
|
|
19
|
+
*/
|
|
20
|
+
enableValues?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* True to require value entered to be an available value for '=' and '!=' operators.
|
|
23
|
+
* Defaults to false.
|
|
24
|
+
*/
|
|
25
|
+
forceSelection?: boolean;
|
|
26
|
+
/** Explicit list of available values for this field. */
|
|
27
|
+
values?: any[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Defines field-level filtering options and provides metadata for presenting these options in
|
|
31
|
+
* UI affordances such as FilterChooser to Grid Column Filters.
|
|
32
|
+
*
|
|
33
|
+
* @see FilterChooserFieldSpec
|
|
34
|
+
* @see GridFilterFieldSpec
|
|
35
|
+
*/
|
|
36
|
+
export declare abstract class BaseFilterFieldSpec extends HoistBase {
|
|
37
|
+
field: string;
|
|
38
|
+
fieldType: FieldType;
|
|
39
|
+
displayName: string;
|
|
40
|
+
ops: FieldFilterOperator[];
|
|
41
|
+
source: Store | View;
|
|
42
|
+
enableValues: boolean;
|
|
43
|
+
forceSelection: boolean;
|
|
44
|
+
values: any[];
|
|
45
|
+
hasExplicitValues: boolean;
|
|
46
|
+
constructor({ field, fieldType, displayName, ops, source, enableValues, forceSelection, values }: BaseFilterFieldSpecConfig);
|
|
47
|
+
/** Full Field derived from source. */
|
|
48
|
+
get sourceField(): Field;
|
|
49
|
+
/**
|
|
50
|
+
* Determines operations supported by this field.
|
|
51
|
+
*
|
|
52
|
+
* Type 'range' indicates the field should use mathematical / logical operations:
|
|
53
|
+
* `(>, >=, <, <=, =, !=)`.
|
|
54
|
+
*
|
|
55
|
+
* Type 'value' indicates the field should use equality operators:
|
|
56
|
+
* `(=, !=, like, not like, begins, ends)`
|
|
57
|
+
* against a suggested exact value or user-provided input.
|
|
58
|
+
*/
|
|
59
|
+
get filterType(): 'range' | 'value' | 'collection';
|
|
60
|
+
get isRangeType(): boolean;
|
|
61
|
+
get isValueType(): boolean;
|
|
62
|
+
get isCollectionType(): boolean;
|
|
63
|
+
get isDateBasedFieldType(): boolean;
|
|
64
|
+
get isNumericFieldType(): boolean;
|
|
65
|
+
get isBoolFieldType(): boolean;
|
|
66
|
+
loadValues(): void;
|
|
67
|
+
supportsOperator(op: FieldFilterOperator): boolean;
|
|
68
|
+
supportsSuggestions(op: FieldFilterOperator): boolean;
|
|
69
|
+
abstract loadValuesFromSource(): any;
|
|
70
|
+
private parseOperators;
|
|
71
|
+
private getDefaultOperators;
|
|
72
|
+
private get isEnumerableByDefault();
|
|
73
|
+
}
|