@ahoo-wang/wow-view-engine 10.0.0-alpha.7 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actions-BWlediub.js → actions-CThpS7Yj.js} +2479 -2437
- package/dist/actions-CThpS7Yj.js.map +1 -0
- package/dist/analysis/buckets.d.ts.map +1 -1
- package/dist/analysis/columns.d.ts +192 -0
- package/dist/analysis/columns.d.ts.map +1 -0
- package/dist/analysis/index.d.ts +1 -0
- package/dist/analysis/index.d.ts.map +1 -1
- package/dist/analysis/project.d.ts +2 -152
- package/dist/analysis/project.d.ts.map +1 -1
- package/dist/capabilities/analysis.d.ts.map +1 -1
- package/dist/capabilities/cache.d.ts +13 -0
- package/dist/capabilities/cache.d.ts.map +1 -1
- package/dist/capabilities/fields.d.ts +3 -17
- package/dist/capabilities/fields.d.ts.map +1 -1
- package/dist/capabilities/semantic.d.ts +24 -0
- package/dist/capabilities/semantic.d.ts.map +1 -0
- package/dist/dashboard/index.d.ts +1 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/layout.d.ts +8 -40
- package/dist/dashboard/layout.d.ts.map +1 -1
- package/dist/dashboard/reorder.d.ts +43 -0
- package/dist/dashboard/reorder.d.ts.map +1 -0
- package/dist/dashboard/shape.d.ts +8 -0
- package/dist/dashboard/shape.d.ts.map +1 -0
- package/dist/dashboard/tabs.d.ts.map +1 -1
- package/dist/dashboard/validate.d.ts.map +1 -1
- package/dist/dashboard/validateContent.d.ts +3 -0
- package/dist/dashboard/validateContent.d.ts.map +1 -0
- package/dist/dashboard/validateFilters.d.ts.map +1 -1
- package/dist/{export-BCADqfu6.js → export-D6bnNjrA.js} +2 -2
- package/dist/{export-BCADqfu6.js.map → export-D6bnNjrA.js.map} +1 -1
- package/dist/filter/kinds/dateTime.d.ts.map +1 -1
- package/dist/filter/time.d.ts.map +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +255 -220
- package/dist/index.js.map +1 -1
- package/dist/model/cartesian.d.ts +132 -0
- package/dist/model/cartesian.d.ts.map +1 -0
- package/dist/model/chart.d.ts +1 -130
- package/dist/model/chart.d.ts.map +1 -1
- package/dist/model/currency.d.ts +1 -1
- package/dist/model/currency.d.ts.map +1 -1
- package/dist/model/definition.d.ts +9 -0
- package/dist/model/definition.d.ts.map +1 -1
- package/dist/model/field.d.ts +3 -142
- package/dist/model/field.d.ts.map +1 -1
- package/dist/model/fieldNumeric.d.ts +78 -0
- package/dist/model/fieldNumeric.d.ts.map +1 -0
- package/dist/model/fieldTemporal.d.ts +68 -0
- package/dist/model/fieldTemporal.d.ts.map +1 -0
- package/dist/model/index.d.ts +3 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/react/actionRunner.d.ts +17 -0
- package/dist/react/actionRunner.d.ts.map +1 -1
- package/dist/react/filterTree.d.ts +109 -0
- package/dist/react/filterTree.d.ts.map +1 -0
- package/dist/react/followUp.d.ts +105 -0
- package/dist/react/followUp.d.ts.map +1 -0
- package/dist/react/index.d.ts +6 -3
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/rulesClock.d.ts +20 -0
- package/dist/react/rulesClock.d.ts.map +1 -0
- package/dist/react/useAnalysisResult.d.ts +1 -80
- package/dist/react/useAnalysisResult.d.ts.map +1 -1
- package/dist/react/useFilterEditor.d.ts +24 -108
- package/dist/react/useFilterEditor.d.ts.map +1 -1
- package/dist/react/useRecordActions.d.ts +25 -0
- package/dist/react/useRecordActions.d.ts.map +1 -1
- package/dist/react/useRecordDetail.d.ts.map +1 -1
- package/dist/react/useRecordExport.d.ts.map +1 -1
- package/dist/react/useRecordTable.d.ts +6 -0
- package/dist/react/useRecordTable.d.ts.map +1 -1
- package/dist/react/useSaveCommands.d.ts +11 -0
- package/dist/react/useSaveCommands.d.ts.map +1 -1
- package/dist/react/useSearchBox.d.ts.map +1 -1
- package/dist/react/useStale.d.ts +24 -0
- package/dist/react/useStale.d.ts.map +1 -0
- package/dist/react/useWorkbench.d.ts +3 -61
- package/dist/react/useWorkbench.d.ts.map +1 -1
- package/dist/react/workbench/handOver.d.ts +1 -1
- package/dist/react/workbench/handOver.d.ts.map +1 -1
- package/dist/react/workbench/heldView.d.ts +112 -0
- package/dist/react/workbench/heldView.d.ts.map +1 -0
- package/dist/react/workbench/instanceSync.d.ts +5 -1
- package/dist/react/workbench/instanceSync.d.ts.map +1 -1
- package/dist/react/workbench/switching.d.ts +29 -0
- package/dist/react/workbench/switching.d.ts.map +1 -0
- package/dist/react-0RrtrG7t.js +4316 -0
- package/dist/react-0RrtrG7t.js.map +1 -0
- package/dist/react.js +1 -1
- package/dist/record/compile.d.ts +3 -1
- package/dist/record/compile.d.ts.map +1 -1
- package/dist/record/index.d.ts +1 -0
- package/dist/record/index.d.ts.map +1 -1
- package/dist/record/kanban.d.ts.map +1 -1
- package/dist/record/path.d.ts +10 -0
- package/dist/record/path.d.ts.map +1 -1
- package/dist/record/project.d.ts +9 -66
- package/dist/record/project.d.ts.map +1 -1
- package/dist/record/summaries.d.ts +68 -0
- package/dist/record/summaries.d.ts.map +1 -0
- package/dist/runtime/actions.d.ts +39 -0
- package/dist/runtime/actions.d.ts.map +1 -1
- package/dist/runtime/autoApply.d.ts +17 -2
- package/dist/runtime/autoApply.d.ts.map +1 -1
- package/dist/runtime/capabilities.d.ts +15 -1
- package/dist/runtime/capabilities.d.ts.map +1 -1
- package/dist/runtime/commandChecks.d.ts +8 -4
- package/dist/runtime/commandChecks.d.ts.map +1 -1
- package/dist/runtime/dashboard/commands.d.ts +3 -1
- package/dist/runtime/dashboard/commands.d.ts.map +1 -1
- package/dist/runtime/dashboard/editing.d.ts +10 -1
- package/dist/runtime/dashboard/editing.d.ts.map +1 -1
- package/dist/runtime/dashboard/history.d.ts +8 -0
- package/dist/runtime/dashboard/history.d.ts.map +1 -1
- package/dist/runtime/dashboard/panelSync.d.ts +57 -0
- package/dist/runtime/dashboard/panelSync.d.ts.map +1 -0
- package/dist/runtime/dashboardRuntime.d.ts +3 -20
- package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
- package/dist/runtime/datasetResources.d.ts +29 -1
- package/dist/runtime/datasetResources.d.ts.map +1 -1
- package/dist/runtime/define/spec.d.ts +2 -1
- package/dist/runtime/define/spec.d.ts.map +1 -1
- package/dist/runtime/failure/failures.d.ts.map +1 -1
- package/dist/runtime/failure/issueReport.d.ts.map +1 -1
- package/dist/runtime/generations.d.ts +89 -0
- package/dist/runtime/generations.d.ts.map +1 -0
- package/dist/runtime/instanceWrites.d.ts.map +1 -1
- package/dist/runtime/panelViews.d.ts.map +1 -1
- package/dist/runtime/permissions.d.ts.map +1 -1
- package/dist/runtime/preferences.d.ts +37 -11
- package/dist/runtime/preferences.d.ts.map +1 -1
- package/dist/runtime/recordRuntime.d.ts +13 -0
- package/dist/runtime/recordRuntime.d.ts.map +1 -1
- package/dist/runtime/resources.d.ts +4 -1
- package/dist/runtime/resources.d.ts.map +1 -1
- package/dist/runtime/restyle.d.ts +17 -12
- package/dist/runtime/restyle.d.ts.map +1 -1
- package/dist/runtime/summaries.d.ts +16 -2
- package/dist/runtime/summaries.d.ts.map +1 -1
- package/dist/runtime/tabMemory.d.ts +11 -4
- package/dist/runtime/tabMemory.d.ts.map +1 -1
- package/dist/runtime/validateDefinition.d.ts.map +1 -1
- package/dist/runtime/validateSystemViews.d.ts +10 -0
- package/dist/runtime/validateSystemViews.d.ts.map +1 -0
- package/dist/runtime/viewEngine.d.ts +11 -6
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/runtime/viewOpening.d.ts +30 -0
- package/dist/runtime/viewOpening.d.ts.map +1 -0
- package/dist/runtime/viewRuntime.d.ts +3 -1
- package/dist/runtime/viewRuntime.d.ts.map +1 -1
- package/dist/runtime/viewRuntimeTypes.d.ts +29 -3
- package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
- package/dist/runtime/write.d.ts +11 -0
- package/dist/runtime/write.d.ts.map +1 -1
- package/dist/runtime/writeEffects.d.ts +16 -0
- package/dist/runtime/writeEffects.d.ts.map +1 -0
- package/dist/runtime/writeLedger.d.ts +13 -12
- package/dist/runtime/writeLedger.d.ts.map +1 -1
- package/dist/store/MemoryViewStore.d.ts +8 -0
- package/dist/store/MemoryViewStore.d.ts.map +1 -1
- package/dist/store/ViewStore.d.ts +16 -0
- package/dist/store/ViewStore.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/filter.d.ts +13 -5
- package/dist/testing/filter.d.ts.map +1 -1
- package/dist/testing/source.d.ts +8 -0
- package/dist/testing/source.d.ts.map +1 -1
- package/dist/testing.js +133 -134
- package/dist/testing.js.map +1 -1
- package/dist/theme-check.mjs +206 -222
- package/dist/theme-source.css +265 -109
- package/dist/theme-tokens.json +293 -441
- package/dist/themes/contrast.css +12 -12
- package/dist/themes.css +12 -276
- package/dist/ui/DashboardWorkbench.d.ts +2 -2
- package/dist/ui/DataWorkbench.d.ts +2 -2
- package/dist/ui/ViewHost.d.ts +11 -1
- package/dist/ui/ViewHost.d.ts.map +1 -1
- package/dist/ui/actions/ActionButtons.d.ts +7 -1
- package/dist/ui/actions/ActionButtons.d.ts.map +1 -1
- package/dist/ui/actions/ActionDialog.d.ts.map +1 -1
- package/dist/ui/actions/ActionSurface.d.ts +6 -0
- package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
- package/dist/ui/actions/BulkStatus.d.ts.map +1 -1
- package/dist/ui/analysis/DimensionCard.d.ts.map +1 -1
- package/dist/ui/analysis/DisplayTab.d.ts.map +1 -1
- package/dist/ui/analysis/ElementsSlot.d.ts.map +1 -1
- package/dist/ui/analysis/HavingRows.d.ts.map +1 -1
- package/dist/ui/analysis/MetricSlot.d.ts.map +1 -1
- package/dist/ui/analysis/RangeSlot.d.ts.map +1 -1
- package/dist/ui/analysis/TopRow.d.ts.map +1 -1
- package/dist/ui/analysis/cartesianSpec.d.ts +1 -1
- package/dist/ui/analysis/exportOffer.d.ts.map +1 -1
- package/dist/ui/charts/EChart.d.ts +5 -7
- package/dist/ui/charts/EChart.d.ts.map +1 -1
- package/dist/ui/charts/MetricCard.d.ts.map +1 -1
- package/dist/ui/charts/PieSlices.d.ts.map +1 -1
- package/dist/ui/charts/candlestickOption.d.ts +1 -1
- package/dist/ui/charts/cartesianPlan.d.ts +0 -30
- package/dist/ui/charts/cartesianPlan.d.ts.map +1 -1
- package/dist/ui/charts/cartesianStacks.d.ts +36 -0
- package/dist/ui/charts/cartesianStacks.d.ts.map +1 -0
- package/dist/ui/charts/cartesianTooltip.d.ts.map +1 -1
- package/dist/ui/charts/pieOption.d.ts +10 -0
- package/dist/ui/charts/pieOption.d.ts.map +1 -1
- package/dist/ui/charts/theme.d.ts +35 -12
- package/dist/ui/charts/theme.d.ts.map +1 -1
- package/dist/ui/charts/waterfallOption.d.ts +4 -3
- package/dist/ui/charts/waterfallOption.d.ts.map +1 -1
- package/dist/ui/columns/ColumnRegion.d.ts +27 -0
- package/dist/ui/columns/ColumnRegion.d.ts.map +1 -0
- package/dist/ui/columns/ColumnSettings.d.ts.map +1 -1
- package/dist/ui/dashboard/DashboardPanelCard.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterSheet.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterWiring.d.ts.map +1 -1
- package/dist/ui/dashboard/OpensNumber.d.ts +17 -0
- package/dist/ui/dashboard/OpensNumber.d.ts.map +1 -0
- package/dist/ui/dashboard/PanelHeader.d.ts +18 -0
- package/dist/ui/dashboard/PanelHeader.d.ts.map +1 -0
- package/dist/ui/dashboard/gridWidth.d.ts +6 -0
- package/dist/ui/dashboard/gridWidth.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedAnalysis.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedRecord.d.ts.map +1 -1
- package/dist/ui/filter/AppliedBar.d.ts.map +1 -1
- package/dist/ui/filter/ConditionPill.d.ts.map +1 -1
- package/dist/ui/filter/NestedPredicate.d.ts +23 -0
- package/dist/ui/filter/NestedPredicate.d.ts.map +1 -0
- package/dist/ui/filter/inputs/number.d.ts +1 -1
- package/dist/ui/filter/inputs/number.d.ts.map +1 -1
- package/dist/ui/filter/inputs/shared.d.ts +1 -1
- package/dist/ui/filter/inputs/shared.d.ts.map +1 -1
- package/dist/ui/index.d.ts +3 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/kit/DragHandle.d.ts +7 -1
- package/dist/ui/kit/DragHandle.d.ts.map +1 -1
- package/dist/ui/kit/IconButton.d.ts +10 -1
- package/dist/ui/kit/IconButton.d.ts.map +1 -1
- package/dist/ui/kit/PendingDot.d.ts +2 -1
- package/dist/ui/kit/PendingDot.d.ts.map +1 -1
- package/dist/ui/kit/alerts.d.ts.map +1 -1
- package/dist/ui/kit/characterKeys.d.ts +10 -0
- package/dist/ui/kit/characterKeys.d.ts.map +1 -0
- package/dist/ui/kit/display.d.ts +0 -31
- package/dist/ui/kit/display.d.ts.map +1 -1
- package/dist/ui/kit/displayTime.d.ts +58 -0
- package/dist/ui/kit/displayTime.d.ts.map +1 -0
- package/dist/ui/kit/frames.d.ts +233 -0
- package/dist/ui/kit/frames.d.ts.map +1 -0
- package/dist/ui/kit/keptFocus.d.ts +35 -0
- package/dist/ui/kit/keptFocus.d.ts.map +1 -0
- package/dist/ui/kit/pills.d.ts +70 -0
- package/dist/ui/kit/pills.d.ts.map +1 -0
- package/dist/ui/kit/popupLayer.d.ts +160 -0
- package/dist/ui/kit/popupLayer.d.ts.map +1 -0
- package/dist/ui/kit/popups.d.ts +20 -3
- package/dist/ui/kit/popups.d.ts.map +1 -1
- package/dist/ui/kit/presets.d.ts +1 -5
- package/dist/ui/kit/presets.d.ts.map +1 -1
- package/dist/ui/kit/stale.d.ts +30 -0
- package/dist/ui/kit/stale.d.ts.map +1 -0
- package/dist/ui/kit/variants.d.ts +11 -313
- package/dist/ui/kit/variants.d.ts.map +1 -1
- package/dist/ui/manage/ViewManager.d.ts.map +1 -1
- package/dist/ui/manage/ViewManagerRow.d.ts.map +1 -1
- package/dist/ui/messages/actions.d.ts +1 -0
- package/dist/ui/messages/actions.d.ts.map +1 -1
- package/dist/ui/messages/analysis.d.ts +1 -438
- package/dist/ui/messages/analysis.d.ts.map +1 -1
- package/dist/ui/messages/chart.d.ts +257 -0
- package/dist/ui/messages/chart.d.ts.map +1 -0
- package/dist/ui/messages/chartIssues.d.ts +95 -0
- package/dist/ui/messages/chartIssues.d.ts.map +1 -0
- package/dist/ui/messages/chartReading.d.ts +112 -0
- package/dist/ui/messages/chartReading.d.ts.map +1 -0
- package/dist/ui/messages/dashboard.d.ts +1 -0
- package/dist/ui/messages/dashboard.d.ts.map +1 -1
- package/dist/ui/messages/definition.d.ts +3 -0
- package/dist/ui/messages/definition.d.ts.map +1 -1
- package/dist/ui/messages/en.d.ts +416 -409
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/save.d.ts +1 -0
- package/dist/ui/messages/save.d.ts.map +1 -1
- package/dist/ui/messages/scope.d.ts +1 -0
- package/dist/ui/messages/scope.d.ts.map +1 -1
- package/dist/ui/messages/view.d.ts +1 -1
- package/dist/ui/messages/view.d.ts.map +1 -1
- package/dist/ui/messages/zh-CN/actions.d.ts +33 -0
- package/dist/ui/messages/zh-CN/actions.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/analysis.d.ts +286 -0
- package/dist/ui/messages/zh-CN/analysis.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/building.d.ts +64 -0
- package/dist/ui/messages/zh-CN/building.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/bulk.d.ts +28 -0
- package/dist/ui/messages/zh-CN/bulk.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/capabilities.d.ts +42 -0
- package/dist/ui/messages/zh-CN/capabilities.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/chart.d.ts +256 -0
- package/dist/ui/messages/zh-CN/chart.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/chartIssues.d.ts +96 -0
- package/dist/ui/messages/zh-CN/chartIssues.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/chartReading.d.ts +112 -0
- package/dist/ui/messages/zh-CN/chartReading.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/clicks.d.ts +85 -0
- package/dist/ui/messages/zh-CN/clicks.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/config.d.ts +17 -0
- package/dist/ui/messages/zh-CN/config.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/dashboard.d.ts +316 -0
- package/dist/ui/messages/zh-CN/dashboard.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/datasets.d.ts +15 -0
- package/dist/ui/messages/zh-CN/datasets.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/definition.d.ts +78 -0
- package/dist/ui/messages/zh-CN/definition.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/embed.d.ts +13 -0
- package/dist/ui/messages/zh-CN/embed.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/export.d.ts +46 -0
- package/dist/ui/messages/zh-CN/export.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/filter.d.ts +269 -0
- package/dist/ui/messages/zh-CN/filter.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/filters.d.ts +80 -0
- package/dist/ui/messages/zh-CN/filters.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/header.d.ts +25 -0
- package/dist/ui/messages/zh-CN/header.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/manage.d.ts +46 -0
- package/dist/ui/messages/zh-CN/manage.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/record.d.ts +205 -0
- package/dist/ui/messages/zh-CN/record.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/refresh.d.ts +17 -0
- package/dist/ui/messages/zh-CN/refresh.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/render.d.ts +12 -0
- package/dist/ui/messages/zh-CN/render.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/reorder.d.ts +14 -0
- package/dist/ui/messages/zh-CN/reorder.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/save.d.ts +62 -0
- package/dist/ui/messages/zh-CN/save.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/scope.d.ts +27 -0
- package/dist/ui/messages/zh-CN/scope.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/status.d.ts +36 -0
- package/dist/ui/messages/zh-CN/status.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/view.d.ts +175 -0
- package/dist/ui/messages/zh-CN/view.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN/workbench.d.ts +18 -0
- package/dist/ui/messages/zh-CN/workbench.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN.d.ts +4 -0
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui/record/DetailStructure.d.ts.map +1 -1
- package/dist/ui/record/RecordCards.d.ts +3 -1
- package/dist/ui/record/RecordCards.d.ts.map +1 -1
- package/dist/ui/record/RecordDetail.d.ts +7 -1
- package/dist/ui/record/RecordDetail.d.ts.map +1 -1
- package/dist/ui/record/RecordKanban.d.ts +3 -1
- package/dist/ui/record/RecordKanban.d.ts.map +1 -1
- package/dist/ui/record/RecordTable.d.ts +6 -1
- package/dist/ui/record/RecordTable.d.ts.map +1 -1
- package/dist/ui/record/RowCheckbox.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/ui/sort/SortSettings.d.ts.map +1 -1
- package/dist/ui/sort/SortSummary.d.ts +73 -0
- package/dist/ui/sort/SortSummary.d.ts.map +1 -0
- package/dist/ui/theme/entry.d.ts +223 -0
- package/dist/ui/theme/entry.d.ts.map +1 -0
- package/dist/ui/theme/pairs.d.ts +1 -12
- package/dist/ui/theme/pairs.d.ts.map +1 -1
- package/dist/ui/theme/tokens.d.ts +152 -215
- package/dist/ui/theme/tokens.d.ts.map +1 -1
- package/dist/ui/workbench/AnalysisParts.d.ts.map +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts.map +1 -1
- package/dist/ui/workbench/OpenViewColumn.d.ts +28 -0
- package/dist/ui/workbench/OpenViewColumn.d.ts.map +1 -0
- package/dist/ui/workbench/OpeningSkeleton.d.ts.map +1 -1
- package/dist/ui/workbench/RecordParts.d.ts.map +1 -1
- package/dist/ui/workbench/SaveActions.d.ts.map +1 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts +7 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts.map +1 -1
- package/dist/ui/workbench/SearchBox.d.ts.map +1 -1
- package/dist/ui/workbench/Sidebar.d.ts.map +1 -1
- package/dist/ui/workbench/TitleBar.d.ts.map +1 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts +3 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
- package/dist/ui/workbench/ViewList.d.ts.map +1 -1
- package/dist/ui/workbench/WorkbenchShell.d.ts +6 -9
- package/dist/ui/workbench/WorkbenchShell.d.ts.map +1 -1
- package/dist/ui/workbench/WriteOutcome.d.ts.map +1 -1
- package/dist/ui/workbench/address.d.ts +4 -2
- package/dist/ui/workbench/address.d.ts.map +1 -1
- package/dist/ui/workbench/useSidebarFold.d.ts +16 -27
- package/dist/ui/workbench/useSidebarFold.d.ts.map +1 -1
- package/dist/ui/workbench/useWorkbenchFolds.d.ts +1 -1
- package/dist/ui/workbench/useWorkbenchFolds.d.ts.map +1 -1
- package/dist/ui.js +13891 -13604
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-BCdG5xRp.js → viewEngine-DL-S0OAZ.js} +1937 -1622
- package/dist/viewEngine-DL-S0OAZ.js.map +1 -0
- package/package.json +18 -18
- package/dist/actions-BWlediub.js.map +0 -1
- package/dist/react-D1wSQhlr.js +0 -4196
- package/dist/react-D1wSQhlr.js.map +0 -1
- package/dist/themes/azure.css +0 -126
- package/dist/themes/porcelain.css +0 -136
- package/dist/viewRuntimeTypes-BCdG5xRp.js.map +0 -1
package/dist/testing/filter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyObject } from 'mingo/types';
|
|
2
|
-
import { ComparisonOperator, ElementFilterExpression, FilterExpression } from '@ahoo-wang/wow-client/dsl';
|
|
2
|
+
import { ComparisonOperator, TimeUnit, ElementFilterExpression, FilterExpression } from '@ahoo-wang/wow-client/dsl';
|
|
3
3
|
import { RecordData } from '../model/record.js';
|
|
4
4
|
type Filter = FilterExpression | ElementFilterExpression;
|
|
5
5
|
/**
|
|
@@ -8,7 +8,8 @@ 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, read once (the current time by default)
|
|
11
|
+
* `AFTER_NOW` compare against, read once (the current time by default),
|
|
12
|
+
* every time counted in epoch milliseconds.
|
|
12
13
|
*/
|
|
13
14
|
export declare function matches(document: RecordData, filter: FilterExpression, options?: {
|
|
14
15
|
now?: () => Date;
|
|
@@ -40,9 +41,16 @@ export declare function criteria(filter: Filter): AnyObject;
|
|
|
40
41
|
* A query with every `BEFORE_NOW` / `AFTER_NOW` in it — at the root, in a
|
|
41
42
|
* logical or element match, in a metric's or an element's filter — lowered
|
|
42
43
|
* the way Wow's `FilterNormalizer` lowers them: to `LT` / `GT` against
|
|
43
|
-
* `now + offset`, encoded as the field keeps its time
|
|
44
|
-
*
|
|
44
|
+
* `now + offset`, encoded as the field keeps its time: in the unit
|
|
45
|
+
* `timeUnits` names for it, milliseconds otherwise. The clock is read once,
|
|
46
|
+
* and only when the query holds one.
|
|
45
47
|
*/
|
|
46
|
-
export declare function atNow<Q>(query: Q, clock?: () => Date): Q;
|
|
48
|
+
export declare function atNow<Q>(query: Q, clock?: () => Date, timeUnits?: FieldTimeUnits): Q;
|
|
49
|
+
/**
|
|
50
|
+
* The unit each time field a document holds as an epoch number counts in, by
|
|
51
|
+
* its path, for a field not kept in milliseconds: what the service's query
|
|
52
|
+
* schema declares (`@QueryTemporal`), which a filter does not carry.
|
|
53
|
+
*/
|
|
54
|
+
type FieldTimeUnits = Readonly<Record<string, TimeUnit>>;
|
|
47
55
|
export {};
|
|
48
56
|
//# 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,
|
|
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,EAKlB,QAAQ,EACR,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;;;;;;;;GAQG;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;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,EACrB,KAAK,EAAE,CAAC,EACR,KAAK,GAAE,MAAM,IAAuB,EACpC,SAAS,GAAE,cAAmB,GAC7B,CAAC,CAgBH;AAaD;;;;GAIG;AACH,KAAK,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
package/dist/testing/source.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TimeUnit } from '@ahoo-wang/wow-client/dsl';
|
|
1
2
|
import { RecordData } from '../model/record.js';
|
|
2
3
|
import { ViewSource } from '../runtime/source.js';
|
|
3
4
|
/**
|
|
@@ -22,6 +23,13 @@ export interface MemorySourceOptions {
|
|
|
22
23
|
* order they came in.
|
|
23
24
|
*/
|
|
24
25
|
timeField?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The unit of each time field the documents hold in another unit than
|
|
28
|
+
* epoch milliseconds, by its path, as the service's query schema declares
|
|
29
|
+
* it: `BEFORE_NOW` and `AFTER_NOW` count the moment in it, as the service
|
|
30
|
+
* does. A filter does not carry it.
|
|
31
|
+
*/
|
|
32
|
+
timeUnits?: Readonly<Record<string, TimeUnit>>;
|
|
25
33
|
/**
|
|
26
34
|
* Answer a repeated aggregation from memory, keyed by the query, each
|
|
27
35
|
* caller getting its own copy. Only for documents that never change under
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/testing/source.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/testing/source.ts"],"names":[],"mappings":"AAcA,OAAO,EAIL,KAAK,QAAQ,EAId,MAAM,2BAA2B,CAAC;AACnC,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,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/C;;;;;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,CA6CZ"}
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e,
|
|
1
|
+
import { C as e, Q as t, Ra as n, T as r, Xr as i, Za as a, _ as o, b as s, d as c, f as l, l as u, m as d, r as f, s as ee, u as p, v as te, x as ne, y as re } from "./actions-CThpS7Yj.js";
|
|
2
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";
|
|
@@ -16,48 +16,48 @@ function j(e) {
|
|
|
16
16
|
function M(e) {
|
|
17
17
|
return Array.isArray(e) ? e.length === 1 ? M(e[0]) : null : typeof e == "number" && Number.isFinite(e) ? e : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function N(e) {
|
|
20
20
|
return e == null ? 0 : typeof e == "number" ? 1 : typeof e == "string" ? 2 : Array.isArray(e) ? 4 : typeof e == "object" ? 3 : 5;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
let n =
|
|
22
|
+
function P(e, t) {
|
|
23
|
+
let n = N(e) - N(t);
|
|
24
24
|
if (n !== 0) return n;
|
|
25
25
|
let [r, i] = typeof e == "number" || typeof e == "string" || typeof e == "boolean" ? [e, t] : [JSON.stringify(e), JSON.stringify(t)];
|
|
26
26
|
return r < i ? -1 : +(r > i);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function F(e, t) {
|
|
29
29
|
return (e % t + t) % t;
|
|
30
30
|
}
|
|
31
31
|
// src/testing/calendar.ts
|
|
32
|
-
var
|
|
33
|
-
[h.HOUR]:
|
|
32
|
+
var I = 36e5, L = 24 * I, fe = {
|
|
33
|
+
[h.HOUR]: I,
|
|
34
34
|
[h.MINUTE]: 6e4,
|
|
35
35
|
[h.SECOND]: 1e3
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
let n = `${e}|${t}`, r =
|
|
39
|
-
return r || (r =
|
|
36
|
+
}, R = /* @__PURE__ */ new Map();
|
|
37
|
+
function z(e, t) {
|
|
38
|
+
let n = `${e}|${t}`, r = R.get(n);
|
|
39
|
+
return r || (r = pe(e, t), R.set(n, r)), r;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function pe(e, t) {
|
|
42
42
|
if (!Object.values(h).includes(e)) throw Error(`The memory source does not bucket by ${e}.`);
|
|
43
|
-
let n =
|
|
44
|
-
let i = r.get(Math.floor(t /
|
|
43
|
+
let n = V(t), r = /* @__PURE__ */ new Map(), i = (t) => {
|
|
44
|
+
let i = r.get(Math.floor(t / L))?.find((e) => e.start <= t && t < e.end);
|
|
45
45
|
if (i) return i;
|
|
46
|
-
let a =
|
|
47
|
-
for (let e = Math.floor(a.start /
|
|
46
|
+
let a = he(t, e, n), o = Math.floor((a.end - 1) / L);
|
|
47
|
+
for (let e = Math.floor(a.start / L); e <= o; e++) {
|
|
48
48
|
let t = r.get(e);
|
|
49
49
|
t ? t.push(a) : r.set(e, [a]);
|
|
50
50
|
}
|
|
51
51
|
return a;
|
|
52
|
-
}, a =
|
|
52
|
+
}, a = fe[e];
|
|
53
53
|
return a === void 0 ? (e) => i(e).bucket : (e) => {
|
|
54
54
|
let t = i(e);
|
|
55
|
-
return t.regular ? t.start + Math.floor((e - t.start) / a) * a : e -
|
|
55
|
+
return t.regular ? t.start + Math.floor((e - t.start) / a) * a : e - F(n.wall(e), L) % a;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
let t =
|
|
58
|
+
var B = /* @__PURE__ */ new Map();
|
|
59
|
+
function V(e) {
|
|
60
|
+
let t = B.get(e);
|
|
61
61
|
if (t) return t;
|
|
62
62
|
let n = new Intl.DateTimeFormat("en-US", {
|
|
63
63
|
timeZone: e,
|
|
@@ -73,51 +73,51 @@ function B(e) {
|
|
|
73
73
|
let t = {};
|
|
74
74
|
for (let { type: r, value: i } of n.formatToParts(e)) t[r] = i;
|
|
75
75
|
let r = t.era === "BC" ? 1 - Number(t.year) : Number(t.year), i = /* @__PURE__ */ new Date(0);
|
|
76
|
-
return i.setUTCFullYear(r, Number(t.month) - 1, Number(t.day)), i.setUTCHours(Number(t.hour), Number(t.minute), Number(t.second),
|
|
76
|
+
return i.setUTCFullYear(r, Number(t.month) - 1, Number(t.day)), i.setUTCHours(Number(t.hour), Number(t.minute), Number(t.second), F(e, 1e3)), i.getTime();
|
|
77
77
|
};
|
|
78
78
|
return t = {
|
|
79
79
|
wall: r,
|
|
80
|
-
instant: (e) =>
|
|
81
|
-
},
|
|
80
|
+
instant: (e) => me(e, r)
|
|
81
|
+
}, B.set(e, t), t;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
let n = t(e -
|
|
83
|
+
function me(e, t) {
|
|
84
|
+
let n = t(e - L) - (e - L), r = t(e + L) - (e + L);
|
|
85
85
|
return [e - n, e - r].filter((n) => t(n) === e).sort((e, t) => e - t)[0] ?? e - n;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
let r = n.wall(e) -
|
|
87
|
+
function he(e, t, n) {
|
|
88
|
+
let r = n.wall(e) - F(n.wall(e), L), i = n.instant(r), a = n.instant(r + L);
|
|
89
89
|
return {
|
|
90
90
|
start: i,
|
|
91
91
|
end: a,
|
|
92
|
-
regular: a - i ===
|
|
93
|
-
bucket:
|
|
92
|
+
regular: a - i === L && n.wall(i) - i === n.wall(a - 1) - (a - 1),
|
|
93
|
+
bucket: ge(r, i, t, n)
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ge(e, t, n, r) {
|
|
97
97
|
let i = new Date(e), a = i.getUTCFullYear(), o = i.getUTCMonth(), s = (e) => {
|
|
98
98
|
let t = /* @__PURE__ */ new Date(0);
|
|
99
99
|
return t.setUTCFullYear(a, e, 1), r.instant(t.getTime());
|
|
100
100
|
};
|
|
101
101
|
switch (n) {
|
|
102
|
-
case h.WEEK: return r.instant(e - (i.getUTCDay() + 6) % 7 *
|
|
102
|
+
case h.WEEK: return r.instant(e - (i.getUTCDay() + 6) % 7 * L);
|
|
103
103
|
case h.MONTH: return s(o);
|
|
104
104
|
case h.QUARTER: return s(o - o % 3);
|
|
105
105
|
case h.YEAR: return s(0);
|
|
106
106
|
default: return t;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function H(e) {
|
|
110
110
|
return e.timeZone ?? "UTC";
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var _e = {
|
|
113
113
|
[m.DAY_OF_WEEK]: [1, 7],
|
|
114
114
|
[m.HOUR_OF_DAY]: [0, 23],
|
|
115
115
|
[m.DAY_OF_MONTH]: [1, 31],
|
|
116
116
|
[m.MONTH_OF_YEAR]: [1, 12]
|
|
117
117
|
};
|
|
118
|
-
function
|
|
118
|
+
function ve(e, t) {
|
|
119
119
|
if (!Object.values(m).includes(e)) throw Error(`The memory source does not read the date part ${e}.`);
|
|
120
|
-
let n =
|
|
120
|
+
let n = V(t);
|
|
121
121
|
return (t) => {
|
|
122
122
|
let r = new Date(n.wall(t));
|
|
123
123
|
switch (e) {
|
|
@@ -128,21 +128,21 @@ function ye(e, t) {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
var
|
|
131
|
+
var U = 1e5, ye = {
|
|
132
132
|
[h.SECOND]: [1e3, 1e3],
|
|
133
133
|
[h.MINUTE]: [6e4, 6e4],
|
|
134
134
|
[h.HOUR]: [9e5, 9e5],
|
|
135
|
-
[h.DAY]: [22 *
|
|
136
|
-
[h.WEEK]: [166 *
|
|
137
|
-
[h.MONTH]: [27 *
|
|
138
|
-
[h.QUARTER]: [88 *
|
|
139
|
-
[h.YEAR]: [364 *
|
|
135
|
+
[h.DAY]: [22 * I, I],
|
|
136
|
+
[h.WEEK]: [166 * I, I],
|
|
137
|
+
[h.MONTH]: [27 * L, I],
|
|
138
|
+
[h.QUARTER]: [88 * L, I],
|
|
139
|
+
[h.YEAR]: [364 * L, I]
|
|
140
140
|
};
|
|
141
|
-
function
|
|
141
|
+
function be(e, t) {
|
|
142
142
|
if (e.length === 0) return [];
|
|
143
|
-
let n = [...e].sort((e, t) => e - t), r = n[n.length - 1], i =
|
|
143
|
+
let n = [...e].sort((e, t) => e - t), r = n[n.length - 1], i = z(t.unit, H(t)), [a, o] = ye[t.unit], s = [];
|
|
144
144
|
for (let e = n[0];;) {
|
|
145
|
-
if (s.push(e), s.length >
|
|
145
|
+
if (s.push(e), s.length > U) throw Error(`The memory source fills at most ${U} dense buckets.`);
|
|
146
146
|
if (e >= r) break;
|
|
147
147
|
let t = e + a;
|
|
148
148
|
for (; i(t) <= e;) t += o;
|
|
@@ -151,13 +151,13 @@ function xe(e, t) {
|
|
|
151
151
|
return s;
|
|
152
152
|
}
|
|
153
153
|
// src/testing/expression.ts
|
|
154
|
-
var
|
|
154
|
+
var xe = {
|
|
155
155
|
[S.SECOND]: 1e3,
|
|
156
156
|
[S.MINUTE]: 6e4,
|
|
157
157
|
[S.HOUR]: 36e5,
|
|
158
158
|
[S.DAY]: 864e5
|
|
159
159
|
};
|
|
160
|
-
function
|
|
160
|
+
function W(e, t, n) {
|
|
161
161
|
switch (e) {
|
|
162
162
|
case g.ADD: return t + n;
|
|
163
163
|
case g.SUBTRACT: return t - n;
|
|
@@ -166,17 +166,17 @@ function U(e, t, n) {
|
|
|
166
166
|
default: throw Error(`The memory source does not compute ${String(e)}.`);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function G(e, t) {
|
|
170
170
|
let n = (e) => e !== null && Number.isFinite(e) ? e : null;
|
|
171
171
|
switch (e.type) {
|
|
172
172
|
case _.FIELD: return M(A(t, e.field));
|
|
173
173
|
case _.CONSTANT: return n(e.value);
|
|
174
174
|
case _.BINARY: {
|
|
175
|
-
let r =
|
|
176
|
-
return r === null || i === null ? null : n(
|
|
175
|
+
let r = G(e.left, t), i = G(e.right, t);
|
|
176
|
+
return r === null || i === null ? null : n(W(e.operator, r, i));
|
|
177
177
|
}
|
|
178
178
|
case _.DATE_DIFF: {
|
|
179
|
-
let n =
|
|
179
|
+
let n = xe[e.unit];
|
|
180
180
|
if (n === void 0) throw Error(`The memory source does not measure in ${e.unit}.`);
|
|
181
181
|
let r = j(A(t, e.from)), i = j(A(t, e.to));
|
|
182
182
|
return r === null || i === null ? null : (i - r) / n;
|
|
@@ -185,10 +185,10 @@ function W(e, t) {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
// src/testing/filter.ts
|
|
188
|
-
function
|
|
188
|
+
function Se(e, t, n = {}) {
|
|
189
189
|
return new de(q(J(t, n.now))).test(e);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function K(e, t, n) {
|
|
192
192
|
switch (e) {
|
|
193
193
|
case x.EQ: return t === n;
|
|
194
194
|
case x.NE: return t !== n;
|
|
@@ -199,15 +199,15 @@ function G(e, t, n) {
|
|
|
199
199
|
default: throw Error(`The memory source does not compare with ${String(e)}.`);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
202
|
+
function Ce(e) {
|
|
203
|
+
return we(e) ? q(e) : { $and: [q(e), { deleted: { $ne: !0 } }] };
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function we(e) {
|
|
206
206
|
switch (e.op) {
|
|
207
207
|
case T.DELETION: return !0;
|
|
208
208
|
case T.AND:
|
|
209
209
|
case T.OR:
|
|
210
|
-
case T.NOR: return e.operands.some(
|
|
210
|
+
case T.NOR: return e.operands.some(we);
|
|
211
211
|
default: return !1;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -219,8 +219,8 @@ function q(e) {
|
|
|
219
219
|
case T.EXPRESSION: {
|
|
220
220
|
let { expression: t, comparison: n, value: r } = e;
|
|
221
221
|
return { $where: function() {
|
|
222
|
-
let e =
|
|
223
|
-
return e !== null &&
|
|
222
|
+
let e = G(t, this);
|
|
223
|
+
return e !== null && K(n, e, r);
|
|
224
224
|
} };
|
|
225
225
|
}
|
|
226
226
|
case T.AND:
|
|
@@ -265,14 +265,14 @@ function q(e) {
|
|
|
265
265
|
default: throw Error(`The memory source does not evaluate ${e.op}.`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function J(e, t = () => /* @__PURE__ */ new Date()) {
|
|
269
|
-
let
|
|
270
|
-
if (Array.isArray(e)) return e.map(
|
|
268
|
+
function J(e, t = () => /* @__PURE__ */ new Date(), n = {}) {
|
|
269
|
+
let r, i = (e) => {
|
|
270
|
+
if (Array.isArray(e)) return e.map(i);
|
|
271
271
|
if (typeof e != "object" || !e || e instanceof RegExp) return e;
|
|
272
|
-
let
|
|
273
|
-
return
|
|
272
|
+
let a = e.op;
|
|
273
|
+
return a === T.BEFORE_NOW || a === T.AFTER_NOW ? (r ??= t().getTime(), De(e, r, n)) : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, i(t)]));
|
|
274
274
|
};
|
|
275
|
-
return
|
|
275
|
+
return i(e);
|
|
276
276
|
}
|
|
277
277
|
var Ee = {
|
|
278
278
|
[O.NANOSECONDS]: 1e6,
|
|
@@ -283,13 +283,12 @@ var Ee = {
|
|
|
283
283
|
[O.HOURS]: 1 / 36e5,
|
|
284
284
|
[O.DAYS]: 1 / 864e5
|
|
285
285
|
};
|
|
286
|
-
function De(e, t) {
|
|
287
|
-
|
|
288
|
-
let n = t + ke(e.offset ?? "PT0S"), r = e.timeUnit ?? O.MILLISECONDS;
|
|
286
|
+
function De(e, t, n) {
|
|
287
|
+
let r = t + ke(e.offset ?? "PT0S"), i = n[e.field] ?? O.MILLISECONDS;
|
|
289
288
|
return {
|
|
290
289
|
op: e.op === T.BEFORE_NOW ? T.LT : T.GT,
|
|
291
290
|
field: e.field,
|
|
292
|
-
value: Math.trunc(
|
|
291
|
+
value: Math.trunc(r * Ee[i])
|
|
293
292
|
};
|
|
294
293
|
}
|
|
295
294
|
var Oe = /^([-+]?)P(?:([-+]?\d+)D)?(?:T(?=[-+]?\d)(?:([-+]?\d+)H)?(?:([-+]?\d+)M)?(?:([-+]?\d+)(?:[.,](\d{0,9}))?S)?)?$/i;
|
|
@@ -350,7 +349,7 @@ function Pe(e, t) {
|
|
|
350
349
|
function Fe(e) {
|
|
351
350
|
if (e.type === y.TERMS) {
|
|
352
351
|
let { field: t, expression: n, missingKey: r } = e;
|
|
353
|
-
return t === void 0 ? (e) => [
|
|
352
|
+
return t === void 0 ? (e) => [G(n, e) ?? r ?? null] : (e) => Pe(A(e, t), r);
|
|
354
353
|
}
|
|
355
354
|
let t = Ie(e);
|
|
356
355
|
return (e) => [t(e)];
|
|
@@ -360,19 +359,19 @@ function Ie(e) {
|
|
|
360
359
|
case y.HISTOGRAM: {
|
|
361
360
|
let { field: t, expression: n, interval: r } = e;
|
|
362
361
|
return (e) => {
|
|
363
|
-
let i = t === void 0 ?
|
|
362
|
+
let i = t === void 0 ? G(n, e) : A(e, t);
|
|
364
363
|
return typeof i == "number" && Number.isFinite(i) ? Math.floor(i / r) * r : null;
|
|
365
364
|
};
|
|
366
365
|
}
|
|
367
366
|
case y.DATE_HISTOGRAM: {
|
|
368
|
-
let t =
|
|
367
|
+
let t = z(e.unit, H(e));
|
|
369
368
|
return (n) => {
|
|
370
369
|
let r = j(A(n, e.field));
|
|
371
370
|
return r === null ? null : t(r);
|
|
372
371
|
};
|
|
373
372
|
}
|
|
374
373
|
case y.DATE_PART: {
|
|
375
|
-
let t =
|
|
374
|
+
let t = ve(e.part, H(e));
|
|
376
375
|
return (n) => {
|
|
377
376
|
let r = j(A(n, e.field));
|
|
378
377
|
return r === null ? null : t(r);
|
|
@@ -394,13 +393,13 @@ function Re(e, t) {
|
|
|
394
393
|
case b.NUMERIC:
|
|
395
394
|
case b.PERCENTILE: {
|
|
396
395
|
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);
|
|
397
|
-
let n = t.map((t) =>
|
|
396
|
+
let n = t.map((t) => G(e.expression, t)).filter((e) => e !== null);
|
|
398
397
|
return n.length === 0 ? null : e.type === b.PERCENTILE ? Ve(n, e.percentile) : Be(n, e.function);
|
|
399
398
|
}
|
|
400
399
|
case b.DISTINCT_COUNT: {
|
|
401
400
|
let { expression: n } = e, r = /* @__PURE__ */ new Set();
|
|
402
401
|
for (let e of t) {
|
|
403
|
-
let t = n.type === _.FIELD ? A(e, n.field) :
|
|
402
|
+
let t = n.type === _.FIELD ? A(e, n.field) : G(n, e);
|
|
404
403
|
for (let e of Array.isArray(t) ? t : [t]) e != null && r.add(JSON.stringify(e));
|
|
405
404
|
}
|
|
406
405
|
return r.size;
|
|
@@ -409,7 +408,7 @@ function Re(e, t) {
|
|
|
409
408
|
let n = null;
|
|
410
409
|
for (let r of t) {
|
|
411
410
|
let t = A(r, e.field);
|
|
412
|
-
t != null && (n === null ||
|
|
411
|
+
t != null && (n === null || P(t, n) > 0) && (n = t);
|
|
413
412
|
}
|
|
414
413
|
return n;
|
|
415
414
|
}
|
|
@@ -433,7 +432,7 @@ function ze(e, t, n) {
|
|
|
433
432
|
for (let i of e) {
|
|
434
433
|
let e = A(i, t), a = typeof e == "string" ? e : M(e);
|
|
435
434
|
if (a === null) continue;
|
|
436
|
-
let o = r === null ? 1 :
|
|
435
|
+
let o = r === null ? 1 : P(a, r);
|
|
437
436
|
(n ? o > 0 : o < 0 || r === null) && (r = a);
|
|
438
437
|
}
|
|
439
438
|
return r;
|
|
@@ -473,9 +472,9 @@ function He(e) {
|
|
|
473
472
|
function Ue(e, t, n) {
|
|
474
473
|
let r = new Map(e.map((e) => [e[t.alias], e])), i;
|
|
475
474
|
if (t.type === y.DATE_PART) {
|
|
476
|
-
let [e, n] =
|
|
475
|
+
let [e, n] = _e[t.part];
|
|
477
476
|
i = Array.from({ length: n - e + 1 }, (t, n) => e + n);
|
|
478
|
-
} else i =
|
|
477
|
+
} else i = be([...r.keys()], t);
|
|
479
478
|
return i.map((e) => r.get(e) ?? {
|
|
480
479
|
[t.alias]: e,
|
|
481
480
|
...He(n)
|
|
@@ -496,7 +495,7 @@ function Y(e, t) {
|
|
|
496
495
|
case w.BINARY: {
|
|
497
496
|
let n = Y(e.left, t), r = Y(e.right, t);
|
|
498
497
|
if (n === null || r === null) return null;
|
|
499
|
-
let i =
|
|
498
|
+
let i = W(e.operator, n, r);
|
|
500
499
|
return i !== null && Number.isFinite(i) ? i : null;
|
|
501
500
|
}
|
|
502
501
|
default: throw Error(`The memory source does not derive ${e.type}.`);
|
|
@@ -512,7 +511,7 @@ function X(e, t) {
|
|
|
512
511
|
case E.OR: return e.operands.some((e) => X(e, t));
|
|
513
512
|
case E.CONDITION: {
|
|
514
513
|
let t = n(e.metric);
|
|
515
|
-
return t !== null &&
|
|
514
|
+
return t !== null && K(e.operator, t, e.value);
|
|
516
515
|
}
|
|
517
516
|
case E.BETWEEN: {
|
|
518
517
|
let t = n(e.metric);
|
|
@@ -536,7 +535,7 @@ function Ge(e, t, n) {
|
|
|
536
535
|
}))];
|
|
537
536
|
return i.length === 0 ? [...e] : [...e].sort((e, t) => {
|
|
538
537
|
for (let { field: n, sign: r } of i) {
|
|
539
|
-
let i =
|
|
538
|
+
let i = P(e[n], t[n]);
|
|
540
539
|
if (i !== 0) return i * r;
|
|
541
540
|
}
|
|
542
541
|
return 0;
|
|
@@ -545,28 +544,28 @@ function Ge(e, t, n) {
|
|
|
545
544
|
// src/testing/source.ts
|
|
546
545
|
var Ke = 512;
|
|
547
546
|
function qe(e, t = {}) {
|
|
548
|
-
let n = Ye(e, t.timeField), r = /* @__PURE__ */ new Map(), i = t.now;
|
|
547
|
+
let n = Ye(e, t.timeField), r = /* @__PURE__ */ new Map(), i = t.now, a = t.timeUnits;
|
|
549
548
|
return {
|
|
550
549
|
paged: (e) => Z(() => {
|
|
551
|
-
let t = J(e, i), r = Q(n, t.filter, t.sort), { index:
|
|
550
|
+
let t = J(e, i, a), r = Q(n, t.filter, t.sort), { index: o, size: s } = t.pagination ?? se, c = (o - 1) * s;
|
|
552
551
|
return {
|
|
553
552
|
total: r.length,
|
|
554
553
|
exact: !0,
|
|
555
|
-
list: r.slice(
|
|
554
|
+
list: r.slice(c, c + s).map(Ze(t))
|
|
556
555
|
};
|
|
557
556
|
}),
|
|
558
557
|
cursor: (e) => Z(() => {
|
|
559
|
-
let t = J(e, i), r = Q(n, t.filter, t.sort),
|
|
558
|
+
let t = J(e, i, a), r = Q(n, t.filter, t.sort), o = Number(t.cursor ?? 0), s = o + (t.size ?? r.length);
|
|
560
559
|
return {
|
|
561
|
-
list: r.slice(
|
|
562
|
-
nextCursor:
|
|
560
|
+
list: r.slice(o, s).map(Ze(t)),
|
|
561
|
+
nextCursor: s < r.length ? String(s) : null
|
|
563
562
|
};
|
|
564
563
|
}),
|
|
565
564
|
aggregate: (e) => Z(() => {
|
|
566
|
-
let
|
|
567
|
-
if (!t.remember) return Je(n,
|
|
568
|
-
let
|
|
569
|
-
return
|
|
565
|
+
let o = J(e, i, a);
|
|
566
|
+
if (!t.remember) return Je(n, o);
|
|
567
|
+
let s = JSON.stringify(o), c = r.get(s);
|
|
568
|
+
return c || (c = Je(n, o), r.size >= Ke && r.clear(), r.set(s, c)), structuredClone(c);
|
|
570
569
|
})
|
|
571
570
|
};
|
|
572
571
|
}
|
|
@@ -593,7 +592,7 @@ function Ye(e, t) {
|
|
|
593
592
|
};
|
|
594
593
|
}
|
|
595
594
|
function Q(e, t, n = []) {
|
|
596
|
-
let r = k(Qe(e, t),
|
|
595
|
+
let r = k(Qe(e, t), Ce(t));
|
|
597
596
|
return (n.length > 0 ? r.sort(Xe(n)) : r).all();
|
|
598
597
|
}
|
|
599
598
|
function Xe(e) {
|
|
@@ -640,67 +639,67 @@ function $(e, t, n) {
|
|
|
640
639
|
return r;
|
|
641
640
|
}
|
|
642
641
|
// src/runtime/admission.ts
|
|
643
|
-
function et(
|
|
644
|
-
let
|
|
645
|
-
...
|
|
646
|
-
...
|
|
647
|
-
},
|
|
642
|
+
function et(t, o, s = {}) {
|
|
643
|
+
let c = s.kinds ?? i, l = {
|
|
644
|
+
...a,
|
|
645
|
+
...s.limits
|
|
646
|
+
}, u = (e) => s.text?.(e), d = t.map((e) => "definition" in e ? {
|
|
648
647
|
definition: e.definition,
|
|
649
648
|
resource: !0
|
|
650
649
|
} : {
|
|
651
650
|
definition: e,
|
|
652
651
|
resource: !1
|
|
653
|
-
}),
|
|
654
|
-
return
|
|
655
|
-
...
|
|
656
|
-
...
|
|
657
|
-
...tt(t,
|
|
658
|
-
...
|
|
659
|
-
limits:
|
|
660
|
-
definitions: (e) =>
|
|
652
|
+
}), f = new Set(t.flatMap((e) => "definition" in e && e.source && e.definition.kind === "data" ? [e.definition.source] : [])), ee = f.size > 0, p = new Map(d.map(({ definition: e }) => [e.id, e]));
|
|
653
|
+
return d.flatMap(({ definition: t, resource: i }) => [
|
|
654
|
+
...e(t, u).findings,
|
|
655
|
+
...ee && i && t.kind === "data" && !f.has(t.source) ? [n("definition.source.unregistered", ["source"], { source: t.source })] : [],
|
|
656
|
+
...tt(t, o, c),
|
|
657
|
+
...r(t, c, {
|
|
658
|
+
limits: l,
|
|
659
|
+
definitions: (e) => p.get(e)
|
|
661
660
|
})
|
|
662
661
|
].map((e) => ({
|
|
663
662
|
...e,
|
|
664
663
|
definition: t.id
|
|
665
664
|
})));
|
|
666
665
|
}
|
|
667
|
-
function tt(e,
|
|
666
|
+
function tt(e, r, i) {
|
|
668
667
|
if (e.kind !== "data") return [];
|
|
669
|
-
let a =
|
|
670
|
-
return a ?
|
|
668
|
+
let a = r[e.source];
|
|
669
|
+
return a ? t(e, a, i).findings : [n("definition.descriptor.missing", ["source"], { source: e.source }, "warning")];
|
|
671
670
|
}
|
|
672
671
|
// src/testing/actions.ts
|
|
673
672
|
function nt(e, t, { now: n = /* @__PURE__ */ new Date() } = {}) {
|
|
674
|
-
let r = new Map(t.map((e) => [e.key, e])),
|
|
673
|
+
let r = new Map(t.map((e) => [e.key, e])), i = (t) => {
|
|
675
674
|
let n = e.find((e) => e.id === t);
|
|
676
675
|
if (!n) throw Error(`No action "${t}".`);
|
|
677
676
|
return n;
|
|
678
|
-
},
|
|
679
|
-
...
|
|
677
|
+
}, a = (e, t = {}) => ({
|
|
678
|
+
...l(e),
|
|
680
679
|
...t
|
|
681
|
-
}),
|
|
680
|
+
}), f = (e) => {
|
|
682
681
|
let t = r.get(e);
|
|
683
682
|
if (!t) throw Error(`No record "${String(e)}".`);
|
|
684
683
|
return t;
|
|
685
684
|
};
|
|
686
685
|
return {
|
|
687
686
|
ids: e.map((e) => e.id),
|
|
688
|
-
at: (t) =>
|
|
687
|
+
at: (t) => te(e, t).map((e) => e.id),
|
|
689
688
|
state: (e, t, r) => {
|
|
690
|
-
let
|
|
691
|
-
return ee(
|
|
689
|
+
let o = i(e);
|
|
690
|
+
return ee(o, f(t), r ? {
|
|
692
691
|
now: n,
|
|
693
|
-
input:
|
|
692
|
+
input: a(o, r)
|
|
694
693
|
} : { now: n });
|
|
695
694
|
},
|
|
696
|
-
bulk(e,
|
|
697
|
-
let
|
|
695
|
+
bulk(e, o = t.map((e) => e.key), s) {
|
|
696
|
+
let c = i(e), l = ne(c, o, (e) => r.get(e), s ? {
|
|
698
697
|
now: n,
|
|
699
|
-
input:
|
|
698
|
+
input: a(c, s)
|
|
700
699
|
} : { now: n });
|
|
701
700
|
return {
|
|
702
|
-
...
|
|
703
|
-
reasons:
|
|
701
|
+
...l,
|
|
702
|
+
reasons: re(l.refused).map(({ reason: e, keys: t }) => ({
|
|
704
703
|
reason: e,
|
|
705
704
|
count: t.length,
|
|
706
705
|
keys: t
|
|
@@ -708,14 +707,14 @@ function nt(e, t, { now: n = /* @__PURE__ */ new Date() } = {}) {
|
|
|
708
707
|
};
|
|
709
708
|
},
|
|
710
709
|
asks(e, t, n) {
|
|
711
|
-
let r =
|
|
710
|
+
let r = i(e), o = a(r, n);
|
|
712
711
|
return {
|
|
713
|
-
asks:
|
|
714
|
-
confirm:
|
|
712
|
+
asks: u(r, t, o),
|
|
713
|
+
confirm: c(r, o)
|
|
715
714
|
};
|
|
716
715
|
},
|
|
717
716
|
form(e) {
|
|
718
|
-
let t =
|
|
717
|
+
let t = i(e).form;
|
|
719
718
|
return t ? Object.entries(t).map(([e, t]) => ({
|
|
720
719
|
name: e,
|
|
721
720
|
label: t.label,
|
|
@@ -724,18 +723,18 @@ function nt(e, t, { now: n = /* @__PURE__ */ new Date() } = {}) {
|
|
|
724
723
|
required: t.required !== !1
|
|
725
724
|
})) : null;
|
|
726
725
|
},
|
|
727
|
-
choice: (e) =>
|
|
726
|
+
choice: (e) => p(i(e))?.options ?? null,
|
|
728
727
|
missing: (e, t) => {
|
|
729
|
-
let n =
|
|
730
|
-
return
|
|
728
|
+
let n = i(e);
|
|
729
|
+
return d(n, a(n, t));
|
|
731
730
|
},
|
|
732
|
-
changesAt: (r) =>
|
|
733
|
-
run: (e, t,
|
|
734
|
-
let
|
|
735
|
-
return
|
|
731
|
+
changesAt: (r) => o(e, r === void 0 ? t : [f(r)], n),
|
|
732
|
+
run: (e, t, o, c = {}) => {
|
|
733
|
+
let l = i(e);
|
|
734
|
+
return s(l, r.get(t), a(l, o), n, { signal: c.signal ?? new AbortController().signal });
|
|
736
735
|
}
|
|
737
736
|
};
|
|
738
737
|
}
|
|
739
|
-
export {
|
|
738
|
+
export { f as ActionRefusedError, nt as actionHarness, et as admit, Se as matches, qe as memorySource, ie as resolveNavigation };
|
|
740
739
|
|
|
741
740
|
//# sourceMappingURL=testing.js.map
|