@ahoo-wang/wow-view-engine 10.0.0-alpha.6 → 10.0.0-alpha.7
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-BWlediub.js} +3992 -3957
- package/dist/actions-BWlediub.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-BCADqfu6.js +29 -0
- package/dist/export-BCADqfu6.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 +224 -223
- 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 +8 -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 +14 -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 +3 -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-D1wSQhlr.js +4196 -0
- package/dist/react-D1wSQhlr.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 +19 -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/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/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 +31 -93
- 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 +97 -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 +16 -16
- package/dist/store/MemoryViewStore.d.ts.map +1 -1
- package/dist/store/ViewStore.d.ts +31 -19
- package/dist/store/ViewStore.d.ts.map +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 +99 -96
- 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/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/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/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/datasets.d.ts +3 -2
- package/dist/ui/messages/datasets.d.ts.map +1 -1
- package/dist/ui/messages/definition.d.ts +2 -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 +238 -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/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 +1 -2
- 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/OriginBar.d.ts +1 -1
- package/dist/ui/workbench/ResultBlock.d.ts +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/address.d.ts.map +1 -1
- package/dist/ui.js +13764 -13812
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-B3B6hbXr.js → viewRuntimeTypes-BCdG5xRp.js} +1950 -2122
- package/dist/viewRuntimeTypes-BCdG5xRp.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Issue, ViewConfig } from '../model/index.js';
|
|
2
2
|
/**
|
|
3
|
-
* What the draft says that the applied config does not
|
|
3
|
+
* What the draft says that the applied config does not.
|
|
4
4
|
*
|
|
5
5
|
* "Changed, not applied" is one of the screen's three credentials (D2), and
|
|
6
6
|
* it used to be measured on the filter tree alone. Every other member of the
|
|
@@ -66,7 +66,7 @@ export declare function pendingBesides<C extends ViewConfig>(state: {
|
|
|
66
66
|
/**
|
|
67
67
|
* Whether the draft differs from what was saved **only** in how the result
|
|
68
68
|
* is drawn — the layout, the chart (`presentationMembers`) — and in at least
|
|
69
|
-
* one of those
|
|
69
|
+
* one of those. The title bar then says 「只改了展示」 rather than
|
|
70
70
|
* a bare 「已修改」, and takes the edits back without asking: what would be
|
|
71
71
|
* lost is a way of looking, not a question, and putting the saved one back
|
|
72
72
|
* runs nothing (a presentation edit never reached `applied`).
|
|
@@ -2,7 +2,7 @@ import { ViewInstanceSummary, ViewScope } from '../model/index.js';
|
|
|
2
2
|
import { InstancePermissions, ViewPermissions, ViewStore } from '../store/ViewStore.js';
|
|
3
3
|
/**
|
|
4
4
|
* Everything is allowed when a store declares no permissions — everything a
|
|
5
|
-
* silence allows: `editSystem` is not among it
|
|
5
|
+
* silence allows: `editSystem` is not among it.
|
|
6
6
|
*/
|
|
7
7
|
export declare const ALLOW_ALL: ViewPermissions;
|
|
8
8
|
/**
|
|
@@ -28,7 +28,7 @@ interface InstanceAbilities extends Required<InstancePermissions> {
|
|
|
28
28
|
* system view read-only whatever that answer is — it lives in code or in
|
|
29
29
|
* the backend's configuration, and no store write can reach it — unless it
|
|
30
30
|
* is one the store keeps (`stored`), its id is not a code view's
|
|
31
|
-
* (`system:`), and the host grants `editSystem
|
|
31
|
+
* (`system:`), and the host grants `editSystem`. Then the store's
|
|
32
32
|
* answer applies to it as to a shared view, bar `changeAudience`, which is
|
|
33
33
|
* always false: a system view never moves audience.
|
|
34
34
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewInstanceSummary, ViewPreferences } from '../model/index.js';
|
|
2
|
-
import { ViewStore } from '../store/ViewStore.js';
|
|
2
|
+
import { ReadOptions, ViewStore } from '../store/ViewStore.js';
|
|
3
3
|
export declare class PreferenceCache {
|
|
4
4
|
private readonly store;
|
|
5
5
|
private readonly cache;
|
|
@@ -17,7 +17,7 @@ export declare class PreferenceCache {
|
|
|
17
17
|
* read started before that write, so it answers the cached ones instead,
|
|
18
18
|
* and the next reorder does not start from a revision already gone.
|
|
19
19
|
*/
|
|
20
|
-
read(definitionId: string): Promise<ViewPreferences>;
|
|
20
|
+
read(definitionId: string, options?: ReadOptions): Promise<ViewPreferences>;
|
|
21
21
|
/** Remembers preferences a write has just confirmed. */
|
|
22
22
|
note(definitionId: string, preferences: ViewPreferences): void;
|
|
23
23
|
/** What a write starts from: the last value known, else a read. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../src/runtime/preferences.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../src/runtime/preferences.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEpE,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsC;IAC5D;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;gBAEvC,KAAK,EAAE,SAAS;IAI5B;;;;;OAKG;IACG,IAAI,CACR,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,eAAe,CAAC;IAS3B,wDAAwD;IACxD,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,GAAG,IAAI;IAK9D,mEAAmE;IAC7D,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAG9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,mBAAmB,EAAE,EACzC,WAAW,EAAE,eAAe,GAC3B,mBAAmB,EAAE,CAQvB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,mBAAmB,EAAE,EACzC,WAAW,EAAE,eAAe,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CAMf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryWeight.d.ts","sourceRoot":"","sources":["../../src/runtime/queryWeight.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"queryWeight.d.ts","sourceRoot":"","sources":["../../src/runtime/queryWeight.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAGnC;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,MAAM,CAAC,EAAE,gBAAgB,GACxB,WAAW,CAmBb;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAatE"}
|
|
@@ -21,7 +21,10 @@ export declare class RecordDataViewRuntime extends DataViewRuntime<RecordViewCon
|
|
|
21
21
|
* refusal and never a loop.
|
|
22
22
|
*/
|
|
23
23
|
private restarted;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Tells the host of an export whose rows could not be fetched, saying
|
|
26
|
+
* which view as it is at the moment of the failure.
|
|
27
|
+
*/
|
|
25
28
|
private readonly exportFailed;
|
|
26
29
|
constructor(options: ViewRuntimeOptions<RecordViewConfig>);
|
|
27
30
|
page(target: RecordPageTarget): void;
|
|
@@ -43,6 +46,12 @@ export declare class RecordDataViewRuntime extends DataViewRuntime<RecordViewCon
|
|
|
43
46
|
*/
|
|
44
47
|
exportRows(options?: ExportRowsOptions): Promise<ExportedRows>;
|
|
45
48
|
fetchRecord(key: RecordKey, signal?: AbortSignal): Promise<RecordData | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Asks the names of the ids a record read whole holds: every
|
|
51
|
+
* reference field of the definition, since a detail shows them all. The
|
|
52
|
+
* record shows at once with its ids; the read's signal calls them off.
|
|
53
|
+
*/
|
|
54
|
+
private askRecordLabels;
|
|
46
55
|
/**
|
|
47
56
|
* A draft that changes only how the rows on screen are drawn keeps them:
|
|
48
57
|
* the page, its selection and the reader's place stay, and only the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordRuntime.d.ts","sourceRoot":"","sources":["../../src/runtime/recordRuntime.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,
|
|
1
|
+
{"version":3,"file":"recordRuntime.d.ts","sourceRoot":"","sources":["../../src/runtime/recordRuntime.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV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A2BxE,oEAAoE;cACjD,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;cAKxD,OAAO,IAAI,gBAAgB,GAAG,SAAS;IAI1D;;;;;OAKG;cACgB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO;IAS5D;;;;OAIG;cACgB,MAAM,CACvB,IAAI,EAAE,aAAa,EACnB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI;IAYrD;;;OAGG;cACgB,KAAK,IAAI,OAAO;IAInC,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,UAAU;CAKnB;AAiBD,6DAA6D;AAC7D,wBAAgB,eAAe,CAC7B,OAAO,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAC1C,eAAe,CAIjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,WAAW,CAAC,cAAc,CAAC,GACnC,OAAO,IAAI,iBAAiB,CAE9B"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { FieldOption, RuntimeLimits } from '../model/index.js';
|
|
2
|
+
import { RuntimeEnvironment } from './environment.js';
|
|
3
|
+
import { OptionSource, SourceOptions } from './source.js';
|
|
4
|
+
/** A reference id, as a row holds it and `OptionSource.resolve` is asked. */
|
|
5
|
+
export type ReferenceId = string | number;
|
|
6
|
+
/**
|
|
7
|
+
* What a reference id reads as right now. Anything but `resolved` shows the
|
|
8
|
+
* id itself: `pending` while it is asked, `unresolved` when the source left
|
|
9
|
+
* it out, its read failed (asked again next time) or nobody asked yet.
|
|
10
|
+
*/
|
|
11
|
+
export type ReferenceLabel = {
|
|
12
|
+
readonly status: 'resolved';
|
|
13
|
+
readonly option: FieldOption;
|
|
14
|
+
} | {
|
|
15
|
+
readonly status: 'pending';
|
|
16
|
+
} | {
|
|
17
|
+
readonly status: 'unresolved';
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* How a view reads reference ids as names: what one id reads as now,
|
|
21
|
+
* and a subscription that says when that may have changed. The engine
|
|
22
|
+
* resolves what its views show; a host's own renderer only reads.
|
|
23
|
+
*/
|
|
24
|
+
export interface ReferenceLabelReader {
|
|
25
|
+
/** What `id` of `remote` reads as now. */
|
|
26
|
+
label(remote: string, id: ReferenceId): ReferenceLabel;
|
|
27
|
+
/** The text `id` reads as: its label once resolved, else the id. */
|
|
28
|
+
text(remote: string, id: ReferenceId): string;
|
|
29
|
+
/** Told after every change to what an id reads as. */
|
|
30
|
+
subscribe(listener: () => void): () => void;
|
|
31
|
+
/** Moves on every change, so a reader can tell a stale reading. */
|
|
32
|
+
readonly version: number;
|
|
33
|
+
}
|
|
34
|
+
/** What `ReferenceLabels` stands on: the host's sources and its budget. */
|
|
35
|
+
export interface ReferenceLabelsHost {
|
|
36
|
+
/** The host's `resolveOptions`; left out, every id reads as itself. */
|
|
37
|
+
resolveOptions?: ((remote: string) => OptionSource) | undefined;
|
|
38
|
+
/** The most ids one `resolve` is asked (`RuntimeLimits.referenceBatch`). */
|
|
39
|
+
batch: number;
|
|
40
|
+
/**
|
|
41
|
+
* The most `resolve` requests in flight at once, across every remote
|
|
42
|
+
* (`RuntimeLimits.referenceConcurrency`); the rest wait their turn.
|
|
43
|
+
*/
|
|
44
|
+
concurrency: number;
|
|
45
|
+
/**
|
|
46
|
+
* How long one request may take, in milliseconds
|
|
47
|
+
* (`RuntimeLimits.referenceTimeout`); past it the request fails like
|
|
48
|
+
* any failure. Left out, a request may take as long as its source does.
|
|
49
|
+
*/
|
|
50
|
+
timeout?: number;
|
|
51
|
+
/** The clock the timeout runs on; the ambient one when left out. */
|
|
52
|
+
timers?: Pick<RuntimeEnvironment, 'setTimeout' | 'clearTimeout'>;
|
|
53
|
+
/** A read that failed, for the host to hear of; never a caller's abort. */
|
|
54
|
+
failed(remote: string, error: unknown): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Who a lookup is for. A view's own (`screen`: a page, a result's groups,
|
|
58
|
+
* the conditions it shows, a record read whole) goes out before an
|
|
59
|
+
* export's, which takes a slot only while no view's lookup is waiting.
|
|
60
|
+
*/
|
|
61
|
+
export type LabelLane = 'screen' | 'export';
|
|
62
|
+
/** What a `want` is asked with: its caller's signal, and its lane. */
|
|
63
|
+
export interface LabelWant extends SourceOptions {
|
|
64
|
+
/** `screen` when left out. */
|
|
65
|
+
lane?: LabelLane;
|
|
66
|
+
}
|
|
67
|
+
/** A lookup that took longer than `RuntimeLimits.referenceTimeout`. */
|
|
68
|
+
export declare class ReferenceLabelTimeoutError extends Error {
|
|
69
|
+
readonly remote: string;
|
|
70
|
+
/** In milliseconds, as `RuntimeLimits.referenceTimeout` says it. */
|
|
71
|
+
readonly timeout: number;
|
|
72
|
+
constructor(remote: string,
|
|
73
|
+
/** In milliseconds, as `RuntimeLimits.referenceTimeout` says it. */
|
|
74
|
+
timeout: number);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* An engine's cache: its host's sources (an engine with no `resolveOptions`
|
|
78
|
+
* throws for each, which reads as no source), its batch and concurrency,
|
|
79
|
+
* and a failed read told to `onError` as a `labels` query.
|
|
80
|
+
*/
|
|
81
|
+
export declare function engineLabels(engine: {
|
|
82
|
+
resolveOptions(remote: string): OptionSource;
|
|
83
|
+
readonly limits: RuntimeLimits;
|
|
84
|
+
readonly environment: RuntimeEnvironment;
|
|
85
|
+
}): ReferenceLabels;
|
|
86
|
+
/**
|
|
87
|
+
* The labels of reference ids, one cache for the whole engine: every
|
|
88
|
+
* runtime and dashboard panel reads it, so an id one view resolved is known
|
|
89
|
+
* to the next, and the host invalidates it in one call.
|
|
90
|
+
*
|
|
91
|
+
* Callers ask in batches (`want`) — a page's ids, a result's group keys, an
|
|
92
|
+
* export's rows — and read one id at a time (`label`). An id known, or being
|
|
93
|
+
* asked, is never asked again: a caller with ids already in flight joins
|
|
94
|
+
* that request, and the request is called off only when every caller that
|
|
95
|
+
* waits on it has called off. What a source leaves out is remembered as
|
|
96
|
+
* unresolved; a read that failed is forgotten, so the next `want` asks again.
|
|
97
|
+
*
|
|
98
|
+
* At most `concurrency` requests are out at once, whatever their remote: the
|
|
99
|
+
* rest queue in the order they were asked and go out as others settle, so an
|
|
100
|
+
* export of ten thousand rows never fires fifty lookups at once — and a
|
|
101
|
+
* view's own lookups go ahead of an export's, so a file being written never
|
|
102
|
+
* holds back the names on screen. A queued request is joined like one in
|
|
103
|
+
* flight; one whose every caller has called off is dropped before it is
|
|
104
|
+
* sent, and one already sent gives its slot back at once, whether or not
|
|
105
|
+
* its source stops. One past `timeout` fails as any read does.
|
|
106
|
+
*/
|
|
107
|
+
export declare class ReferenceLabels implements ReferenceLabelReader {
|
|
108
|
+
private readonly host;
|
|
109
|
+
/** By remote, then id: the option, or `null` for one the source left out. */
|
|
110
|
+
private readonly known;
|
|
111
|
+
private readonly asked;
|
|
112
|
+
private readonly sources;
|
|
113
|
+
private readonly listeners;
|
|
114
|
+
/** Requests waiting for a slot, oldest first. */
|
|
115
|
+
private readonly queue;
|
|
116
|
+
private running;
|
|
117
|
+
private seq;
|
|
118
|
+
constructor(host: ReferenceLabelsHost);
|
|
119
|
+
/**
|
|
120
|
+
* The host's source for `remote`, asked of `resolveOptions` once; `null`
|
|
121
|
+
* when there is none to ask.
|
|
122
|
+
*/
|
|
123
|
+
sourceOf(remote: string): OptionSource | null;
|
|
124
|
+
/** What `id` of `remote` reads as now. */
|
|
125
|
+
label(remote: string, id: ReferenceId): ReferenceLabel;
|
|
126
|
+
/** The text `id` reads as: its label once resolved, else the id. */
|
|
127
|
+
text(remote: string, id: ReferenceId): string;
|
|
128
|
+
/**
|
|
129
|
+
* Resolves what of `ids` is not known yet, at most `batch` to a request,
|
|
130
|
+
* and settles once each of them has: resolved, left out, or failed — a
|
|
131
|
+
* failure reads as the id and is told to the host, never thrown. Rejects
|
|
132
|
+
* only with the caller's own abort.
|
|
133
|
+
*/
|
|
134
|
+
want(remote: string, ids: Iterable<ReferenceId>, options?: LabelWant): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Forgets what is known: of one remote, or of every one; of some ids, or
|
|
137
|
+
* all of them. A request in flight still lands, and is read as current.
|
|
138
|
+
*/
|
|
139
|
+
invalidate(remote?: string, ids?: Iterable<ReferenceId>): void;
|
|
140
|
+
/** Told after every change to what an id reads as. */
|
|
141
|
+
subscribe(listener: () => void): () => void;
|
|
142
|
+
/** Moves on every change, so a reader can tell a stale reading. */
|
|
143
|
+
get version(): number;
|
|
144
|
+
private inFlight;
|
|
145
|
+
/** A request for `ids`, sent now if a slot is free, else queued. */
|
|
146
|
+
private ask;
|
|
147
|
+
/**
|
|
148
|
+
* Sends what is queued while a slot is free: a view's lookups first, in
|
|
149
|
+
* the order they were asked, then an export's.
|
|
150
|
+
*/
|
|
151
|
+
private pump;
|
|
152
|
+
/**
|
|
153
|
+
* `asked` ran past its time: it fails as any read does — told to the
|
|
154
|
+
* host, forgotten, its ids shown as themselves — and is called off, so
|
|
155
|
+
* its late answer is dropped and its slot is free at once.
|
|
156
|
+
*/
|
|
157
|
+
private timedOut;
|
|
158
|
+
/** Asks the source, and keeps or forgets what it answers. */
|
|
159
|
+
private resolve;
|
|
160
|
+
/**
|
|
161
|
+
* Nobody waits on `asked` any more: it is called off — dropped, if it is
|
|
162
|
+
* still queued — and its ids are let go at once, so a caller arriving
|
|
163
|
+
* meanwhile asks afresh rather than joining a request that will answer
|
|
164
|
+
* nothing.
|
|
165
|
+
*/
|
|
166
|
+
private callOff;
|
|
167
|
+
private letGo;
|
|
168
|
+
private changed;
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=referenceLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceLabels.d.ts","sourceRoot":"","sources":["../../src/runtime/referenceLabels.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBA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I;IAc7C,0CAA0C;IAC1C,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,GAAG,cAAc;IAQtD,oEAAoE;IACpE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,GAAG,MAAM;IAK7C;;;;;OAKG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,EAC1B,OAAO,GAAE,SAAc,GACtB,OAAO,CAAC,IAAI,CAAC;IAmDhB;;;OAGG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI;IAU9D,sDAAsD;IACtD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO3C,mEAAmE;IACnE,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,OAAO,CAAC,QAAQ;IAMhB,oEAAoE;IACpE,OAAO,CAAC,GAAG;IAoDX;;;OAGG;IACH,OAAO,CAAC,IAAI;IASZ;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAehB,6DAA6D;IAC7D,OAAO,CAAC,OAAO;IAqCf;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAYf,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,OAAO;CAIhB"}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
import { Issue, TextResolver, ViewDefinition } from '../model/index.js';
|
|
1
|
+
import { Issue, RuntimeLimits, TextResolver, ViewDefinition } from '../model/index.js';
|
|
2
|
+
import { FieldKindRegistry } from '../filter/index.js';
|
|
2
3
|
import { DatasetWordingEditor } from './datasetResources.js';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
source?: ViewSource;
|
|
9
|
-
}[];
|
|
10
|
-
resolveOptions?(key: string): OptionSource;
|
|
11
|
-
text?(key: string): string | undefined;
|
|
12
|
-
onIssue?(issue: Issue): void;
|
|
13
|
-
}
|
|
4
|
+
import { DefinitionRegistry } from './definitions.js';
|
|
5
|
+
import { OptionSource, RecordSource } from './source.js';
|
|
6
|
+
import { ViewEngineOptions, ViewResource } from './viewEngineOptions.js';
|
|
7
|
+
/** What the engine's resources are read from: the host's options. */
|
|
8
|
+
type ResourceHost = Pick<ViewEngineOptions, 'resources' | 'resolveOptions' | 'text' | 'onIssue'>;
|
|
14
9
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
10
|
+
* What the host registered (host-integration.md 4), held by the engine
|
|
11
|
+
* rather than inherited by it: the definitions and what was said of them
|
|
12
|
+
* (`DefinitionRegistry`), each definition's source by the key its
|
|
13
|
+
* definitions name it by, each dataset's wording editor, the words the
|
|
14
|
+
* keys are checked against (`EngineText`), and where findings go. The
|
|
15
|
+
* engine's members of the same names hand on to these.
|
|
19
16
|
*/
|
|
20
|
-
export declare
|
|
17
|
+
export declare class Resources {
|
|
21
18
|
private readonly host;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
* than the registry, so the engine's public type names nothing it does
|
|
25
|
-
* not export (R2-85).
|
|
26
|
-
*/
|
|
27
|
-
protected abstract readonly registered: ReadonlyMap<string, ViewDefinition>;
|
|
28
|
-
/** Where `register` hands a definition to be judged and kept. */
|
|
29
|
-
private keep;
|
|
19
|
+
/** The definitions, judged as they are registered. */
|
|
20
|
+
readonly registry: DefinitionRegistry;
|
|
30
21
|
/** The words the definitions' keys are checked against; see `EngineText`. */
|
|
31
22
|
private readonly text;
|
|
32
23
|
private readonly sources;
|
|
33
|
-
/** Each dataset's wording editor, by definition id
|
|
24
|
+
/** Each dataset's wording editor, by definition id. */
|
|
34
25
|
private readonly wordings;
|
|
35
26
|
/** What was told to lack words, by language, code and key; see `setText`. */
|
|
36
27
|
private readonly lacking;
|
|
@@ -38,86 +29,33 @@ export declare abstract class EngineResources {
|
|
|
38
29
|
private readonly reporter;
|
|
39
30
|
/** The ids a binding named that no resource registers, each told once. */
|
|
40
31
|
private readonly unbound;
|
|
41
|
-
constructor(host: ResourceHost);
|
|
42
|
-
/**
|
|
43
|
-
* Every registered definition, by id, as it was declared: its keys
|
|
44
|
-
* (`text(key)`) are said where they are shown (`useSay`, `say`).
|
|
45
|
-
*/
|
|
32
|
+
constructor(host: ResourceHost, kinds: FieldKindRegistry, limits: RuntimeLimits);
|
|
33
|
+
/** See `ViewEngine.definitions`. */
|
|
46
34
|
get definitions(): ReadonlyMap<string, ViewDefinition>;
|
|
47
|
-
/**
|
|
48
|
-
* The words the engine was built with for `key` (`ViewEngineOptions.text`),
|
|
49
|
-
* or `undefined`: what a surface says a key in where its Provider's words
|
|
50
|
-
* lack it.
|
|
51
|
-
*/
|
|
35
|
+
/** See `ViewEngine.startingWord`. */
|
|
52
36
|
startingWord(key: string): string | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Checks the words a Provider says the definitions' keys in: its
|
|
55
|
-
* `messages`, in its `language` (host-integration.md 3.1, D2). The
|
|
56
|
-
* Provider calls this as they change; nothing is redrawn or rebuilt by
|
|
57
|
-
* it — the keys are said where they are shown.
|
|
58
|
-
*
|
|
59
|
-
* The words set are checked on their own: a key they lack reads as
|
|
60
|
-
* itself (`definition.text.unknown`), or in the words the engine started
|
|
61
|
-
* with (`definition.text.fallback`) — a Chinese page showing an English
|
|
62
|
-
* label is a gap too. A fallback is told only of words that say any of
|
|
63
|
-
* the definitions' keys at all: words that say none (a Provider with no
|
|
64
|
-
* catalogue of the definitions') leave them to the starting words, as
|
|
65
|
-
* the host meant. Each key is told once per language, and again once
|
|
66
|
-
* that language had it and lacks it again.
|
|
67
|
-
*/
|
|
37
|
+
/** See `ViewEngine.setText`. */
|
|
68
38
|
setText(text: TextResolver | undefined, language?: string): void;
|
|
69
|
-
/**
|
|
70
|
-
* Whether a binding the host made (`bind`, host-integration.md 4) names a
|
|
71
|
-
* registered definition. One that names none binds nothing — the routes,
|
|
72
|
-
* the reading and the actions it carries would be lost without a word, a
|
|
73
|
-
* misspelt id looking like a design — so it is told through `onIssue` as
|
|
74
|
-
* `binding.definition.unknown`, once per id. A warning, not an error: a
|
|
75
|
-
* binding may be meant for an engine nested further down (bindings pass
|
|
76
|
-
* to inner hosts), or for a resource a feature flag left out, and a
|
|
77
|
-
* binding that matches nothing breaks nothing. `ViewHost` asks this of
|
|
78
|
-
* every binding it is given.
|
|
79
|
-
*/
|
|
39
|
+
/** See `ViewEngine.checkBinding`. */
|
|
80
40
|
checkBinding(definitionId: string): boolean;
|
|
81
41
|
/**
|
|
82
42
|
* A finding with nobody to reject (`onIssue`), with the resource it is
|
|
83
43
|
* about where there is one.
|
|
84
44
|
*/
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
* engine was built, its definition derived from its descriptor
|
|
90
|
-
* (`defineDataset`). It is judged and its findings told as the resources
|
|
91
|
-
* given at construction are; views opened after this run on it, those
|
|
92
|
-
* already open keep the definition they opened on until reopened.
|
|
93
|
-
*/
|
|
94
|
-
register(resource: {
|
|
95
|
-
definition: ViewDefinition;
|
|
96
|
-
source?: ViewSource;
|
|
97
|
-
/** A dataset's wording editor (D91), given by `DatasetResources` when its store keeps wording. */
|
|
98
|
-
wording?: DatasetWordingEditor;
|
|
99
|
-
}): void;
|
|
100
|
-
/**
|
|
101
|
-
* The editor of a dataset's wording (D91), where its resource was
|
|
102
|
-
* registered with one: what the view manager's wording tab reads and saves.
|
|
103
|
-
*/
|
|
45
|
+
report(found: Issue, resource?: string): void;
|
|
46
|
+
/** See `ViewEngine.register`: the resource, without the boards asked again. */
|
|
47
|
+
register(resource: ViewResource): void;
|
|
48
|
+
/** See `ViewEngine.wordingOf`. */
|
|
104
49
|
wordingOf(definitionId: string): DatasetWordingEditor | undefined;
|
|
105
50
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* opening another reports the definition as not found, as a saved view of
|
|
109
|
-
* a resource never registered does. `false` when there was none.
|
|
51
|
+
* See `ViewEngine.unregister`. A source another definition still reads
|
|
52
|
+
* is kept.
|
|
110
53
|
*/
|
|
111
54
|
unregister(definitionId: string): boolean;
|
|
112
|
-
/** Sets where `register` and `unregister` hand a definition: the engine's registry. */
|
|
113
|
-
protected keepDefinitionsIn(keep: {
|
|
114
|
-
register(definition: ViewDefinition): void;
|
|
115
|
-
unregister(definitionId: string): void;
|
|
116
|
-
}): void;
|
|
117
|
-
/** Whether a resource registered a source under `key`. */
|
|
118
|
-
protected hasSource(key: string): boolean;
|
|
119
55
|
/** The source registered for a definition's `source` key. */
|
|
120
|
-
resolveSource(key: string):
|
|
56
|
+
resolveSource(key: string): RecordSource;
|
|
57
|
+
/** See `ViewEngine.resolveOptions`. */
|
|
121
58
|
resolveOptions(key: string): OptionSource;
|
|
122
59
|
}
|
|
60
|
+
export {};
|
|
123
61
|
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/runtime/resources.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/runtime/resources.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAiB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AAMrB,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AStC,kCAAkC;IAClC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIjE;;;OAGG;IACH,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAezC,6DAA6D;IAC7D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IASxC,uCAAuC;IACvC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;CAQ1C"}
|
|
@@ -20,7 +20,7 @@ import { RecordViewConfig } from '../model/index.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare function restyledOnly(ran: RecordViewConfig, next: RecordViewConfig): 'drawn' | 'summaries' | null;
|
|
22
22
|
/**
|
|
23
|
-
* What a kanban asks besides a page's question
|
|
23
|
+
* What a kanban asks besides a page's question: that it is one, and
|
|
24
24
|
* which lanes. Table and cards ask the same, so they compare equal here; the
|
|
25
25
|
* kanban half a table keeps stored asks nothing until it is the layout.
|
|
26
26
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ReferenceLabels } from './referenceLabels.js';
|
|
1
2
|
import { FilterTree, Issue, RuntimeLimits, ViewConfig, ViewDefinition, ViewInstance, ViewScope } from '../model/index.js';
|
|
2
3
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
4
|
import { RuntimeEnvironment } from './environment.js';
|
|
4
5
|
import { RequestRunner } from './requestRunner.js';
|
|
5
|
-
import {
|
|
6
|
+
import { RecordSource } from './source.js';
|
|
6
7
|
import { ManagedViewRuntime } from './viewRuntimeTypes.js';
|
|
7
8
|
import { DefinitionRegistry } from './definitions.js';
|
|
8
9
|
import { SourceCapabilities } from './capabilities.js';
|
|
@@ -20,9 +21,9 @@ interface RuntimeFactoryHost {
|
|
|
20
21
|
readonly environment: RuntimeEnvironment;
|
|
21
22
|
readonly runner: RequestRunner;
|
|
22
23
|
/** Where a definition's data comes from, by `DataViewDefinition.source`. */
|
|
23
|
-
resolveSource(key: string):
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
resolveSource(key: string): RecordSource;
|
|
25
|
+
/** Reference ids read as names, and the sources they are read from. */
|
|
26
|
+
readonly labels: ReferenceLabels;
|
|
26
27
|
/** One instance, from the definition's code or from the store. */
|
|
27
28
|
readInstance(instanceId: string): Promise<ViewInstance>;
|
|
28
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeFactory.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI5D,OAAO,KAAK,EAOV,UAAU,EACV,KAAK,EACL,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK5D,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CAC5B;AAED,2DAA2D;AAC3D,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,WA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kB,CAwBjC;IAEF;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,YAAY;CAGrB"}
|
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
|