@ahoo-wang/wow-view-engine 10.0.0-alpha.6 → 10.0.0-beta.1
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/README.md +60 -16
- package/README.zh-CN.md +55 -16
- package/dist/{actions-CgaL6eEe.js → actions-ClYpI7gy.js} +4004 -3956
- package/dist/actions-ClYpI7gy.js.map +1 -0
- package/dist/analysis/additive.d.ts +2 -2
- package/dist/analysis/additive.d.ts.map +1 -1
- package/dist/analysis/boxplot.d.ts.map +1 -1
- package/dist/analysis/bucketChange.d.ts +1 -1
- package/dist/analysis/buckets.d.ts +5 -5
- package/dist/analysis/buckets.d.ts.map +1 -1
- package/dist/analysis/budget.d.ts.map +1 -1
- package/dist/analysis/candidates.d.ts +2 -1
- package/dist/analysis/candidates.d.ts.map +1 -1
- package/dist/analysis/candlestick.d.ts.map +1 -1
- package/dist/analysis/capability.d.ts.map +1 -1
- package/dist/analysis/cartesian.d.ts.map +1 -1
- package/dist/analysis/chartFamilies.d.ts +1 -1
- package/dist/analysis/chartOptions.d.ts +13 -2
- package/dist/analysis/chartOptions.d.ts.map +1 -1
- package/dist/analysis/chartSlots.d.ts.map +1 -1
- package/dist/analysis/compile.d.ts +1 -1
- package/dist/analysis/compile.d.ts.map +1 -1
- package/dist/analysis/currency.d.ts.map +1 -1
- package/dist/analysis/dangling.d.ts +2 -1
- package/dist/analysis/dangling.d.ts.map +1 -1
- package/dist/analysis/defaults.d.ts +10 -9
- package/dist/analysis/defaults.d.ts.map +1 -1
- package/dist/analysis/derived.d.ts +2 -2
- package/dist/analysis/derived.d.ts.map +1 -1
- package/dist/analysis/drill.d.ts +12 -6
- package/dist/analysis/drill.d.ts.map +1 -1
- package/dist/analysis/drillFilter.d.ts.map +1 -1
- package/dist/analysis/expand.d.ts +1 -1
- package/dist/analysis/expand.d.ts.map +1 -1
- package/dist/analysis/expressions.d.ts.map +1 -1
- package/dist/analysis/familyRules.d.ts +2 -2
- package/dist/analysis/familyRules.d.ts.map +1 -1
- package/dist/analysis/familySlots.d.ts +4 -4
- package/dist/analysis/fitCharts.d.ts +2 -2
- package/dist/analysis/fitCharts.d.ts.map +1 -1
- package/dist/analysis/formula.d.ts +10 -9
- package/dist/analysis/formula.d.ts.map +1 -1
- package/dist/analysis/granularity.d.ts +2 -2
- package/dist/analysis/granularity.d.ts.map +1 -1
- package/dist/analysis/having.d.ts +2 -1
- package/dist/analysis/having.d.ts.map +1 -1
- package/dist/analysis/logScale.d.ts +1 -1
- package/dist/analysis/metricCard.d.ts +2 -2
- package/dist/analysis/metricCard.d.ts.map +1 -1
- package/dist/analysis/metricCondition.d.ts +1 -1
- package/dist/analysis/metricCondition.d.ts.map +1 -1
- package/dist/analysis/metricFormat.d.ts +3 -2
- package/dist/analysis/metricFormat.d.ts.map +1 -1
- package/dist/analysis/metricOrder.d.ts +2 -2
- package/dist/analysis/metricOrder.d.ts.map +1 -1
- package/dist/analysis/metricWindow.d.ts.map +1 -1
- package/dist/analysis/project.d.ts +8 -3
- package/dist/analysis/project.d.ts.map +1 -1
- package/dist/analysis/serverLines.d.ts +5 -5
- package/dist/analysis/serverLines.d.ts.map +1 -1
- package/dist/analysis/splitOther.d.ts +1 -1
- package/dist/analysis/timeAxis.d.ts +3 -2
- package/dist/analysis/timeAxis.d.ts.map +1 -1
- package/dist/analysis/top.d.ts +1 -1
- package/dist/analysis/top.d.ts.map +1 -1
- package/dist/analysis/validateFamilies.d.ts.map +1 -1
- package/dist/analysis/validateGroups.d.ts.map +1 -1
- package/dist/analysis/validateLevels.d.ts.map +1 -1
- package/dist/analysis/validateMetrics.d.ts.map +1 -1
- package/dist/analysis/validateOffers.d.ts.map +1 -1
- package/dist/analysis/validateReferences.d.ts +2 -2
- package/dist/analysis/validateTop.d.ts +1 -1
- package/dist/analysis/validateTop.d.ts.map +1 -1
- package/dist/capabilities/aliases.d.ts.map +1 -1
- package/dist/capabilities/analysis.d.ts.map +1 -1
- package/dist/capabilities/cache.d.ts +3 -20
- package/dist/capabilities/cache.d.ts.map +1 -1
- package/dist/capabilities/fields.d.ts +2 -2
- package/dist/capabilities/fields.d.ts.map +1 -1
- package/dist/capabilities/match.d.ts +15 -5
- package/dist/capabilities/match.d.ts.map +1 -1
- package/dist/capabilities/narrow.d.ts.map +1 -1
- package/dist/capabilities/open.d.ts.map +1 -1
- package/dist/capabilities/record.d.ts.map +1 -1
- package/dist/{cartesianBrush-HLU12ig5.js → cartesianBrush-bgRuE6Ks.js} +3 -5
- package/dist/cartesianBrush-bgRuE6Ks.js.map +1 -0
- package/dist/dashboard/click.d.ts +9 -9
- package/dist/dashboard/click.d.ts.map +1 -1
- package/dist/dashboard/clickDraft.d.ts +1 -1
- package/dist/dashboard/edit.d.ts +6 -6
- package/dist/dashboard/filterEdit.d.ts +5 -6
- package/dist/dashboard/filterEdit.d.ts.map +1 -1
- package/dist/dashboard/filters.d.ts +9 -10
- package/dist/dashboard/filters.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +0 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/layout.d.ts +2 -2
- package/dist/dashboard/merge.d.ts +2 -2
- package/dist/dashboard/panelLook.d.ts +1 -1
- package/dist/dashboard/panels.d.ts +1 -1
- package/dist/dashboard/timeBindings.d.ts +2 -12
- package/dist/dashboard/timeBindings.d.ts.map +1 -1
- package/dist/dashboard/validate.d.ts.map +1 -1
- package/dist/dashboard/validateFilters.d.ts +2 -2
- package/dist/dashboard/wiring.d.ts +5 -5
- package/dist/{echarts-HUGzxow7.js → echarts-rjTKpBsf.js} +3 -4
- package/dist/{echarts-HUGzxow7.js.map → echarts-rjTKpBsf.js.map} +1 -1
- package/dist/{echartsGeo-BWbXo9ef.js → echartsGeo-qZv2ZF9e.js} +2 -3
- package/dist/{echartsGeo-BWbXo9ef.js.map → echartsGeo-qZv2ZF9e.js.map} +1 -1
- package/dist/{echartsHierarchy-Cm-9-LN9.js → echartsHierarchy-DHNP9W4v.js} +2 -3
- package/dist/{echartsHierarchy-Cm-9-LN9.js.map → echartsHierarchy-DHNP9W4v.js.map} +1 -1
- package/dist/{echartsStatistics-Lq-BjHez.js → echartsStatistics-DCDWqvde.js} +2 -3
- package/dist/{echartsStatistics-Lq-BjHez.js.map → echartsStatistics-DCDWqvde.js.map} +1 -1
- package/dist/{echartsTime-gMH0oF0x.js → echartsTime-DIRSRMnr.js} +2 -3
- package/dist/{echartsTime-gMH0oF0x.js.map → echartsTime-DIRSRMnr.js.map} +1 -1
- package/dist/export-D1udIJPm.js +29 -0
- package/dist/export-D1udIJPm.js.map +1 -0
- package/dist/filter/describe.d.ts +6 -6
- package/dist/filter/describe.d.ts.map +1 -1
- package/dist/filter/kinds/array.d.ts.map +1 -1
- package/dist/filter/kinds/boolean.d.ts.map +1 -1
- package/dist/filter/kinds/dateTime.d.ts.map +1 -1
- package/dist/filter/kinds/deletion.d.ts +2 -2
- package/dist/filter/kinds/deletion.d.ts.map +1 -1
- package/dist/filter/kinds/duration.d.ts.map +1 -1
- package/dist/filter/kinds/elementMatch.d.ts.map +1 -1
- package/dist/filter/kinds/entries.d.ts.map +1 -1
- package/dist/filter/kinds/enum.d.ts.map +1 -1
- package/dist/filter/kinds/metadata.d.ts.map +1 -1
- package/dist/filter/kinds/number.d.ts.map +1 -1
- package/dist/filter/kinds/presence.d.ts +1 -0
- package/dist/filter/kinds/presence.d.ts.map +1 -1
- package/dist/filter/kinds/reference.d.ts +5 -0
- package/dist/filter/kinds/reference.d.ts.map +1 -1
- package/dist/filter/kinds/string.d.ts.map +1 -1
- package/dist/filter/operatorWords.d.ts +21 -0
- package/dist/filter/operatorWords.d.ts.map +1 -0
- package/dist/filter/search.d.ts.map +1 -1
- package/dist/filter/time.d.ts +2 -2
- package/dist/filter/time.d.ts.map +1 -1
- package/dist/filter/tree.d.ts.map +1 -1
- package/dist/filter/validate.d.ts.map +1 -1
- package/dist/filter/values.d.ts +6 -5
- package/dist/filter/values.d.ts.map +1 -1
- package/dist/index.d.ts +53 -89
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +214 -213
- package/dist/index.js.map +1 -1
- package/dist/model/analysis.d.ts +61 -59
- package/dist/model/analysis.d.ts.map +1 -1
- package/dist/model/chart.d.ts +16 -6
- package/dist/model/chart.d.ts.map +1 -1
- package/dist/model/config.d.ts +2 -2
- package/dist/model/dashboard.d.ts +28 -48
- package/dist/model/dashboard.d.ts.map +1 -1
- package/dist/model/definition.d.ts +17 -17
- package/dist/model/definition.d.ts.map +1 -1
- package/dist/model/field.d.ts +35 -5
- package/dist/model/field.d.ts.map +1 -1
- package/dist/model/filter.d.ts +5 -5
- package/dist/model/filter.d.ts.map +1 -1
- package/dist/model/index.d.ts +2 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/limits.d.ts +29 -0
- package/dist/model/limits.d.ts.map +1 -1
- package/dist/model/record.d.ts +7 -6
- package/dist/model/record.d.ts.map +1 -1
- package/dist/model/text.d.ts +1 -1
- package/dist/model/values.d.ts +8 -0
- package/dist/model/values.d.ts.map +1 -0
- package/dist/model/wire.d.ts +32 -0
- package/dist/model/wire.d.ts.map +1 -0
- package/dist/react/actionRunner.d.ts +16 -1
- package/dist/react/actionRunner.d.ts.map +1 -1
- package/dist/react/analysisEditing.d.ts +79 -46
- package/dist/react/analysisEditing.d.ts.map +1 -1
- package/dist/react/analysisFields.d.ts +5 -5
- package/dist/react/analysisFields.d.ts.map +1 -1
- package/dist/react/engineContext.d.ts +17 -0
- package/dist/react/engineContext.d.ts.map +1 -0
- package/dist/react/index.d.ts +17 -15
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/issues.d.ts +0 -1
- package/dist/react/issues.d.ts.map +1 -1
- package/dist/react/manager/wording.d.ts +1 -1
- package/dist/react/manager/wording.d.ts.map +1 -1
- package/dist/react/recordColumns.d.ts +1 -1
- package/dist/react/recordColumns.d.ts.map +1 -1
- package/dist/react/recordDraft.d.ts.map +1 -1
- package/dist/react/recordEdits.d.ts.map +1 -1
- package/dist/react/referenceNames.d.ts +20 -0
- package/dist/react/referenceNames.d.ts.map +1 -0
- package/dist/react/useAnalysisEditor.d.ts +10 -9
- package/dist/react/useAnalysisEditor.d.ts.map +1 -1
- package/dist/react/useAnalysisResult.d.ts +17 -3
- package/dist/react/useAnalysisResult.d.ts.map +1 -1
- package/dist/react/useAutoRefresh.d.ts +8 -6
- package/dist/react/useAutoRefresh.d.ts.map +1 -1
- package/dist/react/useCreateViewEngine.d.ts +11 -0
- package/dist/react/useCreateViewEngine.d.ts.map +1 -0
- package/dist/react/useDashboard.d.ts +12 -5
- package/dist/react/useDashboard.d.ts.map +1 -1
- package/dist/react/useDatasets.d.ts +33 -21
- package/dist/react/useDatasets.d.ts.map +1 -1
- package/dist/react/useFilterEditor.d.ts.map +1 -1
- package/dist/react/{useViewEngine.d.ts → useOpenView.d.ts} +22 -36
- package/dist/react/useOpenView.d.ts.map +1 -0
- package/dist/react/usePanelFollowUps.d.ts +11 -2
- package/dist/react/usePanelFollowUps.d.ts.map +1 -1
- package/dist/react/useRecordActions.d.ts +16 -3
- package/dist/react/useRecordActions.d.ts.map +1 -1
- package/dist/react/useRecordDetail.d.ts +9 -6
- package/dist/react/useRecordDetail.d.ts.map +1 -1
- package/dist/react/useRecordExport.d.ts +5 -1
- package/dist/react/useRecordExport.d.ts.map +1 -1
- package/dist/react/useRecordKanban.d.ts +1 -1
- package/dist/react/useRecordTable.d.ts +2 -4
- package/dist/react/useRecordTable.d.ts.map +1 -1
- package/dist/react/useReferenceLabels.d.ts +9 -0
- package/dist/react/useReferenceLabels.d.ts.map +1 -0
- package/dist/react/useReshape.d.ts +2 -2
- package/dist/react/useSaveCommands.d.ts +9 -7
- package/dist/react/useSaveCommands.d.ts.map +1 -1
- package/dist/react/useValueCandidates.d.ts +17 -6
- package/dist/react/useValueCandidates.d.ts.map +1 -1
- package/dist/react/useViewList.d.ts +23 -11
- package/dist/react/useViewList.d.ts.map +1 -1
- package/dist/react/useViewManager.d.ts +6 -1
- package/dist/react/useViewManager.d.ts.map +1 -1
- package/dist/react/useViewRuntime.d.ts +23 -0
- package/dist/react/useViewRuntime.d.ts.map +1 -0
- package/dist/react/useWorkbench.d.ts +1 -1
- package/dist/react/useWorkbench.d.ts.map +1 -1
- package/dist/react/workbench/handOver.d.ts +10 -3
- package/dist/react/workbench/handOver.d.ts.map +1 -1
- package/dist/react/workbench/releaseDeleted.d.ts +13 -6
- package/dist/react/workbench/releaseDeleted.d.ts.map +1 -1
- package/dist/react-Cqk337ck.js +4202 -0
- package/dist/react-Cqk337ck.js.map +1 -0
- package/dist/react-router/index.d.ts +1 -0
- package/dist/react-router/index.d.ts.map +1 -1
- package/dist/react-router.js +1 -2
- package/dist/react-router.js.map +1 -1
- package/dist/react.js +1 -3
- package/dist/record/compile.d.ts.map +1 -1
- package/dist/record/kanban.d.ts +2 -2
- package/dist/record/kanban.d.ts.map +1 -1
- package/dist/record/paging.d.ts +11 -2
- package/dist/record/paging.d.ts.map +1 -1
- package/dist/record/project.d.ts +17 -1
- package/dist/record/project.d.ts.map +1 -1
- package/dist/record/summaryCurrency.d.ts.map +1 -1
- package/dist/record/validate.d.ts.map +1 -1
- package/dist/{routes-DvPNPlQP.js → routes-CMXKbAo2.js} +2 -3
- package/dist/{routes-DvPNPlQP.js.map → routes-CMXKbAo2.js.map} +1 -1
- package/dist/runtime/actions.d.ts +42 -7
- package/dist/runtime/actions.d.ts.map +1 -1
- package/dist/runtime/autoApply.d.ts +1 -1
- package/dist/runtime/capabilities.d.ts +2 -2
- package/dist/runtime/capabilities.d.ts.map +1 -1
- package/dist/runtime/dashboard/anchor.d.ts +2 -2
- package/dist/runtime/dashboard/anchor.d.ts.map +1 -1
- package/dist/runtime/dashboard/canonical.d.ts +2 -2
- package/dist/runtime/dashboard/commands.d.ts +2 -2
- package/dist/runtime/dashboard/commands.d.ts.map +1 -1
- package/dist/runtime/dashboard/contract.d.ts +6 -6
- package/dist/runtime/dashboard/contract.d.ts.map +1 -1
- package/dist/runtime/dashboard/editing.d.ts +2 -2
- package/dist/runtime/dashboard/filterCandidates.d.ts +1 -1
- package/dist/runtime/dashboard/filterValues.d.ts +16 -4
- package/dist/runtime/dashboard/filterValues.d.ts.map +1 -1
- package/dist/runtime/dashboard/grouping.d.ts +4 -4
- package/dist/runtime/dashboard/grouping.d.ts.map +1 -1
- package/dist/runtime/dashboard/panelRun.d.ts +2 -2
- package/dist/runtime/dashboard/panels.d.ts +1 -1
- package/dist/runtime/dashboard/press.d.ts +1 -1
- package/dist/runtime/dashboard/press.d.ts.map +1 -1
- package/dist/runtime/dashboard/references.d.ts +1 -1
- package/dist/runtime/dashboard/references.d.ts.map +1 -1
- package/dist/runtime/dashboardRuntime.d.ts +5 -2
- package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
- package/dist/runtime/datasetResources.d.ts +57 -70
- package/dist/runtime/datasetResources.d.ts.map +1 -1
- package/dist/runtime/define/defineDataset.d.ts +1 -1
- package/dist/runtime/define/defineView.d.ts +1 -1
- package/dist/runtime/define/defineView.d.ts.map +1 -1
- package/dist/runtime/define/fields.d.ts +2 -2
- package/dist/runtime/define/fields.d.ts.map +1 -1
- package/dist/runtime/define/spec.d.ts +5 -1
- package/dist/runtime/define/spec.d.ts.map +1 -1
- package/dist/runtime/deprecated.d.ts.map +1 -1
- package/dist/runtime/environment.d.ts +95 -47
- package/dist/runtime/environment.d.ts.map +1 -1
- package/dist/runtime/execute.d.ts +2 -2
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/exportRows.d.ts +10 -0
- package/dist/runtime/exportRows.d.ts.map +1 -1
- package/dist/runtime/failure/failures.d.ts +23 -11
- package/dist/runtime/failure/failures.d.ts.map +1 -1
- package/dist/runtime/failure/issueReport.d.ts.map +1 -1
- package/dist/runtime/failure/queryFailure.d.ts +1 -1
- package/dist/runtime/failure/queryFailure.d.ts.map +1 -1
- package/dist/runtime/failure/unavailable.d.ts +1 -1
- package/dist/runtime/fetchRecord.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +5 -3
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/instanceWrites.d.ts +15 -9
- package/dist/runtime/instanceWrites.d.ts.map +1 -1
- package/dist/runtime/kanban.d.ts +1 -1
- package/dist/runtime/labelIds.d.ts +56 -0
- package/dist/runtime/labelIds.d.ts.map +1 -0
- package/dist/runtime/navigation.d.ts +6 -6
- package/dist/runtime/panelViews.d.ts +3 -5
- package/dist/runtime/panelViews.d.ts.map +1 -1
- package/dist/runtime/pending.d.ts +2 -2
- package/dist/runtime/permissions.d.ts +2 -2
- package/dist/runtime/permissions.d.ts.map +1 -1
- package/dist/runtime/preferences.d.ts +2 -2
- package/dist/runtime/preferences.d.ts.map +1 -1
- package/dist/runtime/queryWeight.d.ts.map +1 -1
- package/dist/runtime/recordRuntime.d.ts +10 -1
- package/dist/runtime/recordRuntime.d.ts.map +1 -1
- package/dist/runtime/referenceLabels.d.ts +170 -0
- package/dist/runtime/referenceLabels.d.ts.map +1 -0
- package/dist/runtime/resources.d.ts +35 -94
- package/dist/runtime/resources.d.ts.map +1 -1
- package/dist/runtime/restyle.d.ts +1 -1
- package/dist/runtime/runtimeFactory.d.ts +5 -4
- package/dist/runtime/runtimeFactory.d.ts.map +1 -1
- package/dist/runtime/source.d.ts +55 -48
- package/dist/runtime/source.d.ts.map +1 -1
- package/dist/runtime/summaries.d.ts +9 -1
- package/dist/runtime/summaries.d.ts.map +1 -1
- package/dist/runtime/tabMemory.d.ts +1 -1
- package/dist/runtime/validateFields.d.ts.map +1 -1
- package/dist/runtime/valueCandidates.d.ts.map +1 -1
- package/dist/runtime/viewEngine.d.ts +103 -105
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/runtime/viewEngineOptions.d.ts +79 -0
- package/dist/runtime/viewEngineOptions.d.ts.map +1 -0
- package/dist/runtime/viewRuntime.d.ts +6 -9
- package/dist/runtime/viewRuntime.d.ts.map +1 -1
- package/dist/runtime/viewRuntimeTypes.d.ts +39 -8
- package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
- package/dist/store/MemoryViewStore.d.ts +24 -16
- package/dist/store/MemoryViewStore.d.ts.map +1 -1
- package/dist/store/ViewStore.d.ts +45 -17
- package/dist/store/ViewStore.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/actions.d.ts +6 -4
- package/dist/testing/actions.d.ts.map +1 -1
- package/dist/testing/aggregate.d.ts +4 -2
- package/dist/testing/aggregate.d.ts.map +1 -1
- package/dist/testing/filter.d.ts +3 -3
- package/dist/testing/filter.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/source.d.ts +4 -4
- package/dist/testing/source.d.ts.map +1 -1
- package/dist/testing.js +180 -177
- package/dist/testing.js.map +1 -1
- package/dist/theme-check.mjs +102 -127
- package/dist/ui/DashboardWorkbench.d.ts +2 -2
- package/dist/ui/DashboardWorkbench.d.ts.map +1 -1
- package/dist/ui/DataWorkbench.d.ts +2 -2
- package/dist/ui/DataWorkbench.d.ts.map +1 -1
- package/dist/ui/DatasetWorkbench.d.ts +11 -21
- package/dist/ui/DatasetWorkbench.d.ts.map +1 -1
- package/dist/ui/EmbeddedDashboard.d.ts +1 -1
- package/dist/ui/EmbeddedDashboard.d.ts.map +1 -1
- package/dist/ui/EmbeddedView.d.ts +1 -1
- package/dist/ui/ViewHost.d.ts +6 -6
- package/dist/ui/ViewHost.d.ts.map +1 -1
- package/dist/ui/actions/ActionButtons.d.ts.map +1 -1
- package/dist/ui/actions/ActionDialog.d.ts.map +1 -1
- package/dist/ui/actions/ActionSurface.d.ts +6 -0
- package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
- package/dist/ui/actions/BulkStatus.d.ts.map +1 -1
- package/dist/ui/actions/kanbanMove.d.ts +1 -1
- package/dist/ui/analysis/AnalysisTable.d.ts.map +1 -1
- package/dist/ui/analysis/AnalysisToolbar.d.ts +1 -1
- package/dist/ui/analysis/AnalysisToolbar.d.ts.map +1 -1
- package/dist/ui/analysis/AxesTab.d.ts +1 -1
- package/dist/ui/analysis/CardMenu.d.ts +1 -1
- package/dist/ui/analysis/ChartOptions.d.ts +1 -1
- package/dist/ui/analysis/ChartOptions.d.ts.map +1 -1
- package/dist/ui/analysis/ChartPicker.d.ts +1 -1
- package/dist/ui/analysis/CompositionOptions.d.ts +1 -1
- package/dist/ui/analysis/CurrencyStrip.d.ts.map +1 -1
- package/dist/ui/analysis/DataTab.d.ts +1 -1
- package/dist/ui/analysis/DimensionCard.d.ts.map +1 -1
- package/dist/ui/analysis/DisplayTab.d.ts +1 -1
- package/dist/ui/analysis/DisplayTab.d.ts.map +1 -1
- package/dist/ui/analysis/DrillMenu.d.ts +1 -1
- package/dist/ui/analysis/DroppedNotice.d.ts +1 -1
- package/dist/ui/analysis/ElementsSlot.d.ts +1 -1
- package/dist/ui/analysis/ExportMenu.d.ts +3 -3
- package/dist/ui/analysis/ExportMenu.d.ts.map +1 -1
- package/dist/ui/analysis/FormulaCard.d.ts.map +1 -1
- package/dist/ui/analysis/HavingRows.d.ts +1 -1
- package/dist/ui/analysis/HavingRows.d.ts.map +1 -1
- package/dist/ui/analysis/LevelOptions.d.ts +1 -1
- package/dist/ui/analysis/MapOptions.d.ts +1 -1
- package/dist/ui/analysis/MetricCard.d.ts +1 -1
- package/dist/ui/analysis/MetricCard.d.ts.map +1 -1
- package/dist/ui/analysis/MetricCondition.d.ts +1 -1
- package/dist/ui/analysis/MetricCondition.d.ts.map +1 -1
- package/dist/ui/analysis/MetricSlot.d.ts +1 -1
- package/dist/ui/analysis/MetricSlot.d.ts.map +1 -1
- package/dist/ui/analysis/RangeSlot.d.ts +1 -1
- package/dist/ui/analysis/ReferenceOptions.d.ts +1 -1
- package/dist/ui/analysis/TermTip.d.ts +1 -1
- package/dist/ui/analysis/TopRow.d.ts +1 -1
- package/dist/ui/analysis/TopRow.d.ts.map +1 -1
- package/dist/ui/analysis/Tray.d.ts +1 -1
- package/dist/ui/analysis/Tray.d.ts.map +1 -1
- package/dist/ui/analysis/VisualizationPanel.d.ts +2 -2
- package/dist/ui/analysis/VisualizationPanel.d.ts.map +1 -1
- package/dist/ui/analysis/editing.d.ts +2 -2
- package/dist/ui/analysis/editing.d.ts.map +1 -1
- package/dist/ui/analysis/exportOffer.d.ts +3 -3
- package/dist/ui/analysis/headerSort.d.ts.map +1 -1
- package/dist/ui/analysis/imageExport.d.ts +3 -3
- package/dist/ui/analysis/imageExport.d.ts.map +1 -1
- package/dist/ui/charts/EChart.d.ts +2 -2
- package/dist/ui/charts/GeoMap.d.ts +1 -1
- package/dist/ui/charts/Heatmap.d.ts +1 -1
- package/dist/ui/charts/MetricCard.d.ts.map +1 -1
- package/dist/ui/charts/PieSlices.d.ts +1 -1
- package/dist/ui/charts/ScatterPoints.d.ts +1 -1
- package/dist/ui/charts/ScatterPoints.d.ts.map +1 -1
- package/dist/ui/charts/axis.d.ts +2 -2
- package/dist/ui/charts/cartesianTooltip.d.ts +2 -2
- package/dist/ui/charts/dateTicks.d.ts +2 -2
- package/dist/ui/charts/dateTicks.d.ts.map +1 -1
- package/dist/ui/charts/family.d.ts +1 -1
- package/dist/ui/charts/family.d.ts.map +1 -1
- package/dist/ui/charts/familyViews.d.ts +1 -1
- package/dist/ui/charts/frameClass.d.ts +2 -2
- package/dist/ui/charts/highlight.d.ts +2 -2
- package/dist/ui/charts/image.d.ts +22 -6
- package/dist/ui/charts/image.d.ts.map +1 -1
- package/dist/ui/charts/maps.d.ts +1 -1
- package/dist/ui/charts/waterfallOption.d.ts +2 -2
- package/dist/ui/colorMode.d.ts +1 -2
- package/dist/ui/colorMode.d.ts.map +1 -1
- package/dist/ui/columns/ColumnSettings.d.ts +6 -1
- package/dist/ui/columns/ColumnSettings.d.ts.map +1 -1
- package/dist/ui/dashboard/AddMenu.d.ts +2 -2
- package/dist/ui/dashboard/Board.d.ts +1 -1
- package/dist/ui/dashboard/BoardDestination.d.ts +2 -2
- package/dist/ui/dashboard/BoardFilters.d.ts +1 -1
- package/dist/ui/dashboard/BoardWidth.d.ts +1 -1
- package/dist/ui/dashboard/ClickSettings.d.ts +4 -4
- package/dist/ui/dashboard/ContentEditor.d.ts +1 -1
- package/dist/ui/dashboard/DashboardArrange.d.ts +1 -1
- package/dist/ui/dashboard/DashboardGrid.d.ts +3 -3
- package/dist/ui/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/ui/dashboard/{DashboardPanel.d.ts → DashboardPanelCard.d.ts} +3 -3
- package/dist/ui/dashboard/DashboardPanelCard.d.ts.map +1 -0
- package/dist/ui/dashboard/DashboardPanels.d.ts +4 -4
- package/dist/ui/dashboard/DashboardPanels.d.ts.map +1 -1
- package/dist/ui/dashboard/DashboardTabs.d.ts +1 -1
- package/dist/ui/dashboard/EditBar.d.ts +1 -1
- package/dist/ui/dashboard/FilterBar.d.ts +1 -1
- package/dist/ui/dashboard/FilterOrder.d.ts +1 -1
- package/dist/ui/dashboard/FilterReadings.d.ts +1 -1
- package/dist/ui/dashboard/FilterReadings.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterSettings.d.ts +2 -2
- package/dist/ui/dashboard/FilterSettings.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterSheet.d.ts +1 -1
- package/dist/ui/dashboard/FilterWiring.d.ts +2 -2
- package/dist/ui/dashboard/GridBlocksLayer.d.ts +1 -1
- package/dist/ui/dashboard/GroupingControl.d.ts +4 -4
- package/dist/ui/dashboard/GroupingControl.d.ts.map +1 -1
- package/dist/ui/dashboard/NewAnalysisDialog.d.ts +1 -1
- package/dist/ui/dashboard/NewAnalysisDialog.d.ts.map +1 -1
- package/dist/ui/dashboard/OpensNumber.d.ts +17 -0
- package/dist/ui/dashboard/OpensNumber.d.ts.map +1 -0
- package/dist/ui/dashboard/PanelBodies.d.ts +9 -8
- package/dist/ui/dashboard/PanelBodies.d.ts.map +1 -1
- package/dist/ui/dashboard/PanelExport.d.ts +3 -3
- package/dist/ui/dashboard/PanelMenu.d.ts +1 -1
- package/dist/ui/dashboard/PresentationDialog.d.ts +1 -1
- package/dist/ui/dashboard/PresentationDialog.d.ts.map +1 -1
- package/dist/ui/dashboard/ScrollCue.d.ts +1 -1
- package/dist/ui/dashboard/ViewPicker.d.ts +1 -1
- package/dist/ui/dashboard/ViewPicker.d.ts.map +1 -1
- package/dist/ui/dashboard/buildShell.d.ts +2 -2
- package/dist/ui/dashboard/building.d.ts +1 -1
- package/dist/ui/dashboard/building.d.ts.map +1 -1
- package/dist/ui/dashboard/commands.d.ts +4 -4
- package/dist/ui/dashboard/commands.d.ts.map +1 -1
- package/dist/ui/dashboard/extensions.d.ts +1 -1
- package/dist/ui/dashboard/filterModes.d.ts +3 -3
- package/dist/ui/dashboard/filterOutcome.d.ts.map +1 -1
- package/dist/ui/dashboard/findings.d.ts +1 -1
- package/dist/ui/dashboard/gridBlocks.d.ts +1 -1
- package/dist/ui/dashboard/panelFit.d.ts +2 -2
- package/dist/ui/dashboard/press.d.ts +2 -2
- package/dist/ui/dashboard/press.d.ts.map +1 -1
- package/dist/ui/dashboard/reveal.d.ts +1 -1
- package/dist/ui/dashboard/scrollMore.d.ts +1 -1
- package/dist/ui/datasetBindings.d.ts +3 -11
- package/dist/ui/datasetBindings.d.ts.map +1 -1
- package/dist/ui/embed/EmbedFrame.d.ts +1 -1
- package/dist/ui/embed/EmbedFrame.d.ts.map +1 -1
- package/dist/ui/embed/EmbedHead.d.ts +5 -5
- package/dist/ui/embed/EmbedHead.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedAnalysis.d.ts +4 -4
- package/dist/ui/embed/EmbeddedAnalysis.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedRecord.d.ts +1 -1
- package/dist/ui/embed/options.d.ts +4 -4
- package/dist/ui/embed/options.d.ts.map +1 -1
- package/dist/ui/filter/inputs/duration.d.ts.map +1 -1
- package/dist/ui/filter/inputs/remote.d.ts +3 -1
- package/dist/ui/filter/inputs/remote.d.ts.map +1 -1
- package/dist/ui/index.d.ts +6 -7
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/kit/ExportDialog.d.ts +2 -2
- package/dist/ui/kit/ExportDialog.d.ts.map +1 -1
- package/dist/ui/kit/IconButton.d.ts +1 -1
- package/dist/ui/kit/MessagesProvider.d.ts +3 -3
- package/dist/ui/kit/RenameInput.d.ts +2 -2
- package/dist/ui/kit/RenderBoundary.d.ts.map +1 -1
- package/dist/ui/kit/RowItem.d.ts +1 -1
- package/dist/ui/kit/ViewSurface.d.ts +16 -6
- package/dist/ui/kit/ViewSurface.d.ts.map +1 -1
- package/dist/ui/kit/alerts.d.ts +2 -2
- package/dist/ui/kit/alerts.d.ts.map +1 -1
- package/dist/ui/kit/chartFailure.d.ts +1 -3
- package/dist/ui/kit/chartFailure.d.ts.map +1 -1
- package/dist/ui/kit/datePart.d.ts +2 -2
- package/dist/ui/kit/datePart.d.ts.map +1 -1
- package/dist/ui/kit/display.d.ts +25 -6
- package/dist/ui/kit/display.d.ts.map +1 -1
- package/dist/ui/kit/dragPlugins.d.ts +3 -3
- package/dist/ui/kit/failureSink.d.ts +1 -1
- package/dist/ui/kit/failureSink.d.ts.map +1 -1
- package/dist/ui/kit/features.d.ts +2 -2
- package/dist/ui/kit/features.d.ts.map +1 -1
- package/dist/ui/kit/icon.d.ts +9 -0
- package/dist/ui/kit/icon.d.ts.map +1 -0
- package/dist/ui/kit/kinds.d.ts +4 -4
- package/dist/ui/kit/kinds.d.ts.map +1 -1
- package/dist/ui/kit/layout.d.ts +2 -2
- package/dist/ui/kit/messages.d.ts.map +1 -1
- package/dist/ui/kit/popups.d.ts.map +1 -1
- package/dist/ui/kit/presets.d.ts +2 -2
- package/dist/ui/kit/summary.d.ts +8 -10
- package/dist/ui/kit/summary.d.ts.map +1 -1
- package/dist/ui/kit/surfaceContext.d.ts +4 -3
- package/dist/ui/kit/surfaceContext.d.ts.map +1 -1
- package/dist/ui/kit/surfaceKeys.d.ts +1 -1
- package/dist/ui/kit/toolbar.d.ts +21 -4
- package/dist/ui/kit/toolbar.d.ts.map +1 -1
- package/dist/ui/kit/variants.d.ts +5 -5
- package/dist/ui/manage/DatasetWordingForm.d.ts +2 -2
- package/dist/ui/messages/analysis.d.ts +61 -57
- package/dist/ui/messages/analysis.d.ts.map +1 -1
- package/dist/ui/messages/building.d.ts +1 -1
- package/dist/ui/messages/capabilities.d.ts +5 -1
- package/dist/ui/messages/capabilities.d.ts.map +1 -1
- package/dist/ui/messages/clicks.d.ts +1 -1
- package/dist/ui/messages/dashboard.d.ts +1 -0
- package/dist/ui/messages/dashboard.d.ts.map +1 -1
- package/dist/ui/messages/datasets.d.ts +3 -2
- package/dist/ui/messages/datasets.d.ts.map +1 -1
- package/dist/ui/messages/definition.d.ts +3 -1
- package/dist/ui/messages/definition.d.ts.map +1 -1
- package/dist/ui/messages/embed.d.ts +1 -1
- package/dist/ui/messages/en.d.ts +241 -221
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/export.d.ts +1 -1
- package/dist/ui/messages/filter.d.ts +98 -98
- package/dist/ui/messages/filter.d.ts.map +1 -1
- package/dist/ui/messages/filters.d.ts +1 -1
- package/dist/ui/messages/record.d.ts +20 -15
- package/dist/ui/messages/record.d.ts.map +1 -1
- package/dist/ui/messages/scope.d.ts +1 -0
- package/dist/ui/messages/scope.d.ts.map +1 -1
- package/dist/ui/messages/view.d.ts +51 -49
- package/dist/ui/messages/view.d.ts.map +1 -1
- package/dist/ui/messages/wireKey.d.ts +17 -0
- package/dist/ui/messages/wireKey.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui/record/CardSettings.d.ts.map +1 -1
- package/dist/ui/record/CardSummaries.d.ts +1 -1
- package/dist/ui/record/OffscreenSummary.d.ts +1 -1
- package/dist/ui/record/RecordDetail.d.ts +8 -3
- package/dist/ui/record/RecordDetail.d.ts.map +1 -1
- package/dist/ui/record/RecordKanban.d.ts +1 -1
- package/dist/ui/record/RecordPagination.d.ts +3 -1
- package/dist/ui/record/RecordPagination.d.ts.map +1 -1
- package/dist/ui/record/SelectionBar.d.ts +2 -2
- package/dist/ui/record/SortableHeader.d.ts.map +1 -1
- package/dist/ui/record/cells.d.ts.map +1 -1
- package/dist/ui/record/exportOffer.d.ts +1 -1
- package/dist/ui/record/exportOffer.d.ts.map +1 -1
- package/dist/ui/record/kanbanDrag.d.ts +2 -2
- package/dist/ui/record/offscreenSummaries.d.ts +2 -2
- package/dist/ui/record/overflow.d.ts +1 -1
- package/dist/ui/record/queryAnnouncement.d.ts.map +1 -1
- package/dist/ui/record/resultCount.d.ts +10 -0
- package/dist/ui/record/resultCount.d.ts.map +1 -0
- package/dist/ui/record/sticky.d.ts +1 -1
- package/dist/ui/record/useOffscreenColumns.d.ts +1 -1
- package/dist/ui/record/useSummaries.d.ts.map +1 -1
- package/dist/ui/sort/SortSettings.d.ts.map +1 -1
- package/dist/ui/theme/tokens.d.ts +1 -1
- package/dist/ui/viewNavigation.d.ts.map +1 -1
- package/dist/ui/workbench/AddToDashboardDialog.d.ts +1 -1
- package/dist/ui/workbench/AnalysisParts.d.ts +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts.map +1 -1
- package/dist/ui/workbench/OriginBar.d.ts +1 -1
- package/dist/ui/workbench/RecordParts.d.ts.map +1 -1
- package/dist/ui/workbench/ResultBlock.d.ts +1 -1
- package/dist/ui/workbench/SaveActions.d.ts.map +1 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts +7 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts.map +1 -1
- package/dist/ui/workbench/Sidebar.d.ts +2 -2
- package/dist/ui/workbench/StatusLine.d.ts +1 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts +0 -9
- package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
- package/dist/ui/workbench/WorkbenchShell.d.ts +3 -3
- package/dist/ui/workbench/WorkbenchShell.d.ts.map +1 -1
- package/dist/ui/workbench/WriteOutcome.d.ts.map +1 -1
- package/dist/ui/workbench/address.d.ts +4 -2
- package/dist/ui/workbench/address.d.ts.map +1 -1
- package/dist/ui.js +14071 -14046
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-B3B6hbXr.js → viewRuntimeTypes-D08oR6Ke.js} +2150 -2307
- package/dist/viewRuntimeTypes-D08oR6Ke.js.map +1 -0
- package/package.json +13 -13
- package/dist/actions-CgaL6eEe.js.map +0 -1
- package/dist/cartesianBrush-HLU12ig5.js.map +0 -1
- package/dist/clickDraft-CdUtkL4y.js +0 -184
- package/dist/clickDraft-CdUtkL4y.js.map +0 -1
- package/dist/dashboard/migrate.d.ts +0 -33
- package/dist/dashboard/migrate.d.ts.map +0 -1
- package/dist/react/useViewEngine.d.ts.map +0 -1
- package/dist/react-BuHt29n6.js +0 -3855
- package/dist/react-BuHt29n6.js.map +0 -1
- package/dist/runtime/storedViews.d.ts +0 -10
- package/dist/runtime/storedViews.d.ts.map +0 -1
- package/dist/ui/dashboard/DashboardPanel.d.ts.map +0 -1
- package/dist/viewRuntimeTypes-B3B6hbXr.js.map +0 -1
package/dist/runtime/source.d.ts
CHANGED
|
@@ -1,72 +1,79 @@
|
|
|
1
|
-
import { AggregationQuery, CursorPage, CursorQuery,
|
|
2
|
-
import { QueryDescriptorResult } from '../capabilities/cache.js';
|
|
1
|
+
import { AggregationQuery, CursorPage, CursorQuery, DescriptorResult, PagedQuery, PagedList } from '@ahoo-wang/wow-client/dsl';
|
|
3
2
|
import { FieldOption, Issue, RecordData } from '../model/index.js';
|
|
4
3
|
import { AnalysisProjection } from '../analysis/index.js';
|
|
5
4
|
import { RecordProjection, SummaryRow } from '../record/index.js';
|
|
6
|
-
|
|
5
|
+
/** What every read of a source takes: the signal that cancels it. */
|
|
6
|
+
export interface SourceOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Aborted when a newer read takes this one's place or the view that asked
|
|
9
|
+
* is disposed; hand it on to the request.
|
|
10
|
+
*/
|
|
11
|
+
readonly signal?: AbortSignal;
|
|
12
|
+
}
|
|
7
13
|
/**
|
|
8
|
-
* Where a definition's data comes from
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `QueryApi` accepts, and this port exists so that a wow-client query client
|
|
15
|
-
* plugs in unchanged. The controller is the engine's: it aborts it when a
|
|
16
|
-
* newer request takes this one's place, or when it is disposed. A source
|
|
17
|
-
* written by hand reads `abortController?.signal` and never aborts it. Should
|
|
18
|
-
* wow-client move to a signal, this port follows in the same minor
|
|
19
|
-
* (extension.md「宿主实现的接口怎样长」).
|
|
14
|
+
* Where a definition's data comes from: the reads of one Wow query route,
|
|
15
|
+
* in wow-client's own shapes, so any `QueryModelClient` — a generated
|
|
16
|
+
* `…SnapshotQueryClient`, a dataset's `DatasetClient.dataset(…)` — is a
|
|
17
|
+
* source as it is, with no adapter (`test/architecture.test.ts` holds both
|
|
18
|
+
* to it). A source written by hand, for a test or another backend, answers
|
|
19
|
+
* the same shapes and hands `options.signal` on.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* `FilterPagedQuery | PagedQuery`, and `PagedQuery` is deprecated. Picking
|
|
27
|
-
* it would write the deprecated Wow API into the port that every source
|
|
28
|
-
* fills, which `test/architecture.test.ts` bans everywhere else;
|
|
29
|
-
* - `QueryApi.aggregate` answers whatever row type its caller asserts
|
|
30
|
-
* (`Row extends object`), and an asserted row is a row nothing checks.
|
|
31
|
-
* Here it is `RecordData`, so every value arrives as `unknown` and is read
|
|
32
|
-
* through a field's kind;
|
|
33
|
-
* - the pick would spread `QueryApi`'s two type parameters and its per-method
|
|
34
|
-
* generics over every implementation, a test's stub included, for no gain:
|
|
35
|
-
* all three methods are used at one instantiation only.
|
|
36
|
-
*
|
|
37
|
-
* What the pick would have bought — noticing upstream drift — is bought
|
|
38
|
-
* instead by an assignability assertion the compiler checks
|
|
39
|
-
* (`test/architecture.test.ts`, "Wow protocol"): a `QueryApi` must go on
|
|
40
|
-
* being a `ViewSource` without an adapter.
|
|
21
|
+
* Rows are `object`: a client's record type is an interface, which a
|
|
22
|
+
* `Record<string, unknown>` would refuse, and the engine reads every value
|
|
23
|
+
* through a field's path and kind anyway. A page's `total` is `null` when
|
|
24
|
+
* the route counts none, and a lower bound unless `exact`: the record
|
|
25
|
+
* runtime keeps both and says so.
|
|
41
26
|
*/
|
|
42
27
|
export interface ViewSource {
|
|
43
|
-
paged(query:
|
|
44
|
-
cursor(query: CursorQuery,
|
|
45
|
-
aggregate(query: AggregationQuery,
|
|
28
|
+
paged(query: PagedQuery, options?: SourceOptions): Promise<PagedList<object>>;
|
|
29
|
+
cursor(query: CursorQuery, options?: SourceOptions): Promise<CursorPage<object>>;
|
|
30
|
+
aggregate(query: AggregationQuery, options?: SourceOptions): Promise<object[]>;
|
|
46
31
|
/**
|
|
47
32
|
* The source's capability descriptor (capabilities.md 3): given the
|
|
48
|
-
* version already held, an unchanged one answers `notModified`.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* and
|
|
53
|
-
* definition and the default limits alone, as it did before descriptors.
|
|
33
|
+
* version already held, an unchanged one answers `notModified`. The
|
|
34
|
+
* engine reads it once per source before the first view over it runs,
|
|
35
|
+
* narrows each definition to what it admits and takes its limits, and
|
|
36
|
+
* checks it again on its own schedule. Left out, a view runs on the
|
|
37
|
+
* definition and the default limits alone.
|
|
54
38
|
*/
|
|
55
|
-
describe?(
|
|
39
|
+
describe?(version?: string, options?: SourceOptions): Promise<DescriptorResult>;
|
|
56
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* A source as the engine reads it: the same reads, their rows as records.
|
|
43
|
+
* Internal: `resources` takes each `ViewSource` once, at registration, and
|
|
44
|
+
* every read inside the engine goes through this.
|
|
45
|
+
*/
|
|
46
|
+
export interface RecordSource {
|
|
47
|
+
paged(query: PagedQuery, options?: SourceOptions): Promise<PagedList<RecordData>>;
|
|
48
|
+
cursor(query: CursorQuery, options?: SourceOptions): Promise<CursorPage<RecordData>>;
|
|
49
|
+
aggregate(query: AggregationQuery, options?: SourceOptions): Promise<RecordData[]>;
|
|
50
|
+
describe?(version?: string, options?: SourceOptions): Promise<DescriptorResult>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The engine's view of a source: its rows are read as records, through
|
|
54
|
+
* fields, so the one cast the port's `object` rows need is made here.
|
|
55
|
+
*/
|
|
56
|
+
export declare function recordSource(source: ViewSource): RecordSource;
|
|
57
57
|
/**
|
|
58
58
|
* Remote candidates of a `reference` field: a paged search, and a lookup by id
|
|
59
|
-
*
|
|
59
|
+
* that says the values rows and saved configs hold as their labels.
|
|
60
60
|
*/
|
|
61
61
|
export interface OptionSource {
|
|
62
62
|
search(input: {
|
|
63
63
|
query: string;
|
|
64
64
|
cursor?: string;
|
|
65
|
-
},
|
|
65
|
+
}, options?: SourceOptions): Promise<{
|
|
66
66
|
items: FieldOption[];
|
|
67
67
|
nextCursor: string | null;
|
|
68
68
|
}>;
|
|
69
|
-
|
|
69
|
+
/**
|
|
70
|
+
* The options of `ids`, matched to them by `value`. The engine asks once
|
|
71
|
+
* per page for the ids it does not know yet, at most
|
|
72
|
+
* `RuntimeLimits.referenceBatch` to a request and
|
|
73
|
+
* `RuntimeLimits.referenceConcurrency` requests at a time; an id the
|
|
74
|
+
* answer leaves out is shown as itself.
|
|
75
|
+
*/
|
|
76
|
+
resolve(ids: (string | number)[], options?: SourceOptions): Promise<FieldOption[]>;
|
|
70
77
|
}
|
|
71
78
|
/**
|
|
72
79
|
* What one execution produced, already shaped by its kernel. The discriminant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/runtime/source.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,gBAAgB,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,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACrC,SAAS,KAAK,EAAE,CAElB"}
|
|
@@ -6,8 +6,16 @@ import { ViewStore } from '../store/ViewStore.js';
|
|
|
6
6
|
* failure is answered beside an empty list rather than thrown (management.md).
|
|
7
7
|
* An id in the reserved `system:` namespace is dropped and handed to
|
|
8
8
|
* `reserved`: only a definition may declare one.
|
|
9
|
+
*
|
|
10
|
+
* The store's pages are read in turn, the next asked for only once the one
|
|
11
|
+
* before has landed, until the last or `limit` views: a list that reaches
|
|
12
|
+
* the limit is `cut` there, and the rest are not read. A view seen on an
|
|
13
|
+
* earlier page is not listed twice.
|
|
9
14
|
*/
|
|
10
|
-
export declare function storedSummaries(store: ViewStore, definitionId: string, reserved: (id: string) => void
|
|
15
|
+
export declare function storedSummaries(store: ViewStore, definitionId: string, reserved: (id: string) => void, { limit, signal }: {
|
|
16
|
+
limit: number;
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
}): Promise<{
|
|
11
19
|
stored: ViewInstanceSummary[];
|
|
12
20
|
failed: Issue | null;
|
|
13
21
|
cut?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summaries.d.ts","sourceRoot":"","sources":["../../src/runtime/summaries.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"summaries.d.ts","sourceRoot":"","sources":["../../src/runtime/summaries.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGrE;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,EAC9B,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,GACzD,OAAO,CAAC;IACT,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC,CAuBD;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0C;IAEhE,iEAAiE;IACjE,OAAO,CAAC,SAAS,EAAE,SAAS,mBAAmB,EAAE,GAAG,IAAI;IAIxD,yEAAyE;IACzE,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAIlC,4EAA4E;IAC5E,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAItB,qEAAqE;IACrE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;CAGjD"}
|
|
@@ -10,7 +10,7 @@ interface TabMemoryHost {
|
|
|
10
10
|
abandon(handle: WriteHandle): void;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Where each reader last read each dashboard
|
|
13
|
+
* Where each reader last read each dashboard: kept in their
|
|
14
14
|
* preferences for the board's definition (`ViewPreferences.lastTabs`), by
|
|
15
15
|
* instance id, and where a board opens when its host names no tab.
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateFields.d.ts","sourceRoot":"","sources":["../../src/runtime/validateFields.ts"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"validateFields.d.ts","sourceRoot":"","sources":["../../src/runtime/validateFields.ts"],"names":[],"mappings":"AAaA,OAAO,EAgBL,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,SAAS,EACf,SAAS,UAAQ,GAChB,KAAK,EAAE,CA2LT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueCandidates.d.ts","sourceRoot":"","sources":["../../src/runtime/valueCandidates.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAQL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"valueCandidates.d.ts","sourceRoot":"","sources":["../../src/runtime/valueCandidates.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAQL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAKlD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACvE;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,qBAAqB;IAQ9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IARxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkD;IAC1E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAC9D,OAAO,CAAC,UAAU,CAAK;IACvB,iEAAiE;IACjE,OAAO,CAAC,UAAU,CAA2B;gBAG1B,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,MAAM,UAAU,GAAG,IAAI;IAGjD,wEAAwE;IACxE,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAiB7C,yEAAyE;IACzE,KAAK,IAAI,IAAI;YAKC,MAAM;IAqBpB;;;;;OAKG;IACH,OAAO,CAAC,MAAM;YASA,GAAG;CAiDlB"}
|
|
@@ -1,78 +1,16 @@
|
|
|
1
|
-
import { Issue, RuntimeLimits, ViewConfig, ViewDefinition, ViewInstance, ViewAudience, ViewInstanceSummary, ViewPreferences
|
|
1
|
+
import { Issue, RuntimeLimits, TextResolver, ViewConfig, ViewDefinition, ViewInstance, ViewAudience, ViewInstanceSummary, ViewPreferences } from '../model/index.js';
|
|
2
2
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
|
-
import { ViewPermissions, ViewStore } from '../store/ViewStore.js';
|
|
3
|
+
import { ReadOptions, ViewPermissions, ViewStore } from '../store/ViewStore.js';
|
|
4
4
|
import { RuntimeEnvironment } from './environment.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ViewEngineOptions, ViewListing, ViewResource } from './viewEngineOptions.js';
|
|
6
|
+
import { OptionSource } from './source.js';
|
|
7
|
+
import { AnyViewRuntime, CreateInput, OpenOptions, RuntimeFor, SaveAsInput, ViewRuntime } from './viewRuntimeTypes.js';
|
|
8
|
+
import { DatasetWordingEditor } from './datasetResources.js';
|
|
9
|
+
import { DashboardRuntime } from './dashboardRuntime.js';
|
|
7
10
|
import { WriteState } from './write.js';
|
|
8
11
|
import { ConflictChoice, WriteTarget } from './writeLedger.js';
|
|
9
12
|
import { ViewChangeListener } from './viewChanges.js';
|
|
10
|
-
import {
|
|
11
|
-
/**
|
|
12
|
-
* One thing a host registers (host-integration.md 4): a definition, and
|
|
13
|
-
* where its data comes from. A board's definition has no source — it
|
|
14
|
-
* queries nothing of its own.
|
|
15
|
-
*/
|
|
16
|
-
export interface ViewResource {
|
|
17
|
-
definition: ViewDefinition;
|
|
18
|
-
/** Where a data definition's rows come from; a board has none. */
|
|
19
|
-
source?: ViewSource;
|
|
20
|
-
}
|
|
21
|
-
export interface ViewEngineOptions {
|
|
22
|
-
/** What the host registers: each definition, with its data's source. */
|
|
23
|
-
resources: readonly ViewResource[];
|
|
24
|
-
store: ViewStore;
|
|
25
|
-
/** Remote candidates of `reference` fields, by the same key. */
|
|
26
|
-
resolveOptions?(key: string): OptionSource;
|
|
27
|
-
kinds?: FieldKindRegistry;
|
|
28
|
-
/**
|
|
29
|
-
* How the definitions' keys (`text(key)`) are said in the language the
|
|
30
|
-
* engine starts in, for a host with no Provider; a Provider says them in
|
|
31
|
-
* its own (`setText`). Keys stay in the definitions and in every
|
|
32
|
-
* runtime's state, and are read into words as the engine hands them out,
|
|
33
|
-
* so a change of language redraws what is open rather than rebuilding
|
|
34
|
-
* anything (host-integration.md 3.1, D2). Left out, a key reads as
|
|
35
|
-
* itself until a language is set.
|
|
36
|
-
*/
|
|
37
|
-
text?(key: string): string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* The host's budgets over `DEFAULT_RUNTIME_LIMITS`: what is left out keeps
|
|
40
|
-
* its default. The source budgets (`maxPageSize`, `maxPageWindow`,
|
|
41
|
-
* `maxAnalysisRows`, `maxQueryFilterNodes`, `maxFilterValues`) are said by a source's descriptor
|
|
42
|
-
* where it has one, and one given here only lowers it — so leave them out
|
|
43
|
-
* unless the engine should ask for less than the server admits
|
|
44
|
-
* (capabilities.md 4.5).
|
|
45
|
-
*/
|
|
46
|
-
limits?: Partial<RuntimeLimits>;
|
|
47
|
-
environment?: RuntimeEnvironment;
|
|
48
|
-
/** Idempotency keys; overridden in tests to keep them readable. */
|
|
49
|
-
newId?(): string;
|
|
50
|
-
/**
|
|
51
|
-
* Findings with no caller to reject and nothing thrown behind them: a
|
|
52
|
-
* definition's admission, a list entry that was dropped, a change
|
|
53
|
-
* listener that threw. Failures — a query, a store call, an export, a
|
|
54
|
-
* render — go to `environment.onError` instead (D40).
|
|
55
|
-
*
|
|
56
|
-
* Left out, a development build (`NODE_ENV` of `development`) writes them
|
|
57
|
-
* to the console, grouped by resource, each with how to fix it; any other
|
|
58
|
-
* build drops them.
|
|
59
|
-
*/
|
|
60
|
-
onIssue?(issue: Issue): void;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* What a definition's list is right now: every view that could be read, and
|
|
64
|
-
* the reason the rest could not. The declared system views are always in
|
|
65
|
-
* `items`; `failed` names the store's failure when the saved ones are not.
|
|
66
|
-
*/
|
|
67
|
-
export interface ViewListing {
|
|
68
|
-
items: ViewInstanceSummary[];
|
|
69
|
-
failed: Issue | null;
|
|
70
|
-
/**
|
|
71
|
-
* Where the store cut the list (`ViewStore.listLimit`): an audience holds
|
|
72
|
-
* this many, and there may be more. Absent on a whole list (R2-26).
|
|
73
|
-
*/
|
|
74
|
-
cut?: number;
|
|
75
|
-
}
|
|
13
|
+
import { RecordAction } from './actions.js';
|
|
76
14
|
/**
|
|
77
15
|
* The registry and the command entry point: definitions in, runtimes and
|
|
78
16
|
* writes out.
|
|
@@ -94,16 +32,19 @@ export interface ViewListing {
|
|
|
94
32
|
* cannot reach itself: how to read a referenced instance, and how to build a
|
|
95
33
|
* child runtime for it.
|
|
96
34
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
35
|
+
* What the host registered — the definitions, their sources, the words
|
|
36
|
+
* their keys are said in — is held beside it (`resources.ts`), and the
|
|
37
|
+
* members of the same names here hand on to it.
|
|
38
|
+
*
|
|
39
|
+
* Construct it; do not extend it.
|
|
99
40
|
*
|
|
100
41
|
* @sealed
|
|
101
42
|
*/
|
|
102
|
-
export declare class ViewEngine
|
|
43
|
+
export declare class ViewEngine {
|
|
103
44
|
/**
|
|
104
|
-
* The host's store as the engine
|
|
105
|
-
*
|
|
106
|
-
*
|
|
45
|
+
* The host's store as the engine asks it: every call passed on, and every
|
|
46
|
+
* failure told to the host once (`reportingStore`). A stored view is read
|
|
47
|
+
* as the store holds it.
|
|
107
48
|
*/
|
|
108
49
|
readonly store: ViewStore;
|
|
109
50
|
readonly environment: RuntimeEnvironment;
|
|
@@ -113,8 +54,9 @@ export declare class ViewEngine extends EngineResources {
|
|
|
113
54
|
private readonly runner;
|
|
114
55
|
/** What each source admits; see `capabilities.ts`. */
|
|
115
56
|
private readonly capabilities;
|
|
57
|
+
/** What the host registered; see `resources.ts`. */
|
|
58
|
+
private readonly resources;
|
|
116
59
|
private readonly registry;
|
|
117
|
-
protected readonly registered: ReadonlyMap<string, ViewDefinition>;
|
|
118
60
|
private readonly guard;
|
|
119
61
|
private readonly preferenceCache;
|
|
120
62
|
private readonly runtimes;
|
|
@@ -129,9 +71,81 @@ export declare class ViewEngine extends EngineResources {
|
|
|
129
71
|
private readonly changes;
|
|
130
72
|
/** The last summary seen of each instance; see `summaries.ts`. */
|
|
131
73
|
private readonly summaries;
|
|
74
|
+
/** Reference ids read as names, one cache for every view. */
|
|
75
|
+
private readonly labels;
|
|
132
76
|
/** Where each reader last read each board; see `tabMemory.ts`. */
|
|
133
77
|
private readonly tabs;
|
|
134
78
|
constructor(options: ViewEngineOptions);
|
|
79
|
+
/**
|
|
80
|
+
* Every registered definition, by id, as it was declared: its keys
|
|
81
|
+
* (`text(key)`) are said where they are shown (`useSay`, `say`).
|
|
82
|
+
*/
|
|
83
|
+
get definitions(): ReadonlyMap<string, ViewDefinition>;
|
|
84
|
+
/**
|
|
85
|
+
* Adds a resource at run time, or replaces the one of its definition's
|
|
86
|
+
* id (host-integration.md 3.2): a dataset published after the engine was
|
|
87
|
+
* built, its definition derived from its descriptor (`defineDataset`).
|
|
88
|
+
* It is judged and its findings told as the resources given at
|
|
89
|
+
* construction are; views opened after this run on it, those already
|
|
90
|
+
* open keep the definition they opened on until reopened. Every open
|
|
91
|
+
* board is asked again for the views it could not read for want of a
|
|
92
|
+
* definition: a board over datasets opens before their directory is
|
|
93
|
+
* read, and its panels come back once each dataset registers.
|
|
94
|
+
*/
|
|
95
|
+
register(resource: ViewResource): void;
|
|
96
|
+
/**
|
|
97
|
+
* Removes the resource of `definitionId`: a dataset retired, or one the
|
|
98
|
+
* directory no longer lists. Views already open keep running on it;
|
|
99
|
+
* opening another reports the definition as not found, as a saved view
|
|
100
|
+
* of a resource never registered does. `false` when there was none.
|
|
101
|
+
*/
|
|
102
|
+
unregister(definitionId: string): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Checks the words a Provider says the definitions' keys in: its
|
|
105
|
+
* `messages`, in its `language` (host-integration.md 3.1). The Provider
|
|
106
|
+
* calls this as they change; nothing is redrawn or rebuilt by it — the
|
|
107
|
+
* keys are said where they are shown.
|
|
108
|
+
*
|
|
109
|
+
* The words set are checked on their own: a key they lack reads as
|
|
110
|
+
* itself (`definition.text.unknown`), or in the words the engine started
|
|
111
|
+
* with (`definition.text.fallback`) — a Chinese page showing an English
|
|
112
|
+
* label is a gap too. A fallback is told only of words that say any of
|
|
113
|
+
* the definitions' keys at all: words that say none (a Provider with no
|
|
114
|
+
* catalogue of the definitions') leave them to the starting words, as
|
|
115
|
+
* the host meant. Each key is told once per language, and again once
|
|
116
|
+
* that language had it and lacks it again.
|
|
117
|
+
*/
|
|
118
|
+
setText(text: TextResolver | undefined, language?: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* The words the engine was built with for `key` (`ViewEngineOptions.text`),
|
|
121
|
+
* or `undefined`: what a surface says a key in where its Provider's words
|
|
122
|
+
* lack it.
|
|
123
|
+
*/
|
|
124
|
+
startingWord(key: string): string | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Whether a binding the host made (`bind`, host-integration.md 4) names a
|
|
127
|
+
* registered definition. One that names none binds nothing — the routes,
|
|
128
|
+
* the reading and the actions it carries would be lost without a word, a
|
|
129
|
+
* misspelt id looking like a design — so it is told through `onIssue` as
|
|
130
|
+
* `binding.definition.unknown`, once per id. A warning, not an error: a
|
|
131
|
+
* binding may be meant for an engine nested further down (bindings pass
|
|
132
|
+
* to inner hosts), or for a resource a feature flag left out, and a
|
|
133
|
+
* binding that matches nothing breaks nothing. `ViewHost` asks this of
|
|
134
|
+
* every binding it is given.
|
|
135
|
+
*
|
|
136
|
+
* Given the binding's `actions`, it also tells, once per id, of a binding
|
|
137
|
+
* that marks several actions `primary` (`binding.action.primary-extra`, a
|
|
138
|
+
* warning): only the first is drawn as the primary button, the others as
|
|
139
|
+
* ordinary actions.
|
|
140
|
+
*/
|
|
141
|
+
checkBinding(definitionId: string, actions?: readonly RecordAction[]): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* The editor of a dataset's wording, where its resource was registered
|
|
144
|
+
* with one: what the view manager's wording tab reads and saves.
|
|
145
|
+
*/
|
|
146
|
+
wordingOf(definitionId: string): DatasetWordingEditor | undefined;
|
|
147
|
+
/** The remote candidates of `reference` fields under `key` (`ViewEngineOptions.resolveOptions`). */
|
|
148
|
+
resolveOptions(key: string): OptionSource;
|
|
135
149
|
/** What `validateDefinition` said about one definition, for a host to show. */
|
|
136
150
|
definitionIssues(definitionId: string): Issue[];
|
|
137
151
|
permissions(definitionId: string): ViewPermissions;
|
|
@@ -140,7 +154,7 @@ export declare class ViewEngine extends EngineResources {
|
|
|
140
154
|
* the reserved namespace is dropped and reported: only a definition may
|
|
141
155
|
* declare one.
|
|
142
156
|
*/
|
|
143
|
-
list(definitionId: string): Promise<ViewListing>;
|
|
157
|
+
list(definitionId: string, options?: ReadOptions): Promise<ViewListing>;
|
|
144
158
|
/**
|
|
145
159
|
* Told whenever a write changes what a definition's list holds — a view
|
|
146
160
|
* created, saved, renamed or deleted, the ledger's retries and overwrites
|
|
@@ -150,7 +164,7 @@ export declare class ViewEngine extends EngineResources {
|
|
|
150
164
|
* rather than leaving every caller to remember (D15).
|
|
151
165
|
*/
|
|
152
166
|
subscribe(listener: ViewChangeListener): () => void;
|
|
153
|
-
preferences(definitionId: string): Promise<ViewPreferences>;
|
|
167
|
+
preferences(definitionId: string, options?: ReadOptions): Promise<ViewPreferences>;
|
|
154
168
|
/** Opens a saved view, or a code-declared one without touching the store. */
|
|
155
169
|
open(instanceId: string, options?: OpenOptions): Promise<AnyViewRuntime>;
|
|
156
170
|
/** One instance, from the definition's code or from the store. */
|
|
@@ -173,19 +187,13 @@ export declare class ViewEngine extends EngineResources {
|
|
|
173
187
|
* `scope: 'system'` makes it a stored system view, which needs
|
|
174
188
|
* `editSystem` (D81).
|
|
175
189
|
*/
|
|
176
|
-
saveAs(runtime: ViewRuntime, input:
|
|
177
|
-
title: string;
|
|
178
|
-
scope: ViewScope;
|
|
179
|
-
}): Promise<ViewInstance>;
|
|
190
|
+
saveAs(runtime: ViewRuntime, input: SaveAsInput): Promise<ViewInstance>;
|
|
180
191
|
/**
|
|
181
192
|
* Saves a view a dashboard owns as a view of its own (「另存为视图」, D22 C)
|
|
182
193
|
* and points the panel at it (`PanelViews`). A view the board does not
|
|
183
194
|
* own, or a panel it lacks, is refused (`dashboard.panel.not-owned`).
|
|
184
195
|
*/
|
|
185
|
-
saveOwnedView(dashboard:
|
|
186
|
-
title: string;
|
|
187
|
-
scope: ViewScope;
|
|
188
|
-
}): Promise<ViewInstance>;
|
|
196
|
+
saveOwnedView(dashboard: DashboardRuntime, panelId: string, input: SaveAsInput): Promise<ViewInstance>;
|
|
189
197
|
/**
|
|
190
198
|
* Copies the saved view a dashboard panel shows into another audience and
|
|
191
199
|
* points the panel at the copy (「复制为共享视图并替换」, D22 B,
|
|
@@ -194,10 +202,7 @@ export declare class ViewEngine extends EngineResources {
|
|
|
194
202
|
* panel showing no saved view this reader has open is refused
|
|
195
203
|
* (`dashboard.panel.not-referenced`).
|
|
196
204
|
*/
|
|
197
|
-
copyPanelView(dashboard:
|
|
198
|
-
title: string;
|
|
199
|
-
scope: ViewScope;
|
|
200
|
-
}): Promise<ViewInstance>;
|
|
205
|
+
copyPanelView(dashboard: DashboardRuntime, panelId: string, input: SaveAsInput): Promise<ViewInstance>;
|
|
201
206
|
/**
|
|
202
207
|
* 「发布为系统视图」 (D81): a copy of the saved view `id`, as it is saved —
|
|
203
208
|
* not the draft of an open one — under its own title, created as a stored
|
|
@@ -281,13 +286,6 @@ export declare class ViewEngine extends EngineResources {
|
|
|
281
286
|
* new logical write and so takes a new `requestId`.
|
|
282
287
|
*/
|
|
283
288
|
resolveConflict(target: WriteTarget, choice: ConflictChoice): Promise<ViewInstance | ViewPreferences | void>;
|
|
284
|
-
/**
|
|
285
|
-
* `EngineResources.register`, and every open board asked again for the
|
|
286
|
-
* views it could not read for want of a definition (D93): a board over
|
|
287
|
-
* datasets opens before their directory is read, and its panels come
|
|
288
|
-
* back once each dataset registers.
|
|
289
|
-
*/
|
|
290
|
-
register(resource: Parameters<EngineResources['register']>[0]): void;
|
|
291
289
|
/** Open runtimes, for a workbench that tracks its own tabs. */
|
|
292
290
|
openRuntimes(): readonly ViewRuntime[];
|
|
293
291
|
/**
|
|
@@ -298,6 +296,13 @@ export declare class ViewEngine extends EngineResources {
|
|
|
298
296
|
* against, so this is the way to let one go.
|
|
299
297
|
*/
|
|
300
298
|
close(runtime: ViewRuntime): void;
|
|
299
|
+
/**
|
|
300
|
+
* Forgets the names reference ids were read as: of one remote, or
|
|
301
|
+
* of all; of some ids, or every one. The views on screen read the ids
|
|
302
|
+
* again as they draw, so a host that renamed a customer calls this and
|
|
303
|
+
* every view says the new name.
|
|
304
|
+
*/
|
|
305
|
+
invalidateLabels(remote?: string, ids?: Iterable<string | number>): void;
|
|
301
306
|
dispose(): void;
|
|
302
307
|
private attach;
|
|
303
308
|
private build;
|
|
@@ -309,12 +314,5 @@ export declare class ViewEngine extends EngineResources {
|
|
|
309
314
|
* lends those out as closures rather than as members of its own surface.
|
|
310
315
|
*/
|
|
311
316
|
private ledgerHost;
|
|
312
|
-
/**
|
|
313
|
-
* What a command needs about an instance it was given only the id of: the
|
|
314
|
-
* revision to write against, the definition whose list it belongs to, and
|
|
315
|
-
* the open view it came through, from an open view, the last list, or the
|
|
316
|
-
* store.
|
|
317
|
-
*/
|
|
318
|
-
private locate;
|
|
319
317
|
}
|
|
320
318
|
//# sourceMappingURL=viewEngine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewEngine.d.ts","sourceRoot":"","sources":["../../src/runtime/viewEngine.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"viewEngine.d.ts","sourceRoot":"","sources":["../../src/runtime/viewEngine.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACX,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,O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AC;IAIjD,+DAA+D;IAC/D,YAAY,IAAI,SAAS,WAAW,EAAE;IAItC;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAIjC;;;;;OAKG;IACH,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI;IAIxE,OAAO,IAAI,IAAI;IASf,OAAO,CAAC,MAAM;IAiBd,OAAO,CAAC,KAAK;YAWC,gBAAgB;IAQ9B;;;;;OAKG;IACH,OAAO,CAAC,UAAU;CAkBnB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Issue, RuntimeLimits, ViewDefinition, ViewInstanceSummary } from '../model/index.js';
|
|
2
|
+
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
|
+
import { ViewStore } from '../store/ViewStore.js';
|
|
4
|
+
import { RuntimeEnvironment } from './environment.js';
|
|
5
|
+
import { DatasetWordingEditor } from './datasetResources.js';
|
|
6
|
+
import { OptionSource, ViewSource } from './source.js';
|
|
7
|
+
/**
|
|
8
|
+
* One thing a host registers (host-integration.md 4): a definition, and
|
|
9
|
+
* where its data comes from. A board's definition has no source — it
|
|
10
|
+
* queries nothing of its own.
|
|
11
|
+
*/
|
|
12
|
+
export interface ViewResource {
|
|
13
|
+
definition: ViewDefinition;
|
|
14
|
+
/** Where a data definition's rows come from; a board has none. */
|
|
15
|
+
source?: ViewSource;
|
|
16
|
+
/**
|
|
17
|
+
* The editor of a dataset's wording, which the view manager's wording
|
|
18
|
+
* tab reads and saves (`ViewEngine.wordingOf`). `DatasetResources` sets
|
|
19
|
+
* it when its store keeps wording; a host registering a resource of its
|
|
20
|
+
* own leaves it out.
|
|
21
|
+
*/
|
|
22
|
+
wording?: DatasetWordingEditor;
|
|
23
|
+
}
|
|
24
|
+
export interface ViewEngineOptions {
|
|
25
|
+
/** What the host registers: each definition, with its data's source. */
|
|
26
|
+
resources: readonly ViewResource[];
|
|
27
|
+
store: ViewStore;
|
|
28
|
+
/** Remote candidates of `reference` fields, by the same key. */
|
|
29
|
+
resolveOptions?(key: string): OptionSource;
|
|
30
|
+
kinds?: FieldKindRegistry;
|
|
31
|
+
/**
|
|
32
|
+
* How the definitions' keys (`text(key)`) are said in the language the
|
|
33
|
+
* engine starts in, for a host with no Provider; a Provider says them in
|
|
34
|
+
* its own (`setText`). Keys stay in the definitions and in every
|
|
35
|
+
* runtime's state, and are read into words as the engine hands them out,
|
|
36
|
+
* so a change of language redraws what is open rather than rebuilding
|
|
37
|
+
* anything (host-integration.md 3.1, D2). Left out, a key reads as
|
|
38
|
+
* itself until a language is set.
|
|
39
|
+
*/
|
|
40
|
+
text?(key: string): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The host's budgets over `DEFAULT_RUNTIME_LIMITS`: what is left out keeps
|
|
43
|
+
* its default. The source budgets (`maxPageSize`, `maxPageWindow`,
|
|
44
|
+
* `maxAnalysisRows`, `maxQueryFilterNodes`, `maxFilterValues`) are said by a source's descriptor
|
|
45
|
+
* where it has one, and one given here only lowers it — so leave them out
|
|
46
|
+
* unless the engine should ask for less than the server admits
|
|
47
|
+
* (capabilities.md 4.5).
|
|
48
|
+
*/
|
|
49
|
+
limits?: Partial<RuntimeLimits>;
|
|
50
|
+
environment?: RuntimeEnvironment;
|
|
51
|
+
/** Idempotency keys; overridden in tests to keep them readable. */
|
|
52
|
+
newId?(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Findings with no caller to reject and nothing thrown behind them: a
|
|
55
|
+
* definition's admission, a list entry that was dropped, a change
|
|
56
|
+
* listener that threw. Failures — a query, a store call, an export, a
|
|
57
|
+
* render — go to `environment.onError` instead (D40).
|
|
58
|
+
*
|
|
59
|
+
* Left out, a development build (`NODE_ENV` of `development`) writes them
|
|
60
|
+
* to the console, grouped by resource, each with how to fix it; any other
|
|
61
|
+
* build drops them.
|
|
62
|
+
*/
|
|
63
|
+
onIssue?(issue: Issue): void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* What a definition's list is right now: every view that could be read, and
|
|
67
|
+
* the reason the rest could not. The declared system views are always in
|
|
68
|
+
* `items`; `failed` names the store's failure when the saved ones are not.
|
|
69
|
+
*/
|
|
70
|
+
export interface ViewListing {
|
|
71
|
+
items: ViewInstanceSummary[];
|
|
72
|
+
failed: Issue | null;
|
|
73
|
+
/**
|
|
74
|
+
* Where the list was cut (`RuntimeLimits.listedViews`): this many were
|
|
75
|
+
* read, and there may be more. Absent on a whole list (R2-26).
|
|
76
|
+
*/
|
|
77
|
+
cut?: number;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=viewEngineOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewEngineOptions.d.ts","sourceRoot":"","sources":["../../src/runtime/viewEngineOptions.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,cAAc,EACd,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,cAAc,CAAC;IAC3B,kEAAkE;IAClE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,SAAS,EAAE,SAAS,YAAY,EAAE,CAAC;IACnC,K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