@ahoo-wang/wow-view-engine 10.0.0-alpha.5 → 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/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 +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/daterange.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 +240 -222
- 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 +99 -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 +21 -16
- 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/RefreshControl.d.ts.map +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 +13798 -13843
- 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 +17 -17
- 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,8 +1,8 @@
|
|
|
1
1
|
import { FieldOption, RecordKey } from '../model/index.js';
|
|
2
2
|
import { ActionConfirm, ActionInput, ActionPlace, ActionRefusal, ActionRow as RecordRow, RecordActions } from '../runtime/actions.js';
|
|
3
3
|
export interface ActionHarnessOptions {
|
|
4
|
-
/** The
|
|
5
|
-
now?:
|
|
4
|
+
/** The moment the rules are asked at; the current time when left out. */
|
|
5
|
+
now?: Date;
|
|
6
6
|
}
|
|
7
7
|
/** One action on one record, as the row, the menu and the detail draw it. */
|
|
8
8
|
export interface HarnessState {
|
|
@@ -66,13 +66,15 @@ export interface ActionHarness {
|
|
|
66
66
|
/** The required fields `input` leaves blank, the form's `initial` under it. */
|
|
67
67
|
missing(id: string, input: ActionInput): string[];
|
|
68
68
|
/** The soonest time after `now` a record's availability flips on its own. */
|
|
69
|
-
changesAt(key?: RecordKey):
|
|
69
|
+
changesAt(key?: RecordKey): Date | null;
|
|
70
70
|
/**
|
|
71
71
|
* Sends one record the command as the engine would — with the form's
|
|
72
72
|
* `initial` under `input` — refused with the reason (`ActionRefusedError`)
|
|
73
73
|
* where it does not take it, else the host's `run` itself.
|
|
74
74
|
*/
|
|
75
|
-
run(id: string, key: RecordKey, input?: ActionInput
|
|
75
|
+
run(id: string, key: RecordKey, input?: ActionInput, options?: {
|
|
76
|
+
signal?: AbortSignal;
|
|
77
|
+
}): Promise<unknown>;
|
|
76
78
|
}
|
|
77
79
|
export declare function actionHarness(list: RecordActions, rows: readonly RecordRow[], { now }?: ActionHarnessOptions): ActionHarness;
|
|
78
80
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/testing/actions.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAYL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,IAAI,SAAS,EAE3B,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,oBAAoB;IACnC,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/testing/actions.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAYL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,IAAI,SAAS,EAE3B,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,oBAAoB;IACnC,yEAAyE;IACzE,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,yEAAyE;IACzE,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,EAAE,CAAA;KAAE,EAAE,CAAC;CACjE;AAED,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChD,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,4CAA4C;IAC5C,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE,CAAC;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IACrE,IAAI,CACF,EAAE,EAAE,MAAM,EACV,IAAI,CAAC,EAAE,SAAS,SAAS,EAAE,EAC3B,KAAK,CAAC,EAAE,WAAW,GAClB,WAAW,CAAC;IACf;;;;;OAKG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,WAAW,EAClB,KAAK,CAAC,EAAE,WAAW,GAClB;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAC;IACpD,0EAA0E;IAC1E,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IACxC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,WAAW,EAAE,GAAG,IAAI,CAAC;IAClD,+EAA+E;IAC/E,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE,CAAC;IAClD,6EAA6E;IAC7E,SAAS,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC;;;;OAIG;IACH,GAAG,CACD,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,SAAS,EACd,KAAK,CAAC,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GACjC,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,SAAS,SAAS,EAAE,EAC1B,EAAE,GAAgB,EAAE,GAAE,oBAAyB,GAC9C,aAAa,CA8Ef"}
|
|
@@ -8,8 +8,10 @@ import { RecordData } from '../model/record.js';
|
|
|
8
8
|
* step — each path relative to the step before, each gate filter naming
|
|
9
9
|
* the element's own fields; what is left is counted as if each element
|
|
10
10
|
* were a record.
|
|
11
|
-
* 2. The groups key each record; a
|
|
12
|
-
*
|
|
11
|
+
* 2. The groups key each record; a record joins the group of each
|
|
12
|
+
* combination of its keys (a `TERMS` field over an array keys it once
|
|
13
|
+
* per value); a metric's own `filter` decides, per record, whether that
|
|
14
|
+
* record counts toward that one metric.
|
|
13
15
|
* 3. A `dense` date group fills its empty buckets; the derived metrics are
|
|
14
16
|
* computed over each grouped row; `having` keeps the rows it admits.
|
|
15
17
|
* 4. The rows are sorted by the query's sort, then by every group alias it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../src/testing/aggregate.ts"],"names":[],"mappings":"AAcA,OAAO,EAYL,KAAK,gBAAgB,EAMtB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../src/testing/aggregate.ts"],"names":[],"mappings":"AAcA,OAAO,EAYL,KAAK,gBAAgB,EAMtB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,SAAS,UAAU,EAAE,EAC9B,KAAK,EAAE,gBAAgB,GACtB,UAAU,EAAE,CAuCd"}
|
package/dist/testing/filter.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ type Filter = FilterExpression | ElementFilterExpression;
|
|
|
8
8
|
* screen used, to compare with what a view matched. Unlike a source, it
|
|
9
9
|
* assumes nothing about deletion: without a `DELETION` condition a deleted
|
|
10
10
|
* document is a candidate too. `now` is the clock `BEFORE_NOW` and
|
|
11
|
-
* `AFTER_NOW` compare against (
|
|
11
|
+
* `AFTER_NOW` compare against, read once (the current time by default).
|
|
12
12
|
*/
|
|
13
13
|
export declare function matches(document: RecordData, filter: FilterExpression, options?: {
|
|
14
|
-
now?: () =>
|
|
14
|
+
now?: () => Date;
|
|
15
15
|
}): boolean;
|
|
16
16
|
/** `value <op> against`, for an `EXPRESSION` filter and a `having`. */
|
|
17
17
|
export declare function compares(operator: ComparisonOperator, value: number, against: number): boolean;
|
|
@@ -43,6 +43,6 @@ export declare function criteria(filter: Filter): AnyObject;
|
|
|
43
43
|
* `now + offset`, encoded as the field keeps its time. The clock is read
|
|
44
44
|
* once, and only when the query holds one.
|
|
45
45
|
*/
|
|
46
|
-
export declare function atNow<Q>(query: Q, clock?: () =>
|
|
46
|
+
export declare function atNow<Q>(query: Q, clock?: () => Date): Q;
|
|
47
47
|
export {};
|
|
48
48
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/testing/filter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAMlB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,MAAM,GAAG,gBAAgB,GAAG,uBAAuB,CAAC;AAEzD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/testing/filter.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAMlB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EAEtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,MAAM,GAAG,gBAAgB,GAAG,uBAAuB,CAAC;AAEzD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,GACjC,OAAO,CAET;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACd,OAAO,CAmBT;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAIvE;AAiBD;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CA4HlD;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAE,MAAM,IAAuB,GAAG,CAAC,CAgB1E"}
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `@ahoo-wang/wow-view-engine/testing`: an in-memory Wow source for a host's
|
|
3
|
-
* tests and demos
|
|
3
|
+
* tests and demos. Headless — no React, no DOM, no stylesheet — and
|
|
4
4
|
* held to the server's semantics matrix (`FilterSemantics`) and its TCK by
|
|
5
5
|
* the package's own suites.
|
|
6
6
|
*/
|
|
7
7
|
export { memorySource, type MemorySourceOptions } from './source.js';
|
|
8
8
|
export { matches } from './filter.js';
|
|
9
9
|
export { admit, type Admissible, type AdmitFinding, type AdmitOptions, } from '../runtime/admission.js';
|
|
10
|
-
export { resolveNavigation } from '../runtime/routes.js';
|
|
10
|
+
export { resolveNavigation, type ViewDestination, type ViewRoute, } from '../runtime/routes.js';
|
|
11
11
|
export { actionHarness, type ActionHarness, type ActionHarnessOptions, type HarnessBulk, type HarnessField, type HarnessState, } from './actions.js';
|
|
12
12
|
export { ActionRefusedError } from '../runtime/actions.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/testing/source.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ import { ViewSource } from '../runtime/source.js';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface MemorySourceOptions {
|
|
8
8
|
/**
|
|
9
|
-
* The service's clock,
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* The service's clock, which `BEFORE_NOW` and `AFTER_NOW` compare
|
|
10
|
+
* against, read once per query and only by a query that holds one of them.
|
|
11
|
+
* Defaults to the current time. A test pins it to the moment
|
|
12
12
|
* its data is built around — the one it pins the page's clock to — so
|
|
13
13
|
* 「晚于现在」 answers the same on every run.
|
|
14
14
|
*/
|
|
15
|
-
now?: () =>
|
|
15
|
+
now?: () => Date;
|
|
16
16
|
/**
|
|
17
17
|
* A time column every document holds as epoch milliseconds, the way a Wow
|
|
18
18
|
* snapshot keeps `firstEventTime`. The documents are kept in its order — a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/testing/source.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/testing/source.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,SAAS,UAAU,EAAE,EAChC,OAAO,GAAE,mBAAwB,GAChC,UAAU,CA4CZ"}
|
package/dist/testing.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as e,
|
|
2
|
-
import { t as ie } from "./routes-
|
|
1
|
+
import { C as e, Ga as t, Ma as n, X as r, _ as i, c as a, d as o, f as s, g as c, h as l, l as u, n as d, o as ee, qr as f, u as te, v as ne, x as p, y as re } from "./actions-BWlediub.js";
|
|
2
|
+
import { t as ie } from "./routes-CMXKbAo2.js";
|
|
3
3
|
import { AGGREGATION_LIMITS as ae, AggregationDatePart as m, AggregationDateUnit as h, AggregationExpressionOperator as g, AggregationExpressionType as _, AggregationFunction as v, AggregationGroupScope as oe, AggregationGroupType as y, AggregationMetricType as b, ComparisonOperator as x, DEFAULT_PAGINATION as se, DateDiffUnit as S, DeletionState as C, DerivedExpressionType as w, FilterOperator as T, HavingExpressionType as E, SearchMode as ce, SortDirection as D, StringComparison as le, TimeUnit as O } from "@ahoo-wang/wow-client/dsl";
|
|
4
4
|
import ue from "dayjs";
|
|
5
5
|
import { Query as de, find as k } from "mingo";
|
|
6
|
-
|
|
6
|
+
// src/testing/values.ts
|
|
7
7
|
function A(e, t) {
|
|
8
8
|
return t.split(".").reduce((e, t) => typeof e == "object" && e ? e[t] : void 0, e);
|
|
9
9
|
}
|
|
@@ -28,8 +28,7 @@ function N(e, t) {
|
|
|
28
28
|
function P(e, t) {
|
|
29
29
|
return (e % t + t) % t;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
//#region src/testing/calendar.ts
|
|
31
|
+
// src/testing/calendar.ts
|
|
33
32
|
var F = 36e5, I = 24 * F, pe = {
|
|
34
33
|
[h.HOUR]: F,
|
|
35
34
|
[h.MINUTE]: 6e4,
|
|
@@ -151,8 +150,7 @@ function xe(e, t) {
|
|
|
151
150
|
}
|
|
152
151
|
return s;
|
|
153
152
|
}
|
|
154
|
-
|
|
155
|
-
//#region src/testing/expression.ts
|
|
153
|
+
// src/testing/expression.ts
|
|
156
154
|
var Se = {
|
|
157
155
|
[S.SECOND]: 1e3,
|
|
158
156
|
[S.MINUTE]: 6e4,
|
|
@@ -186,8 +184,7 @@ function W(e, t) {
|
|
|
186
184
|
default: throw Error(`The memory source does not compute the expression ${e.type}.`);
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
|
-
|
|
190
|
-
//#region src/testing/filter.ts
|
|
187
|
+
// src/testing/filter.ts
|
|
191
188
|
function Ce(e, t, n = {}) {
|
|
192
189
|
return new de(q(J(t, n.now))).test(e);
|
|
193
190
|
}
|
|
@@ -268,12 +265,12 @@ function q(e) {
|
|
|
268
265
|
default: throw Error(`The memory source does not evaluate ${e.op}.`);
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
|
-
function J(e, t = Date
|
|
268
|
+
function J(e, t = () => /* @__PURE__ */ new Date()) {
|
|
272
269
|
let n, r = (e) => {
|
|
273
270
|
if (Array.isArray(e)) return e.map(r);
|
|
274
271
|
if (typeof e != "object" || !e || e instanceof RegExp) return e;
|
|
275
272
|
let i = e.op;
|
|
276
|
-
return i === T.BEFORE_NOW || i === T.AFTER_NOW ? (n ??= t(), De(e, n)) : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, r(t)]));
|
|
273
|
+
return i === T.BEFORE_NOW || i === T.AFTER_NOW ? (n ??= t().getTime(), De(e, n)) : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, r(t)]));
|
|
277
274
|
};
|
|
278
275
|
return r(e);
|
|
279
276
|
}
|
|
@@ -302,14 +299,13 @@ function ke(e) {
|
|
|
302
299
|
let [, n, r, i, a, o, s] = t, c = Number(`0.${s ?? "0"}`) * 1e3 * (o?.startsWith("-") ? -1 : 1), l = Number(r ?? 0) * 864e5 + Number(i ?? 0) * 36e5 + Number(a ?? 0) * 6e4 + Number(o ?? 0) * 1e3 + c;
|
|
303
300
|
return n === "-" ? -l : l;
|
|
304
301
|
}
|
|
305
|
-
|
|
306
|
-
//#region src/testing/aggregate.ts
|
|
302
|
+
// src/testing/aggregate.ts
|
|
307
303
|
function Ae(e, t) {
|
|
308
304
|
let n = /* @__PURE__ */ new Map(), r = je(e, t, n), i = t.groupBy ?? [], a = Me(i), o = t.metrics.filter((e) => e.type !== b.DERIVED), s = o.map((e) => {
|
|
309
305
|
let t = "filter" in e ? e.filter : void 0;
|
|
310
306
|
return t ? new de(q(t)) : void 0;
|
|
311
307
|
}), c = i.map((e) => {
|
|
312
|
-
let t =
|
|
308
|
+
let t = Fe(e);
|
|
313
309
|
return e.scope === oe.ROOT ? (e) => t(n.get(e) ?? e) : t;
|
|
314
310
|
}), l = /* @__PURE__ */ new Map();
|
|
315
311
|
i.length === 0 && l.set("[]", {
|
|
@@ -317,8 +313,7 @@ function Ae(e, t) {
|
|
|
317
313
|
units: []
|
|
318
314
|
});
|
|
319
315
|
let u = a ? i.indexOf(a) : -1;
|
|
320
|
-
for (let e of r) {
|
|
321
|
-
let t = c.map((t) => t(e));
|
|
316
|
+
for (let e of r) for (let t of Ne(c.map((t) => t(e)))) {
|
|
322
317
|
if (u >= 0 && t[u] === null) continue;
|
|
323
318
|
let n = JSON.stringify(t), r = l.get(n);
|
|
324
319
|
r || l.set(n, r = {
|
|
@@ -326,8 +321,8 @@ function Ae(e, t) {
|
|
|
326
321
|
units: []
|
|
327
322
|
}), r.units.push(e);
|
|
328
323
|
}
|
|
329
|
-
let d = [...l.values()].map(({ keys: e, units: t }) =>
|
|
330
|
-
return a && (d =
|
|
324
|
+
let d = [...l.values()].map(({ keys: e, units: t }) => Le(i, e, o, s, t));
|
|
325
|
+
return a && (d = Ue(d, a, o)), d = d.map((e) => We(e, t.metrics)), t.having && (d = d.filter((e) => X(t.having, e))), d = Ge(d, t.sort ?? [], i), d.slice(0, t.limit ?? ae.DEFAULT_LIMIT);
|
|
331
326
|
}
|
|
332
327
|
function je(e, t, n) {
|
|
333
328
|
let r = [...e];
|
|
@@ -346,11 +341,22 @@ function Me(e) {
|
|
|
346
341
|
return t;
|
|
347
342
|
}
|
|
348
343
|
function Ne(e) {
|
|
344
|
+
return e.reduce((e, t) => e.flatMap((e) => t.map((t) => [...e, t])), [[]]);
|
|
345
|
+
}
|
|
346
|
+
function Pe(e, t) {
|
|
347
|
+
let n = (Array.isArray(e) ? e.flat(Infinity) : [e]).filter((e) => e != null), r = [...new Map(n.map((e) => [JSON.stringify(e), e])).values()];
|
|
348
|
+
return r.length > 0 ? r : [t ?? null];
|
|
349
|
+
}
|
|
350
|
+
function Fe(e) {
|
|
351
|
+
if (e.type === y.TERMS) {
|
|
352
|
+
let { field: t, expression: n, missingKey: r } = e;
|
|
353
|
+
return t === void 0 ? (e) => [W(n, e) ?? r ?? null] : (e) => Pe(A(e, t), r);
|
|
354
|
+
}
|
|
355
|
+
let t = Ie(e);
|
|
356
|
+
return (e) => [t(e)];
|
|
357
|
+
}
|
|
358
|
+
function Ie(e) {
|
|
349
359
|
switch (e.type) {
|
|
350
|
-
case y.TERMS: {
|
|
351
|
-
let { field: t, expression: n, missingKey: r } = e;
|
|
352
|
-
return (e) => (t === void 0 ? W(n, e) : A(e, t)) ?? r ?? null;
|
|
353
|
-
}
|
|
354
360
|
case y.HISTOGRAM: {
|
|
355
361
|
let { field: t, expression: n, interval: r } = e;
|
|
356
362
|
return (e) => {
|
|
@@ -375,21 +381,21 @@ function Ne(e) {
|
|
|
375
381
|
default: throw Error(`The memory source does not group by ${e.type}.`);
|
|
376
382
|
}
|
|
377
383
|
}
|
|
378
|
-
function
|
|
384
|
+
function Le(e, t, n, r, i) {
|
|
379
385
|
let a = {};
|
|
380
386
|
return e.forEach((e, n) => a[e.alias] = t[n]), n.forEach((e, t) => {
|
|
381
387
|
let n = r[t];
|
|
382
|
-
a[e.alias] =
|
|
388
|
+
a[e.alias] = Re(e, n ? i.filter((e) => n.test(e)) : i);
|
|
383
389
|
}), a;
|
|
384
390
|
}
|
|
385
|
-
function
|
|
391
|
+
function Re(e, t) {
|
|
386
392
|
switch (e.type) {
|
|
387
393
|
case b.COUNT: return t.length;
|
|
388
394
|
case b.NUMERIC:
|
|
389
395
|
case b.PERCENTILE: {
|
|
390
|
-
if (e.type === b.NUMERIC && (e.function === v.MIN || e.function === v.MAX) && e.expression.type === _.FIELD) return
|
|
396
|
+
if (e.type === b.NUMERIC && (e.function === v.MIN || e.function === v.MAX) && e.expression.type === _.FIELD) return ze(t, e.expression.field, e.function === v.MAX);
|
|
391
397
|
let n = t.map((t) => W(e.expression, t)).filter((e) => e !== null);
|
|
392
|
-
return n.length === 0 ? null : e.type === b.PERCENTILE ?
|
|
398
|
+
return n.length === 0 ? null : e.type === b.PERCENTILE ? Ve(n, e.percentile) : Be(n, e.function);
|
|
393
399
|
}
|
|
394
400
|
case b.DISTINCT_COUNT: {
|
|
395
401
|
let { expression: n } = e, r = /* @__PURE__ */ new Set();
|
|
@@ -422,7 +428,7 @@ function Fe(e, t) {
|
|
|
422
428
|
default: throw Error(`The memory source does not compute ${e.alias}.`);
|
|
423
429
|
}
|
|
424
430
|
}
|
|
425
|
-
function
|
|
431
|
+
function ze(e, t, n) {
|
|
426
432
|
let r = null;
|
|
427
433
|
for (let i of e) {
|
|
428
434
|
let e = A(i, t), a = typeof e == "string" ? e : M(e);
|
|
@@ -432,7 +438,7 @@ function Ie(e, t, n) {
|
|
|
432
438
|
}
|
|
433
439
|
return r;
|
|
434
440
|
}
|
|
435
|
-
function
|
|
441
|
+
function Be(e, t) {
|
|
436
442
|
let n = e.reduce((e, t) => e + t, 0), r = n / e.length, i;
|
|
437
443
|
switch (t) {
|
|
438
444
|
case v.SUM:
|
|
@@ -457,14 +463,14 @@ function Le(e, t) {
|
|
|
457
463
|
}
|
|
458
464
|
return Number.isFinite(i) ? i : null;
|
|
459
465
|
}
|
|
460
|
-
function
|
|
466
|
+
function Ve(e, t) {
|
|
461
467
|
let n = [...e].sort((e, t) => e - t), r = (n.length - 1) * t / 100, i = Math.floor(r), a = Math.min(i + 1, n.length - 1);
|
|
462
468
|
return n[i] + (r - i) * (n[a] - n[i]);
|
|
463
469
|
}
|
|
464
|
-
function
|
|
465
|
-
return Object.fromEntries(e.map((e) => [e.alias,
|
|
470
|
+
function He(e) {
|
|
471
|
+
return Object.fromEntries(e.map((e) => [e.alias, Re(e, [])]));
|
|
466
472
|
}
|
|
467
|
-
function
|
|
473
|
+
function Ue(e, t, n) {
|
|
468
474
|
let r = new Map(e.map((e) => [e[t.alias], e])), i;
|
|
469
475
|
if (t.type === y.DATE_PART) {
|
|
470
476
|
let [e, n] = ve[t.part];
|
|
@@ -472,10 +478,10 @@ function Be(e, t, n) {
|
|
|
472
478
|
} else i = xe([...r.keys()], t);
|
|
473
479
|
return i.map((e) => r.get(e) ?? {
|
|
474
480
|
[t.alias]: e,
|
|
475
|
-
...
|
|
481
|
+
...He(n)
|
|
476
482
|
});
|
|
477
483
|
}
|
|
478
|
-
function
|
|
484
|
+
function We(e, t) {
|
|
479
485
|
let n = { ...e };
|
|
480
486
|
for (let e of t) e.type === b.DERIVED && (n[e.alias] = Y(e.expression, n));
|
|
481
487
|
return n;
|
|
@@ -520,7 +526,7 @@ function X(e, t) {
|
|
|
520
526
|
default: throw Error(`The memory source does not evaluate ${e.type}.`);
|
|
521
527
|
}
|
|
522
528
|
}
|
|
523
|
-
function
|
|
529
|
+
function Ge(e, t, n) {
|
|
524
530
|
let r = new Set(t.map(({ field: e }) => e)), i = [...t.map(({ field: e, direction: t }) => ({
|
|
525
531
|
field: e,
|
|
526
532
|
sign: t === D.DESC ? -1 : 1
|
|
@@ -536,41 +542,41 @@ function He(e, t, n) {
|
|
|
536
542
|
return 0;
|
|
537
543
|
});
|
|
538
544
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
let n = Ke(e, t.timeField), r = /* @__PURE__ */ new Map(), i = t.now;
|
|
545
|
+
// src/testing/source.ts
|
|
546
|
+
var Ke = 512;
|
|
547
|
+
function qe(e, t = {}) {
|
|
548
|
+
let n = Ye(e, t.timeField), r = /* @__PURE__ */ new Map(), i = t.now;
|
|
544
549
|
return {
|
|
545
550
|
paged: (e) => Z(() => {
|
|
546
551
|
let t = J(e, i), r = Q(n, t.filter, t.sort), { index: a, size: o } = t.pagination ?? se, s = (a - 1) * o;
|
|
547
552
|
return {
|
|
548
553
|
total: r.length,
|
|
549
|
-
|
|
554
|
+
exact: !0,
|
|
555
|
+
list: r.slice(s, s + o).map(Ze(t))
|
|
550
556
|
};
|
|
551
557
|
}),
|
|
552
558
|
cursor: (e) => Z(() => {
|
|
553
559
|
let t = J(e, i), r = Q(n, t.filter, t.sort), a = Number(t.cursor ?? 0), o = a + (t.size ?? r.length);
|
|
554
560
|
return {
|
|
555
|
-
list: r.slice(a, o).map(
|
|
561
|
+
list: r.slice(a, o).map(Ze(t)),
|
|
556
562
|
nextCursor: o < r.length ? String(o) : null
|
|
557
563
|
};
|
|
558
564
|
}),
|
|
559
565
|
aggregate: (e) => Z(() => {
|
|
560
566
|
let a = J(e, i);
|
|
561
|
-
if (!t.remember) return
|
|
567
|
+
if (!t.remember) return Je(n, a);
|
|
562
568
|
let o = JSON.stringify(a), s = r.get(o);
|
|
563
|
-
return s || (s =
|
|
569
|
+
return s || (s = Je(n, a), r.size >= Ke && r.clear(), r.set(o, s)), structuredClone(s);
|
|
564
570
|
})
|
|
565
571
|
};
|
|
566
572
|
}
|
|
567
573
|
function Z(e) {
|
|
568
574
|
return new Promise((t) => t(e()));
|
|
569
575
|
}
|
|
570
|
-
function
|
|
576
|
+
function Je(e, t) {
|
|
571
577
|
return Ae(Q(e, t.filter ?? { op: T.MATCH_ALL }), t);
|
|
572
578
|
}
|
|
573
|
-
function
|
|
579
|
+
function Ye(e, t) {
|
|
574
580
|
if (t === void 0) return { documents: [...e] };
|
|
575
581
|
let n = e.map((e) => {
|
|
576
582
|
let n = A(e, t);
|
|
@@ -587,23 +593,23 @@ function Ke(e, t) {
|
|
|
587
593
|
};
|
|
588
594
|
}
|
|
589
595
|
function Q(e, t, n = []) {
|
|
590
|
-
let r = k(
|
|
591
|
-
return (n.length > 0 ? r.sort(
|
|
596
|
+
let r = k(Qe(e, t), we(t));
|
|
597
|
+
return (n.length > 0 ? r.sort(Xe(n)) : r).all();
|
|
592
598
|
}
|
|
593
|
-
function
|
|
599
|
+
function Xe(e) {
|
|
594
600
|
return Object.fromEntries(e.map(({ field: e, direction: t }) => [e, t === D.DESC ? -1 : 1]));
|
|
595
601
|
}
|
|
596
|
-
function
|
|
602
|
+
function Ze(e) {
|
|
597
603
|
let t = e.projection?.include;
|
|
598
604
|
if (!t || t.length === 0) return (e) => e;
|
|
599
605
|
let n = Object.fromEntries(t.map((e) => [e, 1]));
|
|
600
606
|
return (e) => k([e], {}, n).all()[0] ?? {};
|
|
601
607
|
}
|
|
602
|
-
function
|
|
608
|
+
function Qe(e, t) {
|
|
603
609
|
let { documents: n, timeField: r, times: i } = e;
|
|
604
610
|
if (r === void 0 || !i) return n;
|
|
605
611
|
let a = 0, o = n.length;
|
|
606
|
-
for (let e of
|
|
612
|
+
for (let e of $e(t)) if ("field" in e && e.field === r) switch (e.op) {
|
|
607
613
|
case T.GT:
|
|
608
614
|
case T.GTE:
|
|
609
615
|
case T.LT:
|
|
@@ -622,8 +628,8 @@ function Ye(e, t) {
|
|
|
622
628
|
}
|
|
623
629
|
return a === 0 && o === n.length ? n : a < o ? n.slice(a, o) : [];
|
|
624
630
|
}
|
|
625
|
-
function
|
|
626
|
-
return e.op === T.AND ? e.operands.flatMap(
|
|
631
|
+
function $e(e) {
|
|
632
|
+
return e.op === T.AND ? e.operands.flatMap($e) : [e];
|
|
627
633
|
}
|
|
628
634
|
function $(e, t, n) {
|
|
629
635
|
let r = 0, i = e.length;
|
|
@@ -633,23 +639,22 @@ function $(e, t, n) {
|
|
|
633
639
|
}
|
|
634
640
|
return r;
|
|
635
641
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
let o = i.kinds ?? u, s = {
|
|
642
|
+
// src/runtime/admission.ts
|
|
643
|
+
function et(r, i, a = {}) {
|
|
644
|
+
let o = a.kinds ?? f, s = {
|
|
640
645
|
...t,
|
|
641
|
-
...
|
|
642
|
-
}, c = (e) =>
|
|
646
|
+
...a.limits
|
|
647
|
+
}, c = (e) => a.text?.(e), l = r.map((e) => "definition" in e ? {
|
|
643
648
|
definition: e.definition,
|
|
644
649
|
resource: !0
|
|
645
650
|
} : {
|
|
646
651
|
definition: e,
|
|
647
652
|
resource: !1
|
|
648
|
-
}),
|
|
649
|
-
return l.flatMap(({ definition: t, resource:
|
|
653
|
+
}), u = new Set(r.flatMap((e) => "definition" in e && e.source && e.definition.kind === "data" ? [e.definition.source] : [])), d = u.size > 0, ee = new Map(l.map(({ definition: e }) => [e.id, e]));
|
|
654
|
+
return l.flatMap(({ definition: t, resource: r }) => [
|
|
650
655
|
...p(t, c).findings,
|
|
651
|
-
...
|
|
652
|
-
...
|
|
656
|
+
...d && r && t.kind === "data" && !u.has(t.source) ? [n("definition.source.unregistered", ["source"], { source: t.source })] : [],
|
|
657
|
+
...tt(t, i, o),
|
|
653
658
|
...e(t, o, {
|
|
654
659
|
limits: s,
|
|
655
660
|
definitions: (e) => ee.get(e)
|
|
@@ -659,15 +664,14 @@ function Ze(n, r, i = {}) {
|
|
|
659
664
|
definition: t.id
|
|
660
665
|
})));
|
|
661
666
|
}
|
|
662
|
-
function
|
|
667
|
+
function tt(e, t, i) {
|
|
663
668
|
if (e.kind !== "data") return [];
|
|
664
|
-
let
|
|
665
|
-
return
|
|
669
|
+
let a = t[e.source];
|
|
670
|
+
return a ? r(e, a, i).findings : [n("definition.descriptor.missing", ["source"], { source: e.source }, "warning")];
|
|
666
671
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
let a = new Map(t.map((e) => [e.key, e])), u = (t) => {
|
|
672
|
+
// src/testing/actions.ts
|
|
673
|
+
function nt(e, t, { now: n = /* @__PURE__ */ new Date() } = {}) {
|
|
674
|
+
let r = new Map(t.map((e) => [e.key, e])), d = (t) => {
|
|
671
675
|
let n = e.find((e) => e.id === t);
|
|
672
676
|
if (!n) throw Error(`No action "${t}".`);
|
|
673
677
|
return n;
|
|
@@ -675,28 +679,28 @@ function $e(e, t, { now: r = Date.now() } = {}) {
|
|
|
675
679
|
...o(e),
|
|
676
680
|
...t
|
|
677
681
|
}), p = (e) => {
|
|
678
|
-
let t =
|
|
682
|
+
let t = r.get(e);
|
|
679
683
|
if (!t) throw Error(`No record "${String(e)}".`);
|
|
680
684
|
return t;
|
|
681
685
|
};
|
|
682
686
|
return {
|
|
683
687
|
ids: e.map((e) => e.id),
|
|
684
688
|
at: (t) => c(e, t).map((e) => e.id),
|
|
685
|
-
state: (e, t,
|
|
686
|
-
let i =
|
|
687
|
-
return ee(i, p(t),
|
|
688
|
-
now:
|
|
689
|
-
input: f(i,
|
|
690
|
-
} : { now:
|
|
689
|
+
state: (e, t, r) => {
|
|
690
|
+
let i = d(e);
|
|
691
|
+
return ee(i, p(t), r ? {
|
|
692
|
+
now: n,
|
|
693
|
+
input: f(i, r)
|
|
694
|
+
} : { now: n });
|
|
691
695
|
},
|
|
692
|
-
bulk(e,
|
|
693
|
-
let s =
|
|
694
|
-
now:
|
|
696
|
+
bulk(e, a = t.map((e) => e.key), o) {
|
|
697
|
+
let s = d(e), c = re(s, a, (e) => r.get(e), o ? {
|
|
698
|
+
now: n,
|
|
695
699
|
input: f(s, o)
|
|
696
|
-
} : { now:
|
|
700
|
+
} : { now: n });
|
|
697
701
|
return {
|
|
698
702
|
...c,
|
|
699
|
-
reasons:
|
|
703
|
+
reasons: i(c.refused).map(({ reason: e, keys: t }) => ({
|
|
700
704
|
reason: e,
|
|
701
705
|
count: t.length,
|
|
702
706
|
keys: t
|
|
@@ -704,14 +708,14 @@ function $e(e, t, { now: r = Date.now() } = {}) {
|
|
|
704
708
|
};
|
|
705
709
|
},
|
|
706
710
|
asks(e, t, n) {
|
|
707
|
-
let r =
|
|
711
|
+
let r = d(e), i = f(r, n);
|
|
708
712
|
return {
|
|
709
|
-
asks:
|
|
710
|
-
confirm: te(r,
|
|
713
|
+
asks: a(r, t, i),
|
|
714
|
+
confirm: te(r, i)
|
|
711
715
|
};
|
|
712
716
|
},
|
|
713
717
|
form(e) {
|
|
714
|
-
let t =
|
|
718
|
+
let t = d(e).form;
|
|
715
719
|
return t ? Object.entries(t).map(([e, t]) => ({
|
|
716
720
|
name: e,
|
|
717
721
|
label: t.label,
|
|
@@ -720,19 +724,18 @@ function $e(e, t, { now: r = Date.now() } = {}) {
|
|
|
720
724
|
required: t.required !== !1
|
|
721
725
|
})) : null;
|
|
722
726
|
},
|
|
723
|
-
choice: (e) => d(
|
|
727
|
+
choice: (e) => u(d(e))?.options ?? null,
|
|
724
728
|
missing: (e, t) => {
|
|
725
|
-
let n =
|
|
729
|
+
let n = d(e);
|
|
726
730
|
return s(n, f(n, t));
|
|
727
731
|
},
|
|
728
|
-
changesAt: (
|
|
729
|
-
run: (e, t,
|
|
730
|
-
let
|
|
731
|
-
return ne(
|
|
732
|
+
changesAt: (r) => l(e, r === void 0 ? t : [p(r)], n),
|
|
733
|
+
run: (e, t, i, a = {}) => {
|
|
734
|
+
let o = d(e);
|
|
735
|
+
return ne(o, r.get(t), f(o, i), n, { signal: a.signal ?? new AbortController().signal });
|
|
732
736
|
}
|
|
733
737
|
};
|
|
734
738
|
}
|
|
735
|
-
|
|
736
|
-
export { f as ActionRefusedError, $e as actionHarness, Ze as admit, Ce as matches, We as memorySource, ie as resolveNavigation };
|
|
739
|
+
export { d as ActionRefusedError, nt as actionHarness, et as admit, Ce as matches, qe as memorySource, ie as resolveNavigation };
|
|
737
740
|
|
|
738
741
|
//# sourceMappingURL=testing.js.map
|