@xh/hoist 82.0.1 → 82.0.3
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 +14 -0
- package/build/types/admin/AdminUtils.d.ts +11 -0
- package/build/types/admin/AppComponent.d.ts +3 -0
- package/build/types/admin/AppModel.d.ts +19 -0
- package/build/types/admin/columns/Clients.d.ts +8 -0
- package/build/types/admin/columns/Core.d.ts +9 -0
- package/build/types/admin/columns/Rest.d.ts +6 -0
- package/build/types/admin/columns/Tracking.d.ts +32 -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 +6 -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 +52 -0
- package/build/types/admin/jsonsearch/JsonSearch.d.ts +17 -0
- package/build/types/admin/jsonsearch/impl/JsonSearchImplModel.d.ts +32 -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/BaseAdminTabModel.d.ts +5 -0
- package/build/types/admin/tabs/activity/aggregators/RangeAggregator.d.ts +8 -0
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingModel.d.ts +62 -0
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingPanel.d.ts +3 -0
- package/build/types/admin/tabs/activity/tracking/chart/AggChartModel.d.ts +34 -0
- package/build/types/admin/tabs/activity/tracking/chart/AggChartPanel.d.ts +2 -0
- package/build/types/admin/tabs/activity/tracking/datafields/DataFieldsEditor.d.ts +2 -0
- package/build/types/admin/tabs/activity/tracking/datafields/DataFieldsEditorModel.d.ts +46 -0
- package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailModel.d.ts +41 -0
- package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailView.d.ts +2 -0
- package/build/types/admin/tabs/clients/ClientsModel.d.ts +19 -0
- package/build/types/admin/tabs/clients/ClientsPanel.d.ts +2 -0
- package/build/types/admin/tabs/clients/activity/ClientDetailModel.d.ts +21 -0
- package/build/types/admin/tabs/clients/activity/ClientDetailPanel.d.ts +3 -0
- package/build/types/admin/tabs/cluster/index.d.ts +3 -0
- package/build/types/admin/tabs/cluster/instances/BaseInstanceModel.d.ts +9 -0
- package/build/types/admin/tabs/cluster/instances/InstancesTab.d.ts +4 -0
- package/build/types/admin/tabs/cluster/instances/InstancesTabModel.d.ts +27 -0
- package/build/types/admin/tabs/cluster/instances/connpool/ConnPoolMonitorModel.d.ts +15 -0
- package/build/types/admin/tabs/cluster/instances/connpool/ConnPoolMonitorPanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/instances/environment/ServerEnvModel.d.ts +12 -0
- package/build/types/admin/tabs/cluster/instances/environment/ServerEnvPanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/instances/logs/LogDisplay.d.ts +6 -0
- package/build/types/admin/tabs/cluster/instances/logs/LogDisplayModel.d.ts +34 -0
- package/build/types/admin/tabs/cluster/instances/logs/LogViewer.d.ts +3 -0
- package/build/types/admin/tabs/cluster/instances/logs/LogViewerModel.d.ts +24 -0
- package/build/types/admin/tabs/cluster/instances/logs/levels/LogLevelDialog.d.ts +2 -0
- package/build/types/admin/tabs/cluster/instances/logs/levels/LogLevelDialogModel.d.ts +13 -0
- package/build/types/admin/tabs/cluster/instances/memory/MemoryMonitorModel.d.ts +34 -0
- package/build/types/admin/tabs/cluster/instances/memory/MemoryMonitorPanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/instances/services/DetailsModel.d.ts +11 -0
- package/build/types/admin/tabs/cluster/instances/services/DetailsPanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/instances/services/ServiceModel.d.ts +16 -0
- package/build/types/admin/tabs/cluster/instances/services/ServicePanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/metrics/MetricsModel.d.ts +22 -0
- package/build/types/admin/tabs/cluster/metrics/MetricsPanel.d.ts +2 -0
- package/build/types/admin/tabs/cluster/objects/ClusterObjectsModel.d.ts +29 -0
- package/build/types/admin/tabs/cluster/objects/ClusterObjectsPanel.d.ts +3 -0
- package/build/types/admin/tabs/cluster/objects/DetailModel.d.ts +17 -0
- package/build/types/admin/tabs/cluster/objects/DetailPanel.d.ts +3 -0
- package/build/types/admin/tabs/general/about/AboutPanel.d.ts +2 -0
- package/build/types/admin/tabs/general/alertBanner/AlertBannerModel.d.ts +25 -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 +20 -0
- package/build/types/admin/tabs/general/index.d.ts +3 -0
- package/build/types/admin/tabs/monitor/MonitorColumns.d.ts +7 -0
- package/build/types/admin/tabs/monitor/MonitorTab.d.ts +3 -0
- package/build/types/admin/tabs/monitor/MonitorTabModel.d.ts +29 -0
- package/build/types/admin/tabs/monitor/Tile.d.ts +2 -0
- package/build/types/admin/tabs/monitor/Types.d.ts +25 -0
- package/build/types/admin/tabs/monitor/editor/MonitorEditorDialog.d.ts +2 -0
- package/build/types/admin/tabs/userData/index.d.ts +4 -0
- package/build/types/admin/tabs/userData/jsonblob/JsonBlobColumns.d.ts +8 -0
- package/build/types/admin/tabs/userData/jsonblob/JsonBlobModel.d.ts +14 -0
- package/build/types/admin/tabs/userData/jsonblob/JsonBlobPanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/prefs/UserPreferenceModel.d.ts +8 -0
- package/build/types/admin/tabs/userData/prefs/UserPreferencePanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/prefs/editor/PrefEditorDialog.d.ts +2 -0
- package/build/types/admin/tabs/userData/prefs/editor/PrefEditorModel.d.ts +16 -0
- package/build/types/admin/tabs/userData/roles/RoleModel.d.ts +44 -0
- package/build/types/admin/tabs/userData/roles/RolePanel.d.ts +2 -0
- package/build/types/admin/tabs/userData/roles/Types.d.ts +43 -0
- package/build/types/admin/tabs/userData/roles/details/RoleDetails.d.ts +3 -0
- package/build/types/admin/tabs/userData/roles/details/RoleDetailsModel.d.ts +15 -0
- package/build/types/admin/tabs/userData/roles/details/members/BaseMembersModel.d.ts +25 -0
- package/build/types/admin/tabs/userData/roles/details/members/DirectoryMembers.d.ts +13 -0
- package/build/types/admin/tabs/userData/roles/details/members/RoleMembers.d.ts +16 -0
- package/build/types/admin/tabs/userData/roles/details/members/UserMembers.d.ts +15 -0
- package/build/types/admin/tabs/userData/roles/editor/RoleEditor.d.ts +3 -0
- package/build/types/admin/tabs/userData/roles/editor/RoleEditorModel.d.ts +23 -0
- package/build/types/admin/tabs/userData/roles/editor/form/RoleForm.d.ts +3 -0
- package/build/types/admin/tabs/userData/roles/editor/form/RoleFormModel.d.ts +38 -0
- package/build/types/admin/tabs/userData/roles/graph/RoleGraph.d.ts +3 -0
- package/build/types/admin/tabs/userData/roles/graph/RoleGraphModel.d.ts +24 -0
- package/build/types/admin/tabs/userData/roles/recategorize/RecategorizeDialog.d.ts +2 -0
- package/build/types/admin/tabs/userData/roles/recategorize/RecategorizeDialogModel.d.ts +31 -0
- package/build/types/admin/tabs/userData/roles/warning/WarningBanner.d.ts +7 -0
- package/build/types/admin/tabs/userData/users/UserModel.d.ts +12 -0
- package/build/types/admin/tabs/userData/users/UserPanel.d.ts +2 -0
- package/build/types/appcontainer/AboutDialogModel.d.ts +14 -0
- package/build/types/appcontainer/AppContainerModel.d.ts +93 -0
- package/build/types/appcontainer/AppOption.d.ts +23 -0
- package/build/types/appcontainer/AppStateModel.d.ts +28 -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/ExceptionDialogModel.d.ts +30 -0
- package/build/types/appcontainer/FeedbackDialogModel.d.ts +21 -0
- package/build/types/appcontainer/ImpersonationBarModel.d.ts +22 -0
- package/build/types/appcontainer/MessageModel.d.ts +37 -0
- package/build/types/appcontainer/MessageSourceModel.d.ts +17 -0
- package/build/types/appcontainer/OptionsDialogModel.d.ts +25 -0
- package/build/types/appcontainer/PageStateModel.d.ts +16 -0
- package/build/types/appcontainer/RouterModel.d.ts +41 -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/UserAgentModel.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 +30 -0
- package/build/types/cmp/ag-grid/AgGridModel.d.ts +180 -0
- package/build/types/cmp/ag-grid/index.d.ts +2 -0
- package/build/types/cmp/badge/Badge.d.ts +12 -0
- package/build/types/cmp/badge/index.d.ts +1 -0
- package/build/types/cmp/card/Card.d.ts +23 -0
- package/build/types/cmp/card/CardModel.d.ts +29 -0
- package/build/types/cmp/card/index.d.ts +1 -0
- package/build/types/cmp/chart/Chart.d.ts +17 -0
- package/build/types/cmp/chart/ChartModel.d.ts +55 -0
- package/build/types/cmp/chart/Types.d.ts +20 -0
- package/build/types/cmp/chart/impl/ChartContextMenuItems.d.ts +4 -0
- package/build/types/cmp/chart/impl/copyToClipboard.d.ts +5 -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 +25 -0
- package/build/types/cmp/clock/index.d.ts +1 -0
- package/build/types/cmp/dataview/DataView.d.ts +21 -0
- package/build/types/cmp/dataview/DataViewModel.d.ts +117 -0
- package/build/types/cmp/dataview/index.d.ts +2 -0
- package/build/types/cmp/error/ErrorBoundary.d.ts +12 -0
- package/build/types/cmp/error/ErrorBoundaryModel.d.ts +43 -0
- package/build/types/cmp/error/ErrorMessage.d.ts +42 -0
- package/build/types/cmp/error/index.d.ts +3 -0
- package/build/types/cmp/filter/FilterChooserFieldSpec.d.ts +39 -0
- package/build/types/cmp/filter/FilterChooserModel.d.ts +147 -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 +41 -0
- package/build/types/cmp/form/FormModel.d.ts +130 -0
- package/build/types/cmp/form/field/BaseFieldModel.d.ts +159 -0
- package/build/types/cmp/form/field/FieldModel.d.ts +11 -0
- package/build/types/cmp/form/field/SubformsFieldModel.d.ts +70 -0
- package/build/types/cmp/form/formfieldset/FormFieldSet.d.ts +17 -0
- package/build/types/cmp/form/formfieldset/FormFieldSetModel.d.ts +40 -0
- package/build/types/cmp/form/index.d.ts +8 -0
- package/build/types/cmp/grid/Grid.d.ts +143 -0
- package/build/types/cmp/grid/GridAutosizeOptions.d.ts +49 -0
- package/build/types/cmp/grid/GridContextMenu.d.ts +28 -0
- package/build/types/cmp/grid/GridModel.d.ts +624 -0
- package/build/types/cmp/grid/GridSorter.d.ts +23 -0
- package/build/types/cmp/grid/Types.d.ts +285 -0
- package/build/types/cmp/grid/columns/Column.d.ts +380 -0
- package/build/types/cmp/grid/columns/ColumnGroup.d.ts +66 -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 +39 -0
- package/build/types/cmp/grid/filter/GridFilterModel.d.ts +44 -0
- package/build/types/cmp/grid/helpers/GridCountLabel.d.ts +24 -0
- package/build/types/cmp/grid/impl/ColumnGroupHeader.d.ts +24 -0
- package/build/types/cmp/grid/impl/ColumnHeader.d.ts +54 -0
- package/build/types/cmp/grid/impl/ColumnWidthCalculator.d.ts +41 -0
- package/build/types/cmp/grid/impl/GridHScrollbar.d.ts +10 -0
- package/build/types/cmp/grid/impl/InitPersist.d.ts +7 -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 +11 -0
- package/build/types/cmp/grid/index.d.ts +15 -0
- package/build/types/cmp/grid/renderers/CheckboxRenderer.d.ts +14 -0
- package/build/types/cmp/grid/renderers/TagsRenderer.d.ts +3 -0
- package/build/types/cmp/grouping/GroupingChooserModel.d.ts +103 -0
- package/build/types/cmp/grouping/impl/GroupingChooserLocalModel.d.ts +35 -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 +20 -0
- package/build/types/cmp/input/index.d.ts +2 -0
- package/build/types/cmp/layout/Box.d.ts +16 -0
- package/build/types/cmp/layout/Frame.d.ts +14 -0
- package/build/types/cmp/layout/Placeholder.d.ts +11 -0
- package/build/types/cmp/layout/Spacer.d.ts +14 -0
- package/build/types/cmp/layout/Tags.d.ts +38 -0
- package/build/types/cmp/layout/TileFrame.d.ts +37 -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/loadingindicator/LoadingIndicator.d.ts +25 -0
- package/build/types/cmp/loadingindicator/index.d.ts +1 -0
- package/build/types/cmp/markdown/Markdown.d.ts +18 -0
- package/build/types/cmp/markdown/index.d.ts +1 -0
- package/build/types/cmp/mask/Mask.d.ts +25 -0
- package/build/types/cmp/mask/index.d.ts +1 -0
- package/build/types/cmp/pinpad/PinPad.d.ts +9 -0
- package/build/types/cmp/pinpad/PinPadModel.d.ts +34 -0
- package/build/types/cmp/pinpad/index.d.ts +2 -0
- package/build/types/cmp/relativetimestamp/RelativeTimestamp.d.ts +58 -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 +17 -0
- package/build/types/cmp/store/StoreFilterField.d.ts +80 -0
- package/build/types/cmp/store/impl/StoreFilterFieldImplModel.d.ts +25 -0
- package/build/types/cmp/store/index.d.ts +2 -0
- package/build/types/cmp/tab/TabContainer.d.ts +34 -0
- package/build/types/cmp/tab/TabContainerModel.d.ts +137 -0
- package/build/types/cmp/tab/TabModel.d.ts +71 -0
- package/build/types/cmp/tab/Types.d.ts +61 -0
- package/build/types/cmp/tab/index.d.ts +4 -0
- package/build/types/cmp/treemap/SplitTreeMap.d.ts +9 -0
- package/build/types/cmp/treemap/SplitTreeMapModel.d.ts +78 -0
- package/build/types/cmp/treemap/TreeMap.d.ts +14 -0
- package/build/types/cmp/treemap/TreeMapModel.d.ts +181 -0
- package/build/types/cmp/treemap/index.d.ts +4 -0
- package/build/types/cmp/viewmanager/DataAccess.d.ts +28 -0
- package/build/types/cmp/viewmanager/View.d.ts +37 -0
- package/build/types/cmp/viewmanager/ViewInfo.d.ts +55 -0
- package/build/types/cmp/viewmanager/ViewManagerModel.d.ts +243 -0
- package/build/types/cmp/viewmanager/index.d.ts +4 -0
- package/build/types/cmp/websocket/WebSocketIndicator.d.ts +9 -0
- package/build/types/cmp/websocket/index.d.ts +1 -0
- package/build/types/cmp/zoneGrid/Types.d.ts +35 -0
- package/build/types/cmp/zoneGrid/ZoneGrid.d.ts +24 -0
- package/build/types/cmp/zoneGrid/ZoneGridModel.d.ts +256 -0
- package/build/types/cmp/zoneGrid/impl/InitPersist.d.ts +7 -0
- package/build/types/cmp/zoneGrid/impl/ZoneGridRenderer.d.ts +25 -0
- package/build/types/cmp/zoneGrid/impl/ZoneMapperModel.d.ts +67 -0
- package/build/types/cmp/zoneGrid/index.d.ts +3 -0
- package/build/types/core/AppSpec.d.ts +139 -0
- package/build/types/core/ExceptionHandler.d.ts +132 -0
- package/build/types/core/HoistAppModel.d.ts +72 -0
- package/build/types/core/HoistAuthModel.d.ts +70 -0
- package/build/types/core/HoistBase.d.ts +179 -0
- package/build/types/core/HoistBaseDecorators.d.ts +20 -0
- package/build/types/core/HoistComponent.d.ts +112 -0
- package/build/types/core/HoistProps.d.ts +116 -0
- package/build/types/core/HoistService.d.ts +57 -0
- package/build/types/core/RefreshContextView.d.ts +10 -0
- package/build/types/core/TaskObserver.d.ts +80 -0
- package/build/types/core/XH.d.ts +445 -0
- package/build/types/core/elem.d.ts +71 -0
- package/build/types/core/enums/RefreshMode.d.ts +16 -0
- package/build/types/core/enums/RenderMode.d.ts +14 -0
- package/build/types/core/enums/SizingMode.d.ts +10 -0
- package/build/types/core/impl/InstallServices.d.ts +18 -0
- package/build/types/core/impl/InstanceManager.d.ts +24 -0
- package/build/types/core/impl/PlatformManager.d.ts +13 -0
- package/build/types/core/index.d.ts +22 -0
- package/build/types/core/load/LoadSpec.d.ts +55 -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 +203 -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 +26 -0
- package/build/types/core/model/ModelSelector.d.ts +27 -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/PersistOptions.d.ts +46 -0
- package/build/types/core/persist/Persistable.d.ts +14 -0
- package/build/types/core/persist/PersistenceProvider.d.ts +69 -0
- package/build/types/core/persist/index.d.ts +9 -0
- package/build/types/core/persist/provider/CustomProvider.d.ts +15 -0
- package/build/types/core/persist/provider/DashViewProvider.d.ts +12 -0
- package/build/types/core/persist/provider/LocalStorageProvider.d.ts +10 -0
- package/build/types/core/persist/provider/PrefProvider.d.ts +10 -0
- package/build/types/core/persist/provider/SessionStorageProvider.d.ts +10 -0
- package/build/types/core/persist/provider/ViewManagerProvider.d.ts +9 -0
- package/build/types/core/types/AppState.d.ts +20 -0
- package/build/types/core/types/Interfaces.d.ts +303 -0
- package/build/types/core/types/Types.d.ts +72 -0
- package/build/types/data/Field.d.ts +90 -0
- package/build/types/data/RecordAction.d.ts +103 -0
- package/build/types/data/Store.d.ts +424 -0
- package/build/types/data/StoreRecord.d.ts +186 -0
- package/build/types/data/StoreSelectionModel.d.ts +52 -0
- package/build/types/data/UrlStore.d.ts +27 -0
- package/build/types/data/cube/BucketSpec.d.ts +31 -0
- package/build/types/data/cube/Cube.d.ts +180 -0
- package/build/types/data/cube/CubeField.d.ts +49 -0
- package/build/types/data/cube/Query.d.ts +121 -0
- package/build/types/data/cube/View.d.ts +106 -0
- package/build/types/data/cube/ViewRowData.d.ts +46 -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 +16 -0
- package/build/types/data/cube/row/BaseRow.d.ts +30 -0
- package/build/types/data/cube/row/BucketRow.d.ts +16 -0
- package/build/types/data/cube/row/LeafRow.d.ts +22 -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 +29 -0
- package/build/types/data/filter/FieldFilter.d.ts +34 -0
- package/build/types/data/filter/Filter.d.ts +30 -0
- package/build/types/data/filter/FunctionFilter.d.ts +24 -0
- package/build/types/data/filter/Types.d.ts +67 -0
- package/build/types/data/filter/Utils.d.ts +48 -0
- package/build/types/data/impl/RecordSet.d.ts +44 -0
- package/build/types/data/impl/RecordValidator.d.ts +38 -0
- package/build/types/data/impl/StoreValidator.d.ts +48 -0
- package/build/types/data/index.d.ts +34 -0
- package/build/types/data/validation/Rule.d.ts +16 -0
- package/build/types/data/validation/Types.d.ts +56 -0
- package/build/types/data/validation/ValidationState.d.ts +6 -0
- package/build/types/data/validation/constraints.d.ts +75 -0
- package/build/types/desktop/appcontainer/AboutDialog.d.ts +11 -0
- package/build/types/desktop/appcontainer/AppContainer.d.ts +12 -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/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/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/appcontainer/suspend/IdlePanel.d.ts +8 -0
- package/build/types/desktop/appcontainer/suspend/SuspendPanel.d.ts +7 -0
- package/build/types/desktop/cmp/appOption/AutoRefreshAppOption.d.ts +341 -0
- package/build/types/desktop/cmp/appOption/SizingModeAppOption.d.ts +17 -0
- package/build/types/desktop/cmp/appOption/ThemeAppOption.d.ts +341 -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 +5 -0
- package/build/types/desktop/cmp/appbar/index.d.ts +2 -0
- package/build/types/desktop/cmp/button/AppMenuButton.d.ts +44 -0
- package/build/types/desktop/cmp/button/Button.d.ts +28 -0
- package/build/types/desktop/cmp/button/ButtonGroup.d.ts +16 -0
- package/build/types/desktop/cmp/button/DashCanvasAddViewButton.d.ts +10 -0
- package/build/types/desktop/cmp/button/FeedbackButton.d.ts +8 -0
- package/build/types/desktop/cmp/button/LaunchAdminButton.d.ts +8 -0
- package/build/types/desktop/cmp/button/LogoutButton.d.ts +10 -0
- package/build/types/desktop/cmp/button/OptionsButton.d.ts +9 -0
- package/build/types/desktop/cmp/button/RefreshButton.d.ts +15 -0
- package/build/types/desktop/cmp/button/RestoreDefaultsButton.d.ts +16 -0
- package/build/types/desktop/cmp/button/ThemeToggleButton.d.ts +7 -0
- package/build/types/desktop/cmp/button/WhatsNewButton.d.ts +10 -0
- package/build/types/desktop/cmp/button/grid/ColAutosizeButton.d.ts +13 -0
- package/build/types/desktop/cmp/button/grid/ColChooserButton.d.ts +18 -0
- package/build/types/desktop/cmp/button/grid/ExpandToLevelButton.d.ts +18 -0
- package/build/types/desktop/cmp/button/grid/ExportButton.d.ts +21 -0
- package/build/types/desktop/cmp/button/index.d.ts +17 -0
- package/build/types/desktop/cmp/button/panel/ModalToggleButton.d.ts +10 -0
- package/build/types/desktop/cmp/button/zoneGrid/ZoneMapperButton.d.ts +15 -0
- package/build/types/desktop/cmp/card/impl/CardHeaderImpl.d.ts +6 -0
- package/build/types/desktop/cmp/clipboard/ClipboardButton.d.ts +20 -0
- package/build/types/desktop/cmp/clipboard/ClipboardMenuItem.d.ts +6 -0
- package/build/types/desktop/cmp/clipboard/index.d.ts +2 -0
- package/build/types/desktop/cmp/contextmenu/ContextMenu.d.ts +15 -0
- package/build/types/desktop/cmp/contextmenu/index.d.ts +1 -0
- package/build/types/desktop/cmp/dash/DashConfig.d.ts +36 -0
- package/build/types/desktop/cmp/dash/DashModel.d.ts +22 -0
- package/build/types/desktop/cmp/dash/DashViewModel.d.ts +81 -0
- package/build/types/desktop/cmp/dash/DashViewSpec.d.ts +41 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvas.d.ts +27 -0
- package/build/types/desktop/cmp/dash/canvas/DashCanvasModel.d.ts +166 -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 +11 -0
- package/build/types/desktop/cmp/dash/canvas/widgetchooser/DashCanvasWidgetChooser.d.ts +13 -0
- package/build/types/desktop/cmp/dash/canvas/widgetchooser/DashCanvasWidgetChooserModel.d.ts +12 -0
- package/build/types/desktop/cmp/dash/container/DashContainer.d.ts +8 -0
- package/build/types/desktop/cmp/dash/container/DashContainerModel.d.ts +162 -0
- package/build/types/desktop/cmp/dash/container/DashContainerViewModel.d.ts +14 -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 +16 -0
- package/build/types/desktop/cmp/dash/container/impl/DashContainerView.d.ts +12 -0
- package/build/types/desktop/cmp/dash/index.d.ts +12 -0
- package/build/types/desktop/cmp/dock/DockContainer.d.ts +25 -0
- package/build/types/desktop/cmp/dock/DockContainerModel.d.ts +33 -0
- package/build/types/desktop/cmp/dock/DockViewModel.d.ts +83 -0
- package/build/types/desktop/cmp/dock/impl/DockContainer.d.ts +9 -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/impl/ErrorMessage.d.ts +7 -0
- package/build/types/desktop/cmp/filechooser/FileChooser.d.ts +42 -0
- package/build/types/desktop/cmp/filechooser/FileChooserModel.d.ts +23 -0
- package/build/types/desktop/cmp/filechooser/index.d.ts +2 -0
- package/build/types/desktop/cmp/filter/FilterChooser.d.ts +32 -0
- package/build/types/desktop/cmp/filter/PopoverFilterChooser.d.ts +9 -0
- package/build/types/desktop/cmp/filter/index.d.ts +3 -0
- package/build/types/desktop/cmp/form/FormField.d.ts +64 -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 +15 -0
- package/build/types/desktop/cmp/grid/editors/DateEditor.d.ts +6 -0
- package/build/types/desktop/cmp/grid/editors/EditorProps.d.ts +17 -0
- package/build/types/desktop/cmp/grid/editors/NumberEditor.d.ts +6 -0
- package/build/types/desktop/cmp/grid/editors/SelectEditor.d.ts +6 -0
- package/build/types/desktop/cmp/grid/editors/TextAreaEditor.d.ts +6 -0
- package/build/types/desktop/cmp/grid/editors/TextEditor.d.ts +6 -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 +36 -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 +28 -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 +13 -0
- package/build/types/desktop/cmp/grid/impl/filter/GridFilterDialog.d.ts +11 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/HeaderFilter.d.ts +7 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/HeaderFilterModel.d.ts +37 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomRow.d.ts +6 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomRowModel.d.ts +28 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomTab.d.ts +7 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/custom/CustomTabModel.d.ts +21 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTab.d.ts +7 -0
- package/build/types/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTabModel.d.ts +43 -0
- package/build/types/desktop/cmp/grid/index.d.ts +3 -0
- package/build/types/desktop/cmp/grouping/GroupingChooser.d.ts +37 -0
- package/build/types/desktop/cmp/grouping/index.d.ts +2 -0
- package/build/types/desktop/cmp/input/ButtonGroupInput.d.ts +25 -0
- package/build/types/desktop/cmp/input/Checkbox.d.ts +29 -0
- package/build/types/desktop/cmp/input/CodeInput.d.ts +79 -0
- package/build/types/desktop/cmp/input/DateInput.d.ts +118 -0
- package/build/types/desktop/cmp/input/JsonInput.d.ts +8 -0
- package/build/types/desktop/cmp/input/NumberInput.d.ts +79 -0
- package/build/types/desktop/cmp/input/Picker.d.ts +125 -0
- package/build/types/desktop/cmp/input/RadioInput.d.ts +21 -0
- package/build/types/desktop/cmp/input/Select.d.ts +144 -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 +56 -0
- package/build/types/desktop/cmp/input/index.d.ts +13 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooser.d.ts +13 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserFilter.d.ts +15 -0
- package/build/types/desktop/cmp/leftrightchooser/LeftRightChooserModel.d.ts +86 -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/mask/impl/Mask.d.ts +8 -0
- package/build/types/desktop/cmp/modalsupport/ModalSupport.d.ts +16 -0
- package/build/types/desktop/cmp/modalsupport/ModalSupportModel.d.ts +29 -0
- package/build/types/desktop/cmp/modalsupport/index.d.ts +2 -0
- package/build/types/desktop/cmp/panel/Panel.d.ts +69 -0
- package/build/types/desktop/cmp/panel/PanelModel.d.ts +129 -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 +34 -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 +32 -0
- package/build/types/desktop/cmp/record/impl/RecordActionButton.d.ts +20 -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 +33 -0
- package/build/types/desktop/cmp/rest/RestGridModel.d.ts +104 -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 +49 -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 +6 -0
- package/build/types/desktop/cmp/tab/TabSwitcher.d.ts +14 -0
- package/build/types/desktop/cmp/tab/dynamic/DynamicTabSwitcher.d.ts +7 -0
- package/build/types/desktop/cmp/tab/dynamic/DynamicTabSwitcherModel.d.ts +30 -0
- package/build/types/desktop/cmp/tab/dynamic/scroller/Scroller.d.ts +19 -0
- package/build/types/desktop/cmp/tab/dynamic/scroller/ScrollerModel.d.ts +23 -0
- package/build/types/desktop/cmp/tab/impl/Tab.d.ts +17 -0
- package/build/types/desktop/cmp/tab/impl/TabContainer.d.ts +7 -0
- package/build/types/desktop/cmp/tab/impl/TabContextMenuItems.d.ts +4 -0
- package/build/types/desktop/cmp/tab/index.d.ts +2 -0
- package/build/types/desktop/cmp/toolbar/Toolbar.d.ts +30 -0
- package/build/types/desktop/cmp/toolbar/ToolbarSep.d.ts +10 -0
- package/build/types/desktop/cmp/toolbar/index.d.ts +2 -0
- package/build/types/desktop/cmp/viewmanager/ViewManager.d.ts +46 -0
- package/build/types/desktop/cmp/viewmanager/ViewManagerLocalModel.d.ts +13 -0
- package/build/types/desktop/cmp/viewmanager/ViewMenu.d.ts +5 -0
- package/build/types/desktop/cmp/viewmanager/dialog/ManageDialog.d.ts +7 -0
- package/build/types/desktop/cmp/viewmanager/dialog/ManageDialogModel.d.ts +41 -0
- package/build/types/desktop/cmp/viewmanager/dialog/SaveAsDialog.d.ts +5 -0
- package/build/types/desktop/cmp/viewmanager/dialog/SaveAsDialogModel.d.ts +17 -0
- package/build/types/desktop/cmp/viewmanager/dialog/Utils.d.ts +11 -0
- package/build/types/desktop/cmp/viewmanager/dialog/ViewMultiPanel.d.ts +2 -0
- package/build/types/desktop/cmp/viewmanager/dialog/ViewPanel.d.ts +5 -0
- package/build/types/desktop/cmp/viewmanager/dialog/ViewPanelModel.d.ts +16 -0
- package/build/types/desktop/cmp/viewmanager/index.d.ts +1 -0
- package/build/types/desktop/cmp/zoneGrid/impl/ZoneMapper.d.ts +16 -0
- package/build/types/desktop/cmp/zoneGrid/impl/ZoneMapperDialog.d.ts +2 -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 +33 -0
- package/build/types/dynamics/mobile.d.ts +25 -0
- package/build/types/exception/Exception.d.ts +24 -0
- package/build/types/exception/Types.d.ts +35 -0
- package/build/types/exception/index.d.ts +2 -0
- package/build/types/format/FormatDate.d.ts +73 -0
- package/build/types/format/FormatMisc.d.ts +43 -0
- package/build/types/format/FormatNumber.d.ts +137 -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 +363 -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 +20 -0
- package/build/types/inspector/stats/StatsPanel.d.ts +2 -0
- package/build/types/kit/ag-grid/index.d.ts +22 -0
- package/build/types/kit/blueprint/ContextMenu.d.ts +7 -0
- package/build/types/kit/blueprint/Dialog.d.ts +12 -0
- package/build/types/kit/blueprint/Wrappers.d.ts +8 -0
- package/build/types/kit/blueprint/index.d.ts +9 -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-markdown/index.d.ts +4 -0
- package/build/types/kit/react-select/index.d.ts +10 -0
- package/build/types/kit/swiper/index.d.ts +97 -0
- package/build/types/mobile/appcontainer/AboutDialog.d.ts +10 -0
- package/build/types/mobile/appcontainer/AppContainer.d.ts +12 -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/ImpersonationBar.d.ts +9 -0
- package/build/types/mobile/appcontainer/LockoutPanel.d.ts +8 -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/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/appcontainer/suspend/IdlePanel.d.ts +8 -0
- package/build/types/mobile/appcontainer/suspend/SuspendPanel.d.ts +7 -0
- package/build/types/mobile/cmp/appOption/AutoRefreshAppOption.d.ts +15 -0
- package/build/types/mobile/cmp/appOption/SizingModeAppOption.d.ts +17 -0
- package/build/types/mobile/cmp/appOption/ThemeAppOption.d.ts +15 -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 +12 -0
- package/build/types/mobile/cmp/button/FeedbackButton.d.ts +8 -0
- package/build/types/mobile/cmp/button/LogoutButton.d.ts +10 -0
- package/build/types/mobile/cmp/button/NavigatorBackButton.d.ts +7 -0
- package/build/types/mobile/cmp/button/OptionsButton.d.ts +9 -0
- package/build/types/mobile/cmp/button/RefreshButton.d.ts +15 -0
- package/build/types/mobile/cmp/button/RestoreDefaultsButton.d.ts +16 -0
- package/build/types/mobile/cmp/button/ThemeToggleButton.d.ts +7 -0
- package/build/types/mobile/cmp/button/grid/ColAutosizeButton.d.ts +13 -0
- package/build/types/mobile/cmp/button/grid/ColChooserButton.d.ts +14 -0
- package/build/types/mobile/cmp/button/grid/ExpandCollapseButton.d.ts +14 -0
- package/build/types/mobile/cmp/button/grid/ExpandToLevelButton.d.ts +15 -0
- package/build/types/mobile/cmp/button/index.d.ts +13 -0
- package/build/types/mobile/cmp/button/zoneGrid/ZoneMapperButton.d.ts +12 -0
- package/build/types/mobile/cmp/card/impl/CardHeaderImpl.d.ts +6 -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/impl/ErrorMessage.d.ts +7 -0
- package/build/types/mobile/cmp/form/FormField.d.ts +27 -0
- package/build/types/mobile/cmp/form/index.d.ts +1 -0
- package/build/types/mobile/cmp/grid/impl/ColChooser.d.ts +21 -0
- package/build/types/mobile/cmp/grid/impl/ColChooserModel.d.ts +46 -0
- package/build/types/mobile/cmp/grouping/GroupingChooser.d.ts +15 -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 +41 -0
- package/build/types/mobile/cmp/header/index.d.ts +2 -0
- package/build/types/mobile/cmp/input/ButtonGroupInput.d.ts +22 -0
- package/build/types/mobile/cmp/input/Checkbox.d.ts +13 -0
- package/build/types/mobile/cmp/input/CheckboxButton.d.ts +13 -0
- package/build/types/mobile/cmp/input/DateInput.d.ts +54 -0
- package/build/types/mobile/cmp/input/Label.d.ts +10 -0
- package/build/types/mobile/cmp/input/NumberInput.d.ts +53 -0
- package/build/types/mobile/cmp/input/SearchInput.d.ts +24 -0
- package/build/types/mobile/cmp/input/Select.d.ts +127 -0
- package/build/types/mobile/cmp/input/SwitchInput.d.ts +13 -0
- package/build/types/mobile/cmp/input/TextArea.d.ts +21 -0
- package/build/types/mobile/cmp/input/TextInput.d.ts +46 -0
- package/build/types/mobile/cmp/input/index.d.ts +11 -0
- package/build/types/mobile/cmp/mask/impl/Mask.d.ts +8 -0
- package/build/types/mobile/cmp/menu/MenuButton.d.ts +23 -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 +8 -0
- package/build/types/mobile/cmp/navigator/NavigatorModel.d.ts +62 -0
- package/build/types/mobile/cmp/navigator/PageModel.d.ts +61 -0
- package/build/types/mobile/cmp/navigator/impl/GestureRefresh.d.ts +8 -0
- package/build/types/mobile/cmp/navigator/impl/GestureRefreshModel.d.ts +16 -0
- package/build/types/mobile/cmp/navigator/impl/Page.d.ts +12 -0
- package/build/types/mobile/cmp/navigator/impl/Utils.d.ts +9 -0
- package/build/types/mobile/cmp/navigator/index.d.ts +2 -0
- package/build/types/mobile/cmp/panel/DialogPanel.d.ts +16 -0
- package/build/types/mobile/cmp/panel/Panel.d.ts +43 -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 +33 -0
- package/build/types/mobile/cmp/popover/index.d.ts +1 -0
- package/build/types/mobile/cmp/store/impl/StoreFilterField.d.ts +6 -0
- package/build/types/mobile/cmp/tab/impl/Tab.d.ts +13 -0
- package/build/types/mobile/cmp/tab/impl/TabContainer.d.ts +9 -0
- package/build/types/mobile/cmp/toolbar/Toolbar.d.ts +11 -0
- package/build/types/mobile/cmp/toolbar/ToolbarSeparator.d.ts +7 -0
- package/build/types/mobile/cmp/toolbar/index.d.ts +2 -0
- package/build/types/mobile/cmp/zoneGrid/impl/ZoneMapper.d.ts +16 -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 +14 -0
- package/build/types/promise/Promise.d.ts +108 -0
- package/build/types/promise/index.d.ts +1 -0
- package/build/types/security/BaseOAuthClient.d.ts +172 -0
- package/build/types/security/Token.d.ts +11 -0
- package/build/types/security/Types.d.ts +14 -0
- package/build/types/security/authzero/AuthZeroClient.d.ts +57 -0
- package/build/types/security/authzero/index.d.ts +1 -0
- package/build/types/security/msal/MsalClient.d.ts +162 -0
- package/build/types/security/msal/index.d.ts +1 -0
- package/build/types/svc/AlertBannerService.d.ts +33 -0
- package/build/types/svc/AutoRefreshService.d.ts +28 -0
- package/build/types/svc/ChangelogService.d.ts +62 -0
- package/build/types/svc/ClientHealthService.d.ts +64 -0
- package/build/types/svc/ConfigService.d.ts +36 -0
- package/build/types/svc/EnvironmentService.d.ts +50 -0
- package/build/types/svc/FetchService.d.ts +269 -0
- package/build/types/svc/GridAutosizeService.d.ts +35 -0
- package/build/types/svc/GridExportService.d.ts +56 -0
- package/build/types/svc/IdentityService.d.ts +58 -0
- package/build/types/svc/IdleService.d.ts +21 -0
- package/build/types/svc/InspectorService.d.ts +75 -0
- package/build/types/svc/JsonBlobService.d.ts +60 -0
- package/build/types/svc/PrefService.d.ts +69 -0
- package/build/types/svc/TrackService.d.ts +42 -0
- package/build/types/svc/WebSocketService.d.ts +126 -0
- package/build/types/svc/index.d.ts +18 -0
- package/build/types/svc/storage/BaseStorageService.d.ts +21 -0
- package/build/types/svc/storage/LocalStorageService.d.ts +12 -0
- package/build/types/svc/storage/SessionStorageService.d.ts +12 -0
- package/build/types/utils/async/AsyncUtils.d.ts +40 -0
- package/build/types/utils/async/Timer.d.ts +87 -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 +92 -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/MenuItems.d.ts +13 -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 +5 -0
- package/build/types/utils/js/Decorators.d.ts +42 -0
- package/build/types/utils/js/DomUtils.d.ts +50 -0
- package/build/types/utils/js/HtmlUtils.d.ts +4 -0
- package/build/types/utils/js/LangUtils.d.ts +122 -0
- package/build/types/utils/js/LogUtils.d.ts +108 -0
- package/build/types/utils/js/TestUtils.d.ts +18 -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 +46 -0
- package/build/types/utils/react/LayoutPropUtils.d.ts +43 -0
- package/build/types/utils/react/ObservableRef.d.ts +13 -0
- package/build/types/utils/react/ReactUtils.d.ts +23 -0
- package/build/types/utils/react/index.d.ts +5 -0
- package/cmp/grouping/impl/GroupingChooserLocalModel.ts +6 -0
- package/desktop/cmp/dash/canvas/DashCanvasModel.ts +2 -1
- package/desktop/cmp/grouping/GroupingChooser.ts +4 -1
- package/package.json +2 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HoistService, HoistModel } from '../';
|
|
2
|
+
import { Store } from '@xh/hoist/data';
|
|
3
|
+
/**
|
|
4
|
+
* Generic singleton object for cataloging global models and services.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
declare class InstanceManager {
|
|
8
|
+
services: Set<HoistService>;
|
|
9
|
+
models: Set<HoistModel>;
|
|
10
|
+
stores: Set<Store>;
|
|
11
|
+
private modelsByTestId;
|
|
12
|
+
private testSupportedModels;
|
|
13
|
+
registerModel(m: HoistModel): void;
|
|
14
|
+
unregisterModel(m: HoistModel): void;
|
|
15
|
+
registerService(s: HoistService): void;
|
|
16
|
+
registerStore(s: Store): void;
|
|
17
|
+
unregisterStore(s: Store): void;
|
|
18
|
+
registerModelWithTestId(testId: string, m: HoistModel): void;
|
|
19
|
+
unregisterModelWithTestId(testId: string): void;
|
|
20
|
+
getModelByTestId(testId: string): HoistModel;
|
|
21
|
+
constructor();
|
|
22
|
+
}
|
|
23
|
+
export declare const instanceManager: InstanceManager;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic singleton object for registering Mobile and Desktop Components and ensuring that they
|
|
3
|
+
* are never cross-imported within the same client application bundle.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
declare class PlatformManager {
|
|
7
|
+
private mobileAPIRegistered;
|
|
8
|
+
private desktopAPIRegistered;
|
|
9
|
+
registerDesktop(): void;
|
|
10
|
+
registerMobile(): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const platformManager: PlatformManager;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './enums/RefreshMode';
|
|
2
|
+
export * from './enums/RenderMode';
|
|
3
|
+
export * from './enums/SizingMode';
|
|
4
|
+
export * from './types/Interfaces';
|
|
5
|
+
export * from './types/Types';
|
|
6
|
+
export * from './types/AppState';
|
|
7
|
+
export * from './elem';
|
|
8
|
+
export * from './persist/';
|
|
9
|
+
export * from './TaskObserver';
|
|
10
|
+
export * from './HoistBase';
|
|
11
|
+
export * from './HoistBaseDecorators';
|
|
12
|
+
export * from './load';
|
|
13
|
+
export * from './model';
|
|
14
|
+
export * from './HoistService';
|
|
15
|
+
export * from './AppSpec';
|
|
16
|
+
export * from './HoistProps';
|
|
17
|
+
export * from './HoistComponent';
|
|
18
|
+
export * from './RefreshContextView';
|
|
19
|
+
export * from './HoistAppModel';
|
|
20
|
+
export * from './HoistAuthModel';
|
|
21
|
+
export * from './ExceptionHandler';
|
|
22
|
+
export { XH, XHApi } from './XH';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PlainObject } from '../types/Types';
|
|
2
|
+
import { LoadSupport } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Object describing a load/refresh request in Hoist.
|
|
5
|
+
*
|
|
6
|
+
* Instances of this class are created within the public APIs provided by {@link LoadSupport}
|
|
7
|
+
* and are passed to subclass (i.e. app-level) implementations of `doLoadAsync()`.
|
|
8
|
+
*
|
|
9
|
+
* Application implementations of `doLoadAsync()` can consult this object's flags. Of particular
|
|
10
|
+
* interest are {@link isStale} and {@link isObsolete}, which implementations can read after any
|
|
11
|
+
* async calls return to determine if a newer, subsequent load has already been requested.
|
|
12
|
+
*
|
|
13
|
+
* In addition, `doLoadAsync()` implementations should typically pass along this object to any
|
|
14
|
+
* calls they make to `loadAsync()` on other objects + all calls to {@link FetchService} APIs.
|
|
15
|
+
*
|
|
16
|
+
* Note that Hoist's exception handling and activity tracking will consult the {@link isAutoRefresh}
|
|
17
|
+
* flag on specs passed to their calls to automatically adjust their behavior (e.g. not showing an
|
|
18
|
+
* exception dialog on error, not tracking background refresh activity).
|
|
19
|
+
*
|
|
20
|
+
* @see LoadSupport
|
|
21
|
+
*/
|
|
22
|
+
export type LoadSpecConfig = {
|
|
23
|
+
/** True if triggered by a refresh request (automatic or user-driven). */
|
|
24
|
+
isRefresh?: boolean;
|
|
25
|
+
/** True if triggered by an automatic refresh process. */
|
|
26
|
+
isAutoRefresh?: boolean;
|
|
27
|
+
/** Application specific information about the load request. */
|
|
28
|
+
meta?: PlainObject;
|
|
29
|
+
};
|
|
30
|
+
export declare class LoadSpec {
|
|
31
|
+
/** True if triggered by a refresh request (automatic or user-driven). */
|
|
32
|
+
isRefresh: boolean;
|
|
33
|
+
/** True if triggered by an automatic refresh process. */
|
|
34
|
+
isAutoRefresh: boolean;
|
|
35
|
+
/** Application specific information about the load request. */
|
|
36
|
+
meta: PlainObject;
|
|
37
|
+
/** Time the load started. */
|
|
38
|
+
dateCreated: Date;
|
|
39
|
+
/** Index of the associated load on this object - 0 for the first load. */
|
|
40
|
+
loadNumber: number;
|
|
41
|
+
/** Owner of this object. */
|
|
42
|
+
owner: LoadSupport;
|
|
43
|
+
/** True if a more recent request to load this object's owner has *started*. */
|
|
44
|
+
get isStale(): boolean;
|
|
45
|
+
/** True if a more recent request to load this object's owner has *successfully completed*. */
|
|
46
|
+
get isObsolete(): boolean;
|
|
47
|
+
/** Display type of refresh for troubleshooting and logging. */
|
|
48
|
+
get typeDisplay(): string;
|
|
49
|
+
get isFirstLoad(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @internal - not for application use. LoadSpecs are constructed automatically by Hoist's
|
|
52
|
+
* {@link LoadSupport} class as part of its managed `loadAsync()` wrapper.
|
|
53
|
+
*/
|
|
54
|
+
constructor(config: LoadSpecConfig, owner: LoadSupport);
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HoistBase, LoadSpecConfig, PlainObject, TaskObserver } from '../';
|
|
2
|
+
import { LoadSpec, Loadable } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Provides support for objects that participate in Hoist's loading/refresh lifecycle.
|
|
5
|
+
*
|
|
6
|
+
* This utility is used by core Hoist classes such as {@link HoistModel} and {@link HoistService}.
|
|
7
|
+
* Model and service instances will automatically create an instance of this class if they have
|
|
8
|
+
* declared a concrete implementation of `doLoadAsync()`, signalling that they wish to take
|
|
9
|
+
* advantage of the additional tracking and management provided here.
|
|
10
|
+
*
|
|
11
|
+
* Not typically created directly by applications.
|
|
12
|
+
*/
|
|
13
|
+
export declare class LoadSupport extends HoistBase implements Loadable {
|
|
14
|
+
lastRequested: LoadSpec;
|
|
15
|
+
lastSucceeded: LoadSpec;
|
|
16
|
+
loadObserver: TaskObserver;
|
|
17
|
+
lastLoadRequested: Date;
|
|
18
|
+
lastLoadCompleted: Date;
|
|
19
|
+
lastLoadException: any;
|
|
20
|
+
target: Loadable;
|
|
21
|
+
constructor(target: Loadable);
|
|
22
|
+
loadAsync(loadSpec?: LoadSpecConfig): Promise<void>;
|
|
23
|
+
refreshAsync(meta?: PlainObject): Promise<void>;
|
|
24
|
+
autoRefreshAsync(meta?: PlainObject): Promise<void>;
|
|
25
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Load a collection of objects concurrently.
|
|
29
|
+
*
|
|
30
|
+
* Note that this method uses 'allSettled' in its implementation, meaning a failure of any one call
|
|
31
|
+
* will not cause the entire batch to throw.
|
|
32
|
+
*
|
|
33
|
+
* @param objs - list of objects to be loaded
|
|
34
|
+
* @param loadSpec - optional metadata related to this request.
|
|
35
|
+
*/
|
|
36
|
+
export declare function loadAllAsync(objs: Loadable[], loadSpec?: LoadSpec | any): Promise<PromiseSettledResult<void>[]>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TaskObserver } from '../';
|
|
2
|
+
import { LoadSpec } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Interface for the primary load/refresh APIs on models and services with {@link LoadSupport}.
|
|
5
|
+
*/
|
|
6
|
+
export interface Loadable {
|
|
7
|
+
/**
|
|
8
|
+
* For tracking the loading of this object.
|
|
9
|
+
* Note that this object will *not* track auto-refreshes.
|
|
10
|
+
*/
|
|
11
|
+
loadObserver: TaskObserver;
|
|
12
|
+
/** Date when last load was initiated. */
|
|
13
|
+
lastLoadRequested: Date;
|
|
14
|
+
/** Date when last load was completed. */
|
|
15
|
+
lastLoadCompleted: Date;
|
|
16
|
+
/** Any exception that occurred during last load. */
|
|
17
|
+
lastLoadException: any;
|
|
18
|
+
/**
|
|
19
|
+
* Load the target.
|
|
20
|
+
*
|
|
21
|
+
* This method is the main public entry point for this interface and is responsible for
|
|
22
|
+
* calling the objects `doLoadAsync()` implementation. See also `refreshAsync()` and
|
|
23
|
+
* `autoRefreshAsync()` for convenience variants of this method.
|
|
24
|
+
*
|
|
25
|
+
* @param loadSpec - a {@link LoadSpec}, or an object containing properties to create one.
|
|
26
|
+
*/
|
|
27
|
+
loadAsync(loadSpec?: LoadSpec | Partial<LoadSpec>): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Refresh the target.
|
|
30
|
+
* @param meta - optional metadata for the request.
|
|
31
|
+
*/
|
|
32
|
+
refreshAsync(meta?: object): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Auto-refresh the target.
|
|
35
|
+
* @param meta - optional metadata for the request.
|
|
36
|
+
*/
|
|
37
|
+
autoRefreshAsync(meta?: object): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Implement this method to load data or other state from external data sources or services.
|
|
40
|
+
* This is a template method - callers should call `loadAsync()` or `refreshAsync()` instead.
|
|
41
|
+
*
|
|
42
|
+
* @param loadSpec - metadata about the underlying request. Implementations should
|
|
43
|
+
* take care to pass this parameter in calls to any delegates that support it, e.g.
|
|
44
|
+
* when calling the `loadAsync()` method of other services or child models with
|
|
45
|
+
* `loadSupport` or when making calls to {@link FetchService} APIs.
|
|
46
|
+
*/
|
|
47
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Thunkable } from './../types/Types';
|
|
2
|
+
import { HoistModel, HoistModelClass, ModelPublishMode } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a ModelSpec to define how a functional HoistComponent should create its primary backing
|
|
5
|
+
* HoistModel. Use this option when your component will create its own model internally, and does
|
|
6
|
+
* *not* expect one to be provided via props or context.
|
|
7
|
+
*
|
|
8
|
+
* The constructed model instance will be provided to the component via props and placed in context
|
|
9
|
+
* for access by all subcomponents.
|
|
10
|
+
*
|
|
11
|
+
* The model created will be considered to be 'owned' by the receiving component. If it implements
|
|
12
|
+
* loading it will be loaded on component mount, and it will always be destroyed on
|
|
13
|
+
* component unmount.
|
|
14
|
+
*
|
|
15
|
+
* @param spec - HoistModel Class to construct, or a function returning a concrete HoistModel instance.
|
|
16
|
+
* @param opts - additional options
|
|
17
|
+
*/
|
|
18
|
+
export declare function creates<T extends HoistModel>(spec: Thunkable<HoistModelClass<T>> | (() => T), opts?: CreatesOptions): CreatesSpec<T>;
|
|
19
|
+
export interface CreatesOptions {
|
|
20
|
+
/** Mode for publishing this model to context. */
|
|
21
|
+
publishMode?: ModelPublishMode;
|
|
22
|
+
}
|
|
23
|
+
export declare class CreatesSpec<T extends HoistModel> {
|
|
24
|
+
fromContext: boolean;
|
|
25
|
+
optional: boolean;
|
|
26
|
+
publishMode: ModelPublishMode;
|
|
27
|
+
createFn: () => T;
|
|
28
|
+
constructor(spec: any, publishMode: ModelPublishMode);
|
|
29
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { DefaultHoistProps, HoistBase, LoadSpecConfig, PlainObject, TaskObserver } from '../';
|
|
2
|
+
import { Loadable, LoadSpec, LoadSupport } from '../load';
|
|
3
|
+
import { ModelSelector } from './';
|
|
4
|
+
import { Class } from 'type-fest';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for *stateful Hoist Models*.
|
|
7
|
+
*
|
|
8
|
+
* A `HoistModel` is the canonical Hoist unit for:
|
|
9
|
+
* - holding observable state (MobX)
|
|
10
|
+
* - implementing business logic and derived/computed values
|
|
11
|
+
* - coordinating async loading / refresh via `loadAsync()`
|
|
12
|
+
* - optionally participating in the component context hierarchy as a **linked model**
|
|
13
|
+
*
|
|
14
|
+
* PURPOSE
|
|
15
|
+
* - Provide a common lifecycle + MobX integration point for Hoist state.
|
|
16
|
+
* - Provide optional managed loading/refresh support when `doLoadAsync()` is implemented.
|
|
17
|
+
* - Provide linked-model features when a model is created via Hoist component wiring.
|
|
18
|
+
*
|
|
19
|
+
* NON-GOALS
|
|
20
|
+
* - This is not a React component.
|
|
21
|
+
* - This is not a generic DI container / service locator (use `lookupModel()` only for linked models).
|
|
22
|
+
* - This does not prescribe app-specific data fetching patterns beyond the `doLoadAsync()` template.
|
|
23
|
+
*
|
|
24
|
+
* KEY CONCEPTS (Hoist vocabulary)
|
|
25
|
+
* - **Model**: a long-lived stateful object backing UI and/or application state.
|
|
26
|
+
* - **Linked model**: a model created for (and bound to) a specific component instance.
|
|
27
|
+
* - **Load support**: managed async loading via {@link LoadSupport} + {@link LoadSpec}.
|
|
28
|
+
*
|
|
29
|
+
* LIFECYCLE / OWNERSHIP
|
|
30
|
+
* - Created by:
|
|
31
|
+
* - Hoist component factories when configured with `model` (see {@link hoistCmp.factory}).
|
|
32
|
+
* - The {@link creates} directive or {@link useLocalModel} hook (linked models).
|
|
33
|
+
* - Application code (unlinked models) when used as general-purpose state holders.
|
|
34
|
+
* - Scope:
|
|
35
|
+
* - Linked models are 1:1 with a component instance and are destroyed on unmount.
|
|
36
|
+
* - Unlinked models are owned by application code; you are responsible for lifecycle.
|
|
37
|
+
*
|
|
38
|
+
* LINKED MODEL BEHAVIOR
|
|
39
|
+
* Linked models:
|
|
40
|
+
* - expose observable {@link componentProps} (shallow-observed per prop)
|
|
41
|
+
* - can acquire ancestor models via {@link lookupModel} / `@lookup`
|
|
42
|
+
* - receive {@link onLinked} during the *first render* of the linked component
|
|
43
|
+
* - receive {@link afterLinked} after the first render (via React effect)
|
|
44
|
+
* - are auto-loaded on mount via {@link loadAsync} (if load support is enabled)
|
|
45
|
+
* - register for subsequent refreshes via the nearest {@link RefreshContextModel}
|
|
46
|
+
* - are destroyed when their linked component is unmounted
|
|
47
|
+
*
|
|
48
|
+
* MANAGED LOADING / REFRESH
|
|
49
|
+
* - Implement {@link doLoadAsync} to opt into managed loading via {@link LoadSupport}.
|
|
50
|
+
* - When enabled, callers should use {@link loadAsync}/{@link refreshAsync}/{@link autoRefreshAsync}.
|
|
51
|
+
* The {@link LoadSpec} instance passed to `doLoadAsync()` can be inspected to determine the
|
|
52
|
+
* particular type of load that was triggered, as well as to determine if a newer load has already
|
|
53
|
+
* been triggered via {@link LoadSpec.isStale} and {@link LoadSpec.isObsolete}.
|
|
54
|
+
* - Other load state/metadata is available via {@link loadModel} and timestamps/exceptions accessors.
|
|
55
|
+
*
|
|
56
|
+
* INVARIANTS / ASSUMPTIONS
|
|
57
|
+
* - `makeObservable(this)` is called by this base constructor, registering observables declared
|
|
58
|
+
* directly on `HoistModel`.
|
|
59
|
+
* - {@link lookupModel} is only valid for linked models, and only during/after {@link onLinked}.
|
|
60
|
+
*
|
|
61
|
+
* ERROR + LOADING BEHAVIOR
|
|
62
|
+
* - If {@link doLoadAsync} is not overridden, load support is not installed and loading APIs are no-ops.
|
|
63
|
+
* - If {@link doLoadAsync} is overridden, {@link LoadSupport} is installed automatically.
|
|
64
|
+
*
|
|
65
|
+
* PERFORMANCE NOTES
|
|
66
|
+
* - {@link componentProps} uses shallow equality; only reference changes to individual props notify observers.
|
|
67
|
+
*
|
|
68
|
+
* COMMON PITFALLS
|
|
69
|
+
* - Declaring new `@observable` properties in a subclass but failing to call `makeObservable(this)`
|
|
70
|
+
* in the subclass constructor. MobX requires each concrete class introducing observables to
|
|
71
|
+
* register them explicitly.
|
|
72
|
+
* - Calling {@link lookupModel} before the model is linked (create via {@link creates}/{@link useLocalModel},
|
|
73
|
+
* and call during/after {@link onLinked}).
|
|
74
|
+
* - Overriding the constructor and forgetting to call `super()`.
|
|
75
|
+
* - Mutating `@observables` outside MobX actions.
|
|
76
|
+
*
|
|
77
|
+
* CANONICAL USAGE
|
|
78
|
+
* ```ts
|
|
79
|
+
* // Linked model backing a Hoist component
|
|
80
|
+
* class MyModel extends HoistModel {
|
|
81
|
+
* @observable.ref data: SomeData = null;
|
|
82
|
+
*
|
|
83
|
+
* constructor() {
|
|
84
|
+
* super();
|
|
85
|
+
* makeObservable(this);
|
|
86
|
+
* }
|
|
87
|
+
*
|
|
88
|
+
* override async doLoadAsync(loadSpec: LoadSpec) {
|
|
89
|
+
* this.data = await api.loadSomeData(loadSpec);
|
|
90
|
+
* }
|
|
91
|
+
*
|
|
92
|
+
* override onLinked() {
|
|
93
|
+
* const parent = this.lookupModel(ParentModel);
|
|
94
|
+
* // safe to use parent/componentProps here
|
|
95
|
+
* }
|
|
96
|
+
* }
|
|
97
|
+
*
|
|
98
|
+
* // In a Hoist component factory
|
|
99
|
+
* export const myView = hoistCmp.factory<MyModel>(({model}) => {
|
|
100
|
+
* // render using model.data, call model.loadAsync(), etc.
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* SEE ALSO
|
|
105
|
+
* - {@link HoistBase}
|
|
106
|
+
* - {@link LoadSupport}
|
|
107
|
+
* - {@link LoadSpec}
|
|
108
|
+
* - {@link creates}
|
|
109
|
+
* - {@link useLocalModel}
|
|
110
|
+
*/
|
|
111
|
+
export declare abstract class HoistModel extends HoistBase implements Loadable {
|
|
112
|
+
/** Type for constructing an instance of this model */
|
|
113
|
+
config: unknown;
|
|
114
|
+
static get isHoistModel(): boolean;
|
|
115
|
+
get isHoistModel(): boolean;
|
|
116
|
+
_componentProps: DefaultHoistProps | null;
|
|
117
|
+
_modelLookup: any;
|
|
118
|
+
_created: number;
|
|
119
|
+
constructor();
|
|
120
|
+
/**
|
|
121
|
+
* Provides optional support for Hoist's approach to managed loading.
|
|
122
|
+
*
|
|
123
|
+
* Applications will not typically need to access this object directly. If a subclass
|
|
124
|
+
* declares a concrete implementation of the `doLoadAsync()` template method, an instance of
|
|
125
|
+
* `LoadSupport` will automatically be created and installed to support the extensions below.
|
|
126
|
+
*
|
|
127
|
+
* See the class-level comments above for additional details.
|
|
128
|
+
*/
|
|
129
|
+
loadSupport: LoadSupport;
|
|
130
|
+
get loadObserver(): TaskObserver;
|
|
131
|
+
get loadModel(): TaskObserver;
|
|
132
|
+
get lastLoadRequested(): Date;
|
|
133
|
+
get lastLoadCompleted(): Date;
|
|
134
|
+
get lastLoadException(): any;
|
|
135
|
+
refreshAsync(meta?: PlainObject): Promise<void>;
|
|
136
|
+
autoRefreshAsync(meta?: PlainObject): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Template method for subclasses that want managed loading.
|
|
139
|
+
*
|
|
140
|
+
* Override this method to opt into Hoist's managed loading (i.e. installation of {@link LoadSupport}).
|
|
141
|
+
* Do not call this method directly - call {@link loadAsync}/{@link refreshAsync}/{@link autoRefreshAsync}.
|
|
142
|
+
*/
|
|
143
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
144
|
+
loadAsync(loadSpec?: LoadSpecConfig): Promise<void>;
|
|
145
|
+
get isLinked(): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* React props on component linked to this model.
|
|
148
|
+
*
|
|
149
|
+
* Only available for linked models.
|
|
150
|
+
*
|
|
151
|
+
* Observability is based on a shallow computation for each prop (i.e. a reference
|
|
152
|
+
* change in any particular prop will trigger observers to be notified).
|
|
153
|
+
*/
|
|
154
|
+
get componentProps(): DefaultHoistProps;
|
|
155
|
+
/**
|
|
156
|
+
* Called during first render of the component linked to this model.
|
|
157
|
+
*
|
|
158
|
+
* Only available for linked models.
|
|
159
|
+
*
|
|
160
|
+
* This method will be called when this model has been fully linked to the component
|
|
161
|
+
* hierarchy. Use this method for any work requiring the availability of lookup models or
|
|
162
|
+
* componentProps. Note that this method is called *during* the initial rendering of the
|
|
163
|
+
* linked component. See also `afterLinked` for a version of this method, that will be called
|
|
164
|
+
* after the first render is complete.
|
|
165
|
+
*/
|
|
166
|
+
onLinked(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Called after first render of the component linked to this model.
|
|
169
|
+
*
|
|
170
|
+
* Only available for linked models.
|
|
171
|
+
*
|
|
172
|
+
* This method is similar to `onLinked`, however it will be called after rendering has completed
|
|
173
|
+
* using the native react `useEffect` hook.
|
|
174
|
+
*/
|
|
175
|
+
afterLinked(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Lookup an ancestor model in the context hierarchy.
|
|
178
|
+
*
|
|
179
|
+
* Only available for linked models.
|
|
180
|
+
*
|
|
181
|
+
* @param selector - type of model to lookup.
|
|
182
|
+
* @returns model, or null if no matching model found.
|
|
183
|
+
*/
|
|
184
|
+
lookupModel<T extends HoistModel>(selector: ModelSelector<T>): T | null;
|
|
185
|
+
/** @internal - called by Hoist to keep {@link componentProps} in sync for linked models. */
|
|
186
|
+
setComponentProps(newProps: DefaultHoistProps | null): void;
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
* Selector matching used by Hoist model lookup.
|
|
190
|
+
*
|
|
191
|
+
* Supported selectors include:
|
|
192
|
+
* - a HoistModel class reference
|
|
193
|
+
* - a predicate function `(model) => selector`
|
|
194
|
+
* - `true` (match any)
|
|
195
|
+
* - `'*'` (match any if `acceptWildcard` is true)
|
|
196
|
+
* - a class name string
|
|
197
|
+
*/
|
|
198
|
+
matchesSelector(selector: ModelSelector, acceptWildcard?: boolean): boolean;
|
|
199
|
+
destroy(): void;
|
|
200
|
+
}
|
|
201
|
+
export type HoistModelClass<T extends HoistModel> = Class<T> | {
|
|
202
|
+
prototype: Pick<T, keyof T>;
|
|
203
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HoistModel, HoistModelClass, ModelSelector, ModelLookup } from './';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to allow a component to access a HoistModel provided in context by an ancestor component.
|
|
4
|
+
* @param selector - selector to identify the model to be returned.
|
|
5
|
+
* @returns model or null if no matching model found.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useContextModel<T extends HoistModel>(selector?: ModelSelector<T>): T;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new model that will be maintained for lifetime of the component and destroyed when the
|
|
10
|
+
* component is unmounted.
|
|
11
|
+
* @param spec - class of HoistModel to create, or a function returning one.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useLocalModel<T extends HoistModel>(spec?: HoistModelClass<T> | (() => T)): T;
|
|
14
|
+
/**
|
|
15
|
+
* Integrate a HoistModel owned by a component into the component's lifecycle, enabling support for
|
|
16
|
+
* both the Loading lifecycle and destruction. No-op, if model is null.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare function useModelLinker(model: HoistModel, modelLookup: ModelLookup, props: object): void;
|
|
20
|
+
/**
|
|
21
|
+
* Default Context for useLocalModel.
|
|
22
|
+
* Set by HoistComponent during render to minimize app boilerplate required.
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const localModelContext: {
|
|
26
|
+
modelLookup: any;
|
|
27
|
+
props: any;
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Loadable, LoadSpec } from '../load';
|
|
2
|
+
import { RefreshContextModel } from './';
|
|
3
|
+
import { RefreshMode } from '../';
|
|
4
|
+
export type ManagedRefreshTarget = Loadable & {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
refreshMode: RefreshMode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A refresh context model that consults a model's RefreshMode and active state to manage
|
|
10
|
+
* refreshes of its target models.
|
|
11
|
+
*
|
|
12
|
+
* The associated Loadable must have both:
|
|
13
|
+
* a) An observable `isActive` property, that returns a boolean value.
|
|
14
|
+
* b) A `refreshMode` property, that returns a RefreshMode enum value.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ManagedRefreshContextModel extends RefreshContextModel {
|
|
17
|
+
xhImpl: boolean;
|
|
18
|
+
model: ManagedRefreshTarget;
|
|
19
|
+
refreshPending: boolean;
|
|
20
|
+
constructor(model: ManagedRefreshTarget);
|
|
21
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
22
|
+
noteActiveChanged(isActive: boolean): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ModelSelector, HoistModel, ModelPublishMode } from './..';
|
|
2
|
+
/**
|
|
3
|
+
* Support for making models available to components via React context.
|
|
4
|
+
*
|
|
5
|
+
* Not created directly by applications. Components specify how/if they publish/source their
|
|
6
|
+
* models from context via the `model` config option passed into the `hoistCmp()` factory.
|
|
7
|
+
* Hoist will in turn create and manage instances of this class to power those links.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class ModelLookup {
|
|
12
|
+
model: HoistModel;
|
|
13
|
+
parent: ModelLookup;
|
|
14
|
+
publishMode: ModelPublishMode;
|
|
15
|
+
constructor(model: HoistModel, parent: ModelLookup, publishMode: ModelPublishMode);
|
|
16
|
+
/**
|
|
17
|
+
* Lookup a model in the context hierarchy
|
|
18
|
+
* @returns model, or null if no matching model found.
|
|
19
|
+
*/
|
|
20
|
+
lookupModel(selector: ModelSelector): HoistModel;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Context used to publish a ModelLookup
|
|
24
|
+
*/
|
|
25
|
+
export declare const ModelLookupContext: import("react").Context<any>;
|
|
26
|
+
export declare const modelLookupContextProvider: import("./..").ElementFactory<import("react").ProviderProps<any>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HoistModel, HoistModelClass } from './';
|
|
2
|
+
/**
|
|
3
|
+
* Type for use in identifying a model or set of models. May be one of:
|
|
4
|
+
*
|
|
5
|
+
* - class (or superclass) to match
|
|
6
|
+
* - `"*"` to accept any Model
|
|
7
|
+
* - boolean
|
|
8
|
+
* - function taking a model and returning any of the above.
|
|
9
|
+
*/
|
|
10
|
+
export type ModelSelector<T extends HoistModel = HoistModel> = HoistModelClass<T> | string | boolean | ((model: HoistModel) => ModelSelector<T>);
|
|
11
|
+
/**
|
|
12
|
+
* Ensure an object is a ModelSelector, or throw.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ensureIsSelector(s: any): void;
|
|
15
|
+
/**
|
|
16
|
+
* Format a ModelSelector for debugging purposes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatSelector(selector: ModelSelector): string;
|
|
19
|
+
/**
|
|
20
|
+
* Parameterized decorator to inject an instance of an ancestor model in the Model lookup
|
|
21
|
+
* hierarchy into this object.
|
|
22
|
+
*
|
|
23
|
+
* The decorated property will be filled only when the Model is linked to the Component hierarchy.
|
|
24
|
+
* Accessing properties decorated with `@lookup` should first be done in the
|
|
25
|
+
* {@link HoistModel.onLinked} or {@link HoistModel.afterLinked} handlers.
|
|
26
|
+
*/
|
|
27
|
+
export declare const lookup: any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CreatesSpec, UsesSpec, HoistModel } from './';
|
|
2
|
+
/**
|
|
3
|
+
* Specification for model to be rendered by a HoistComponent.
|
|
4
|
+
* See {@link uses} and {@link creates} for standard factories that produce instances of this type.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type ModelSpec<T extends HoistModel = HoistModel> = CreatesSpec<T> | UsesSpec<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Options for how a Model should be published to context.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ModelPublishMode: Readonly<{
|
|
12
|
+
/**
|
|
13
|
+
* Model may be looked up from context using wildcard ('*') and model's top-level
|
|
14
|
+
* properties will also be searched for an appropriate model during lookup. This is the
|
|
15
|
+
* default mode and typical mode used by application models.
|
|
16
|
+
*/
|
|
17
|
+
DEFAULT: "default";
|
|
18
|
+
/**
|
|
19
|
+
* Model may be looked up via context using an explicit selector, but NOT wildcard (*).
|
|
20
|
+
* Model's internal properties will never be searched for matching models during lookup.
|
|
21
|
+
* Useful for component or toolkit models that should be available for querying via context,
|
|
22
|
+
* but are not intended to serve as default models or model providers.
|
|
23
|
+
*/
|
|
24
|
+
LIMITED: "limited";
|
|
25
|
+
/**
|
|
26
|
+
* Do not publish the model to context.
|
|
27
|
+
*/
|
|
28
|
+
NONE: "none";
|
|
29
|
+
}>;
|
|
30
|
+
export type ModelPublishMode = (typeof ModelPublishMode)[keyof typeof ModelPublishMode];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { HoistModel } from './';
|
|
2
|
+
import { LoadSpec, Loadable } from '../load';
|
|
3
|
+
/**
|
|
4
|
+
* A model to manage refreshing sections of the application, where "refreshing" refers to app-
|
|
5
|
+
* specific actions to load and display updated data. Calling `refreshAsync()` on this model will
|
|
6
|
+
* refresh all linked models underneath its corresponding component hierarchy.
|
|
7
|
+
*
|
|
8
|
+
* An instance of this class is provided by the framework as `XH.refreshContextModel` and
|
|
9
|
+
* installed at the top level of the application's component hierarchy, allowing for an "app-wide"
|
|
10
|
+
* refresh trigger via `XH.refreshAppAsync()`.
|
|
11
|
+
*
|
|
12
|
+
* Apps can create additional sub-contexts using a `RefreshContextView` paired with this model if
|
|
13
|
+
* they need to coordinate refreshes within a more targeted sections of their UI.
|
|
14
|
+
*
|
|
15
|
+
* HoistModels that enable LoadSupport are the primary targets for the refresh calls made by this
|
|
16
|
+
* class. Such models are auto-linked to the nearest RefreshContextModel when their associated
|
|
17
|
+
* component is mounted.
|
|
18
|
+
*
|
|
19
|
+
* (Note that models must be "owned" by their Component to be auto-linked in this way - meaning they
|
|
20
|
+
* must be internally created by the Component, either directly or from a config passed via props.)
|
|
21
|
+
*
|
|
22
|
+
* Note that TabContainer automatically establishes separate refresh contexts for its tabs and uses
|
|
23
|
+
* these to implement efficient refresh handling of inactive and not-yet-rendered tabs. See the
|
|
24
|
+
* `refreshMode` configs on `TabContainerModel` and `TabModel` for more information on this common
|
|
25
|
+
* use case.
|
|
26
|
+
*
|
|
27
|
+
* @see RootRefreshContextModel
|
|
28
|
+
* @see HoistModel.loadSupport
|
|
29
|
+
*/
|
|
30
|
+
export declare class RefreshContextModel extends HoistModel {
|
|
31
|
+
/** Targets registered for refresh. */
|
|
32
|
+
refreshTargets: Loadable[];
|
|
33
|
+
/**
|
|
34
|
+
* Register a target with this model for refreshing.
|
|
35
|
+
*
|
|
36
|
+
* Not typically called directly by applications. Hoist will automatically register
|
|
37
|
+
* HoistModels that implement loading when their owning Component is first mounted.
|
|
38
|
+
*/
|
|
39
|
+
register(target: Loadable): void;
|
|
40
|
+
/**
|
|
41
|
+
* Unregister a target from this model.
|
|
42
|
+
*/
|
|
43
|
+
unregister(target: Loadable): void;
|
|
44
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LoadSpec } from '../load';
|
|
2
|
+
import { RefreshContextModel } from './';
|
|
3
|
+
/**
|
|
4
|
+
* Top-level refresh context model - triggers a full refresh of the app via a call to `loadAsync()`
|
|
5
|
+
* on the AppModel, followed by refreshes of any target models within the component hierarchy.
|
|
6
|
+
*
|
|
7
|
+
* An instance of this object is installed and linked by the framework as `XH.refreshContextModel`
|
|
8
|
+
* and should *not* be created or managed by application code.
|
|
9
|
+
*
|
|
10
|
+
* The `XH.refreshAppAsync()` convenience method is the recommended entry-point for apps to call.
|
|
11
|
+
*/
|
|
12
|
+
export declare class RootRefreshContextModel extends RefreshContextModel {
|
|
13
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
14
|
+
}
|