@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
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { ValueFormat } from './chart.js';
|
|
2
|
+
export interface CartesianSeries {
|
|
3
|
+
/** Metric alias. */
|
|
4
|
+
metric: string;
|
|
5
|
+
/** Required per series when the chart type is `combo`. */
|
|
6
|
+
type?: 'bar' | 'line' | 'area';
|
|
7
|
+
axis?: 'left' | 'right';
|
|
8
|
+
/**
|
|
9
|
+
* Series sharing a stack name are stacked — bars and areas; a line draws
|
|
10
|
+
* its own values whatever it says (`stacks`).
|
|
11
|
+
*/
|
|
12
|
+
stack?: string;
|
|
13
|
+
/**
|
|
14
|
+
* How a line or an area joins its points; unwritten, straight from one
|
|
15
|
+
* to the next. `smooth` curves through them; `step` holds each value
|
|
16
|
+
* until the next point and moves there, which is how a balance or a
|
|
17
|
+
* price reads: it stays what it was until something changes it. A bar
|
|
18
|
+
* draws no line and reads neither.
|
|
19
|
+
*/
|
|
20
|
+
line?: 'smooth' | 'step';
|
|
21
|
+
}
|
|
22
|
+
export interface CartesianSpec {
|
|
23
|
+
/** Group alias. */
|
|
24
|
+
x: string;
|
|
25
|
+
/** Second group alias, pivoting one metric into a series per value. */
|
|
26
|
+
splitBy?: string;
|
|
27
|
+
series: CartesianSeries[];
|
|
28
|
+
orientation?: 'vertical' | 'horizontal';
|
|
29
|
+
yAxis?: {
|
|
30
|
+
left?: AxisSpec;
|
|
31
|
+
right?: AxisSpec;
|
|
32
|
+
};
|
|
33
|
+
referenceLines?: ReferenceLine[];
|
|
34
|
+
/**
|
|
35
|
+
* What a point the rows lack draws as — a bucket missing from a time axis,
|
|
36
|
+
* a combination missing from a split. Left out or `zero`, the kernel's
|
|
37
|
+
* rule: 0 where the group is known to have had no records and the metric
|
|
38
|
+
* adds up, nothing otherwise (`absenceReader`). `gap`: nothing anywhere, a
|
|
39
|
+
* line broken where the rows are. Drawing only; the query is the same.
|
|
40
|
+
*/
|
|
41
|
+
missing?: CartesianMissing;
|
|
42
|
+
/**
|
|
43
|
+
* Stacked bars or areas drawn as each category's shares of its stack, so
|
|
44
|
+
* every stack reaches 100%. Only a stack of metrics that add up has a
|
|
45
|
+
* whole to share; a line or a chart that does not stack ignores it.
|
|
46
|
+
*/
|
|
47
|
+
percentStack?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Target bands: a stretch of one value axis shaded behind the marks, from
|
|
50
|
+
* one number to another — 「目标区间」, where a value should land.
|
|
51
|
+
*/
|
|
52
|
+
referenceBands?: ReferenceBand[];
|
|
53
|
+
/**
|
|
54
|
+
* Marks each drawn series' highest and lowest measured value — never a 0
|
|
55
|
+
* the kernel filled in. A series drawn inside a stack is not marked: its
|
|
56
|
+
* mark stands at the stack's height, not at its own value.
|
|
57
|
+
*/
|
|
58
|
+
extremes?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Lines computed from one drawn metric over the time axis — a trend, a
|
|
61
|
+
* moving average, a running total — drawn dashed over the marks, never
|
|
62
|
+
* stacked and in no colour slot (D33 batch B). The kernel draws one only
|
|
63
|
+
* over rows that are whole (`derivedGap`, Q53).
|
|
64
|
+
*/
|
|
65
|
+
derived?: DerivedSeries[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* What a derived series computes: the least-squares line through the
|
|
69
|
+
* measured points (`trend`), the mean of each point and the ones before it
|
|
70
|
+
* (`moving-average`, over `window` points), the running total
|
|
71
|
+
* (`cumulative`, a metric that adds up only), and the running total as a
|
|
72
|
+
* share of the whole (`cumulative-share`, 累计占比). The two running kinds
|
|
73
|
+
* also run along a categorical axis the result is sorted by the metric on —
|
|
74
|
+
* the Pareto chart (D38). The metric one bucket earlier (`previous`, 上一期)
|
|
75
|
+
* and a year earlier (`previous-year`, 去年同期) are the source's to compute
|
|
76
|
+
* (D88): only a source whose descriptor lists `PREVIOUS` draws them.
|
|
77
|
+
*/
|
|
78
|
+
export type DerivedKind = 'trend' | 'moving-average' | 'cumulative' | 'cumulative-share' | 'previous' | 'previous-year';
|
|
79
|
+
/** Every derived kind, in the order the options page offers them. */
|
|
80
|
+
export declare const DERIVED_KINDS: readonly ["trend", "moving-average", "cumulative", "cumulative-share", "previous", "previous-year"];
|
|
81
|
+
/** The widest window a moving average takes: a year of days. */
|
|
82
|
+
export declare const MAX_MOVING_WINDOW = 366;
|
|
83
|
+
export interface DerivedSeries {
|
|
84
|
+
kind: DerivedKind;
|
|
85
|
+
/** The metric alias of the drawn series it is computed from. */
|
|
86
|
+
metric: string;
|
|
87
|
+
/** A moving average's points, the current one included; 2 or more. */
|
|
88
|
+
window?: number;
|
|
89
|
+
}
|
|
90
|
+
/** How a missing point reads: as 0, or as a gap in the line. */
|
|
91
|
+
export type CartesianMissing = 'zero' | 'gap';
|
|
92
|
+
/** The two readings of a missing point, the default first. */
|
|
93
|
+
export declare const CARTESIAN_MISSING: readonly ["zero", "gap"];
|
|
94
|
+
export interface AxisSpec {
|
|
95
|
+
label?: string;
|
|
96
|
+
min?: number;
|
|
97
|
+
max?: number;
|
|
98
|
+
format?: ValueFormat;
|
|
99
|
+
/**
|
|
100
|
+
* How the axis is stepped: evenly (`linear`, the default) or by powers of
|
|
101
|
+
* ten (`log`), for numbers that span several orders of magnitude. A log
|
|
102
|
+
* axis has no place for 0 or a negative number, so over values that hold
|
|
103
|
+
* one it is drawn linear and says why (D33 batch E).
|
|
104
|
+
*/
|
|
105
|
+
scale?: 'linear' | 'log';
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* A horizontal rule across the plot: at a constant `value`, or at a
|
|
109
|
+
* `statistic` of one drawn metric's measured values — its average or its
|
|
110
|
+
* median over the points drawn, a filled-in 0 left out (batch B). One of
|
|
111
|
+
* the two places it; a statistic names its `metric`.
|
|
112
|
+
*/
|
|
113
|
+
export interface ReferenceLine {
|
|
114
|
+
axis: 'left' | 'right';
|
|
115
|
+
value?: number;
|
|
116
|
+
statistic?: ReferenceStatistic;
|
|
117
|
+
/** The metric alias a statistic is taken of. */
|
|
118
|
+
metric?: string;
|
|
119
|
+
label?: string;
|
|
120
|
+
}
|
|
121
|
+
/** Where a statistic reference line stands: the mean, or the middle value. */
|
|
122
|
+
export type ReferenceStatistic = 'average' | 'median';
|
|
123
|
+
/** The statistics a reference line may stand at, in the order offered. */
|
|
124
|
+
export declare const REFERENCE_STATISTICS: readonly ["average", "median"];
|
|
125
|
+
/** A stretch of one value axis, `from` below `to`, shaded behind the marks. */
|
|
126
|
+
export interface ReferenceBand {
|
|
127
|
+
axis: 'left' | 'right';
|
|
128
|
+
from: number;
|
|
129
|
+
to: number;
|
|
130
|
+
label?: string;
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=cartesian.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartesian.d.ts","sourceRoot":"","sources":["../../src/model/cartesian.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,mBAAmB;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAAC,KAAK,CAAC,EAAE,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CAAC,EAAE,kBAAkB,CAAC;IAC/B,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtD,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,gCAGiB,CAAC;AAEnD,+EAA+E;AAC/E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/dist/model/chart.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxisSpec, CartesianSpec } from './cartesian.js';
|
|
1
2
|
/**
|
|
2
3
|
* Charts are stored per family: the sub-object of the current `type` is
|
|
3
4
|
* required and the others are kept, so switching families loses nothing.
|
|
@@ -85,136 +86,6 @@ export type ChartFamily = Extract<keyof ChartSpec, 'cartesian' | 'pie' | 'heatma
|
|
|
85
86
|
export declare const CHART_COLOR_SLOTS = 8;
|
|
86
87
|
/** Which sub-object each chart type requires. */
|
|
87
88
|
export declare const CHART_FAMILY: Readonly<Record<ChartType, ChartFamily>>;
|
|
88
|
-
export interface CartesianSeries {
|
|
89
|
-
/** Metric alias. */
|
|
90
|
-
metric: string;
|
|
91
|
-
/** Required per series when the chart type is `combo`. */
|
|
92
|
-
type?: 'bar' | 'line' | 'area';
|
|
93
|
-
axis?: 'left' | 'right';
|
|
94
|
-
/**
|
|
95
|
-
* Series sharing a stack name are stacked — bars and areas; a line draws
|
|
96
|
-
* its own values whatever it says (`stacks`).
|
|
97
|
-
*/
|
|
98
|
-
stack?: string;
|
|
99
|
-
/**
|
|
100
|
-
* How a line or an area joins its points; unwritten, straight from one
|
|
101
|
-
* to the next. `smooth` curves through them; `step` holds each value
|
|
102
|
-
* until the next point and moves there, which is how a balance or a
|
|
103
|
-
* price reads: it stays what it was until something changes it. A bar
|
|
104
|
-
* draws no line and reads neither.
|
|
105
|
-
*/
|
|
106
|
-
line?: 'smooth' | 'step';
|
|
107
|
-
}
|
|
108
|
-
export interface CartesianSpec {
|
|
109
|
-
/** Group alias. */
|
|
110
|
-
x: string;
|
|
111
|
-
/** Second group alias, pivoting one metric into a series per value. */
|
|
112
|
-
splitBy?: string;
|
|
113
|
-
series: CartesianSeries[];
|
|
114
|
-
orientation?: 'vertical' | 'horizontal';
|
|
115
|
-
yAxis?: {
|
|
116
|
-
left?: AxisSpec;
|
|
117
|
-
right?: AxisSpec;
|
|
118
|
-
};
|
|
119
|
-
referenceLines?: ReferenceLine[];
|
|
120
|
-
/**
|
|
121
|
-
* What a point the rows lack draws as — a bucket missing from a time axis,
|
|
122
|
-
* a combination missing from a split. Left out or `zero`, the kernel's
|
|
123
|
-
* rule: 0 where the group is known to have had no records and the metric
|
|
124
|
-
* adds up, nothing otherwise (`absenceReader`). `gap`: nothing anywhere, a
|
|
125
|
-
* line broken where the rows are. Drawing only; the query is the same.
|
|
126
|
-
*/
|
|
127
|
-
missing?: CartesianMissing;
|
|
128
|
-
/**
|
|
129
|
-
* Stacked bars or areas drawn as each category's shares of its stack, so
|
|
130
|
-
* every stack reaches 100%. Only a stack of metrics that add up has a
|
|
131
|
-
* whole to share; a line or a chart that does not stack ignores it.
|
|
132
|
-
*/
|
|
133
|
-
percentStack?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Target bands: a stretch of one value axis shaded behind the marks, from
|
|
136
|
-
* one number to another — 「目标区间」, where a value should land.
|
|
137
|
-
*/
|
|
138
|
-
referenceBands?: ReferenceBand[];
|
|
139
|
-
/**
|
|
140
|
-
* Marks each drawn series' highest and lowest measured value — never a 0
|
|
141
|
-
* the kernel filled in. A series drawn inside a stack is not marked: its
|
|
142
|
-
* mark stands at the stack's height, not at its own value.
|
|
143
|
-
*/
|
|
144
|
-
extremes?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Lines computed from one drawn metric over the time axis — a trend, a
|
|
147
|
-
* moving average, a running total — drawn dashed over the marks, never
|
|
148
|
-
* stacked and in no colour slot (D33 batch B). The kernel draws one only
|
|
149
|
-
* over rows that are whole (`derivedGap`, Q53).
|
|
150
|
-
*/
|
|
151
|
-
derived?: DerivedSeries[];
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* What a derived series computes: the least-squares line through the
|
|
155
|
-
* measured points (`trend`), the mean of each point and the ones before it
|
|
156
|
-
* (`moving-average`, over `window` points), the running total
|
|
157
|
-
* (`cumulative`, a metric that adds up only), and the running total as a
|
|
158
|
-
* share of the whole (`cumulative-share`, 累计占比). The two running kinds
|
|
159
|
-
* also run along a categorical axis the result is sorted by the metric on —
|
|
160
|
-
* the Pareto chart (D38). The metric one bucket earlier (`previous`, 上一期)
|
|
161
|
-
* and a year earlier (`previous-year`, 去年同期) are the source's to compute
|
|
162
|
-
* (D88): only a source whose descriptor lists `PREVIOUS` draws them.
|
|
163
|
-
*/
|
|
164
|
-
export type DerivedKind = 'trend' | 'moving-average' | 'cumulative' | 'cumulative-share' | 'previous' | 'previous-year';
|
|
165
|
-
/** Every derived kind, in the order the options page offers them. */
|
|
166
|
-
export declare const DERIVED_KINDS: readonly ["trend", "moving-average", "cumulative", "cumulative-share", "previous", "previous-year"];
|
|
167
|
-
/** The widest window a moving average takes: a year of days. */
|
|
168
|
-
export declare const MAX_MOVING_WINDOW = 366;
|
|
169
|
-
export interface DerivedSeries {
|
|
170
|
-
kind: DerivedKind;
|
|
171
|
-
/** The metric alias of the drawn series it is computed from. */
|
|
172
|
-
metric: string;
|
|
173
|
-
/** A moving average's points, the current one included; 2 or more. */
|
|
174
|
-
window?: number;
|
|
175
|
-
}
|
|
176
|
-
/** How a missing point reads: as 0, or as a gap in the line. */
|
|
177
|
-
export type CartesianMissing = 'zero' | 'gap';
|
|
178
|
-
/** The two readings of a missing point, the default first. */
|
|
179
|
-
export declare const CARTESIAN_MISSING: readonly ["zero", "gap"];
|
|
180
|
-
export interface AxisSpec {
|
|
181
|
-
label?: string;
|
|
182
|
-
min?: number;
|
|
183
|
-
max?: number;
|
|
184
|
-
format?: ValueFormat;
|
|
185
|
-
/**
|
|
186
|
-
* How the axis is stepped: evenly (`linear`, the default) or by powers of
|
|
187
|
-
* ten (`log`), for numbers that span several orders of magnitude. A log
|
|
188
|
-
* axis has no place for 0 or a negative number, so over values that hold
|
|
189
|
-
* one it is drawn linear and says why (D33 batch E).
|
|
190
|
-
*/
|
|
191
|
-
scale?: 'linear' | 'log';
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* A horizontal rule across the plot: at a constant `value`, or at a
|
|
195
|
-
* `statistic` of one drawn metric's measured values — its average or its
|
|
196
|
-
* median over the points drawn, a filled-in 0 left out (batch B). One of
|
|
197
|
-
* the two places it; a statistic names its `metric`.
|
|
198
|
-
*/
|
|
199
|
-
export interface ReferenceLine {
|
|
200
|
-
axis: 'left' | 'right';
|
|
201
|
-
value?: number;
|
|
202
|
-
statistic?: ReferenceStatistic;
|
|
203
|
-
/** The metric alias a statistic is taken of. */
|
|
204
|
-
metric?: string;
|
|
205
|
-
label?: string;
|
|
206
|
-
}
|
|
207
|
-
/** Where a statistic reference line stands: the mean, or the middle value. */
|
|
208
|
-
export type ReferenceStatistic = 'average' | 'median';
|
|
209
|
-
/** The statistics a reference line may stand at, in the order offered. */
|
|
210
|
-
export declare const REFERENCE_STATISTICS: readonly ["average", "median"];
|
|
211
|
-
/** A stretch of one value axis, `from` below `to`, shaded behind the marks. */
|
|
212
|
-
export interface ReferenceBand {
|
|
213
|
-
axis: 'left' | 'right';
|
|
214
|
-
from: number;
|
|
215
|
-
to: number;
|
|
216
|
-
label?: string;
|
|
217
|
-
}
|
|
218
89
|
export type ValueFormat = 'auto' | 'percent' | 'compact';
|
|
219
90
|
export interface PieSpec {
|
|
220
91
|
/** Group alias. */
|
|
@@ -1 +1 @@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AC;IACd,iEAAiE;IACjE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEN,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,CAAC;IACxD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,CAAC,EAAE,MAAM,CAAC;IACV;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,eAAe,CAAC;AAEzD,yFAAyF;AACzF,eAAO,MAAM,cAAc,wCAGkB,CAAC;AAE9C,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,4BAGiB,CAAC"}
|
package/dist/model/currency.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/model/currency.ts"],"names":[],"mappings":"AAaA,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/model/currency.ts"],"names":[],"mappings":"AAaA,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GACzB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,YAAY,CAEd;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,UAAU,EAAE,EAC3B,MAAM,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,EACpC,QAAQ,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,GACrC,eAAe,GAAG,SAAS,CAY7B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,EAAE,GACjD,eAAe,GAAG,SAAS,CAW7B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,UAAU,GAAG,SAAS,EAC3B,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACzC,eAAe,GAAG,SAAS,CAQ7B"}
|
|
@@ -197,6 +197,15 @@ export declare function isSystemInstanceId(id: string): boolean;
|
|
|
197
197
|
export interface RecordCapability {
|
|
198
198
|
/** Field holding each row's identity. */
|
|
199
199
|
rowKey: string;
|
|
200
|
+
/**
|
|
201
|
+
* The field a reader names a row by — an order number, an aggregate's id
|
|
202
|
+
* — where the key is an id nobody reads aloud. The row's controls are
|
|
203
|
+
* named after it (「选择 SO-1002」, the 「⋯」 menu, the row's own action
|
|
204
|
+
* button), and an action's sentences say it as `{record}`. Every page
|
|
205
|
+
* fetches it, as `rowFields`. Left out, or blank in a row, the key names
|
|
206
|
+
* the row.
|
|
207
|
+
*/
|
|
208
|
+
rowName?: string;
|
|
200
209
|
/** Decides whether the runtime calls `source.paged` or `source.cursor`. */
|
|
201
210
|
paging: RecordPagingMode;
|
|
202
211
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/model/definition.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAEtE,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC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nC,SAAS,EAAE,uBAAuB,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACtC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACtC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qEAAqE;IACrE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/model/definition.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG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.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { AggregationFunction, AggregationMetricType, SearchMode, StringComparison
|
|
1
|
+
import { AggregationFunction, AggregationMetricType, SearchMode, StringComparison } from '@ahoo-wang/wow-client/dsl';
|
|
2
2
|
import { FilterOperatorName } from './filter.js';
|
|
3
|
+
import { FieldNumeric, NumberFormat } from './fieldNumeric.js';
|
|
4
|
+
import { FieldTemporal, TimePrecision } from './fieldTemporal.js';
|
|
3
5
|
/**
|
|
4
6
|
* Identifies a `FieldKind`: the package registers the built-in ones and an
|
|
5
7
|
* application may register its own, so this stays an open string union.
|
|
@@ -143,61 +145,6 @@ export declare const DATE_SUMMARY_FUNCTIONS: readonly SummaryFunction[];
|
|
|
143
145
|
* is how a column gets its earliest and its latest.
|
|
144
146
|
*/
|
|
145
147
|
export declare function summaryFunctionsOf(field: FieldDefinition): readonly SummaryFunction[];
|
|
146
|
-
/**
|
|
147
|
-
* How a time field keeps its time, which is how a condition on it has to
|
|
148
|
-
* write one — Wow's own `QuerySemanticType` for time, named as Wow names it.
|
|
149
|
-
*
|
|
150
|
-
* - `epoch` is Wow's `TEMPORAL_EPOCH`: an integer count of `timeUnit` since
|
|
151
|
-
* the epoch, milliseconds when unsaid. Every time a Wow snapshot carries —
|
|
152
|
-
* `eventTime`, `firstEventTime`, an aggregate's `@QueryTemporal` longs — is
|
|
153
|
-
* one, and Wow's schema validation refuses anything but an integer there.
|
|
154
|
-
* - `date` is Wow's `TEMPORAL_DATE`: the store's own date type, which a query
|
|
155
|
-
* names in ISO 8601 text.
|
|
156
|
-
*
|
|
157
|
-
* Wow's third, `TEMPORAL_FORMATTED`, a string under a pattern, is not
|
|
158
|
-
* modelled: no definition has needed one, and a bound written under the
|
|
159
|
-
* wrong pattern would be compared as text and match the wrong rows quietly.
|
|
160
|
-
*/
|
|
161
|
-
export type FieldTemporal = EpochTemporal | DateTemporal;
|
|
162
|
-
export interface EpochTemporal {
|
|
163
|
-
type: 'epoch';
|
|
164
|
-
/** Wow's `timeUnit`; milliseconds when unsaid, as Wow's own default is. */
|
|
165
|
-
timeUnit?: EpochTimeUnit;
|
|
166
|
-
}
|
|
167
|
-
export interface DateTemporal {
|
|
168
|
-
type: 'date';
|
|
169
|
-
}
|
|
170
|
-
/** The units of `TimeUnit` an epoch time is kept in, as Wow spells them. */
|
|
171
|
-
export type EpochTimeUnit = `${TimeUnit.MILLISECONDS | TimeUnit.SECONDS}`;
|
|
172
|
-
export declare const EPOCH_TIME_UNITS: readonly EpochTimeUnit[];
|
|
173
|
-
export declare const TEMPORAL_TYPES: readonly FieldTemporal['type'][];
|
|
174
|
-
/** The kinds whose conditions write a time, and so may declare `temporal`. */
|
|
175
|
-
export declare const TEMPORAL_FIELD_KIND_IDS: readonly FieldKindId[];
|
|
176
|
-
/**
|
|
177
|
-
* How finely a table cell writes a time of day (`FieldDefinition.timePrecision`).
|
|
178
|
-
*
|
|
179
|
-
* - `minute`, the default: a column of times is read for when something
|
|
180
|
-
* happened, and the seconds made every such column some 180 pixels wide —
|
|
181
|
-
* the largest source of sideways scrolling in a record workbench (second
|
|
182
|
-
* review R2-23). The cell drops the year within the current one, too.
|
|
183
|
-
* - `second`: for a field whose seconds are the point, an event stream's
|
|
184
|
-
* times above all, where two events a few seconds apart are the story.
|
|
185
|
-
*
|
|
186
|
-
* Only the table's cell is short. Its title, the record's detail, a card and
|
|
187
|
-
* a file keep the whole time, seconds included.
|
|
188
|
-
*/
|
|
189
|
-
export type TimePrecision = 'minute' | 'second';
|
|
190
|
-
export declare const TIME_PRECISIONS: readonly TimePrecision[];
|
|
191
|
-
/**
|
|
192
|
-
* What a time field that declares nothing is: epoch milliseconds.
|
|
193
|
-
*
|
|
194
|
-
* The default is the engine's audience rather than the fixtures' habit. A
|
|
195
|
-
* Wow snapshot keeps every time as epoch milliseconds, and a definition
|
|
196
|
-
* written from a Wow query schema should come out right without the author
|
|
197
|
-
* having to remember one more member on each of them; a store that keeps a
|
|
198
|
-
* native date is the case that says so.
|
|
199
|
-
*/
|
|
200
|
-
export declare const DEFAULT_TEMPORAL: Required<EpochTemporal>;
|
|
201
148
|
/**
|
|
202
149
|
* The remote a field's values are read as names from: a `reference`
|
|
203
150
|
* field's `remote`, as a projection part; nothing for any other field.
|
|
@@ -212,88 +159,6 @@ export declare function labelRemoteOf(field: FieldDefinition): {
|
|
|
212
159
|
* says so when it does, and is never a search field.
|
|
213
160
|
*/
|
|
214
161
|
export declare function readsAsNames(field: Pick<FieldDefinition, 'kind' | 'remote'>): boolean;
|
|
215
|
-
/** How this field keeps its time: its declaration, or the default. */
|
|
216
|
-
export declare function temporalOf(field: FieldDefinition): FieldTemporal;
|
|
217
|
-
/**
|
|
218
|
-
* The unit this field's epoch numbers count in, where it is not the
|
|
219
|
-
* default milliseconds — `undefined` for milliseconds and for a field that
|
|
220
|
-
* keeps no epoch at all. What reads a value as a time (`readInstant`) takes
|
|
221
|
-
* it, so a cell, a footer and an earliest agree with the condition that
|
|
222
|
-
* wrote the time in that unit.
|
|
223
|
-
*/
|
|
224
|
-
export declare function epochUnitOf(field: Pick<FieldDefinition, 'kind' | 'cell' | 'temporal'>): EpochTimeUnit | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* What a number field's value is, beyond a number — Wow's numeric
|
|
227
|
-
* `QuerySemanticType` (#3552), named as the engine names things: how many
|
|
228
|
-
* digits it is kept to, and for an amount of money, whose money it is.
|
|
229
|
-
*
|
|
230
|
-
* - `decimal` is Wow's `DECIMAL`: a fixed-point number with `scale` digits
|
|
231
|
-
* after the point, written with exactly that many.
|
|
232
|
-
* - `money` is Wow's `MONEY`: an amount in one currency, `scale` digits
|
|
233
|
-
* after the point, and the currency either fixed for the whole field (an
|
|
234
|
-
* ISO 4217 `currency`) or held per record by a sibling string field
|
|
235
|
-
* (`currencyField`, a property of the same object or element) — so an
|
|
236
|
-
* amount reads in its own currency, and amounts in different currencies
|
|
237
|
-
* are never added up as if they were one.
|
|
238
|
-
*
|
|
239
|
-
* Narrowing writes it from the source's descriptor where the definition
|
|
240
|
-
* says nothing; a definition may declare it itself. It decides how the
|
|
241
|
-
* value reads only where the field declares no `numberFormat` — the
|
|
242
|
-
* author's own format wins (`numberFormatOf`).
|
|
243
|
-
*/
|
|
244
|
-
export type FieldNumeric = DecimalNumeric | FixedMoneyNumeric | RowMoneyNumeric;
|
|
245
|
-
export interface DecimalNumeric {
|
|
246
|
-
type: 'decimal';
|
|
247
|
-
/** Digits after the decimal point, 0 or more. */
|
|
248
|
-
scale: number;
|
|
249
|
-
}
|
|
250
|
-
export interface FixedMoneyNumeric {
|
|
251
|
-
type: 'money';
|
|
252
|
-
/** Digits after the decimal point, 0 or more. */
|
|
253
|
-
scale: number;
|
|
254
|
-
/** The ISO 4217 code every value of the field is in, such as `CNY`. */
|
|
255
|
-
currency: string;
|
|
256
|
-
currencyField?: undefined;
|
|
257
|
-
}
|
|
258
|
-
export interface RowMoneyNumeric {
|
|
259
|
-
type: 'money';
|
|
260
|
-
/** Digits after the decimal point, 0 or more. */
|
|
261
|
-
scale: number;
|
|
262
|
-
currency?: undefined;
|
|
263
|
-
/**
|
|
264
|
-
* The sibling property holding each value's ISO 4217 code: its name
|
|
265
|
-
* beside the amount, not a path from the root — `currency` beside
|
|
266
|
-
* `price.amount` is `price.currency` (`currencyPathOf`).
|
|
267
|
-
*/
|
|
268
|
-
currencyField: string;
|
|
269
|
-
}
|
|
270
|
-
export declare const NUMERIC_TYPES: readonly FieldNumeric['type'][];
|
|
271
|
-
/** The most fraction digits Intl writes, which `scale` is held under. */
|
|
272
|
-
export declare const MAX_NUMERIC_SCALE = 20;
|
|
273
|
-
/** An ISO 4217 currency code: three letters. */
|
|
274
|
-
export declare const CURRENCY_CODE_PATTERN: RegExp;
|
|
275
|
-
/**
|
|
276
|
-
* How a number of this field is written: the author's `numberFormat` when
|
|
277
|
-
* the field declares one, otherwise what its `numeric` says — `scale`
|
|
278
|
-
* fraction digits, and for money in one fixed currency, that currency.
|
|
279
|
-
* Money whose currency is held per record gets the digits here and its
|
|
280
|
-
* currency where the record is read (`currencyPathOf`), since no one
|
|
281
|
-
* format is true of every value.
|
|
282
|
-
*
|
|
283
|
-
* It is the one place the two meet, so every reader — a cell, a column, a
|
|
284
|
-
* metric, an axis — prints what the others print.
|
|
285
|
-
*/
|
|
286
|
-
export declare function numberFormatOf(field: Pick<FieldDefinition, 'numberFormat' | 'numeric'> | undefined): NumberFormat | undefined;
|
|
287
|
-
/**
|
|
288
|
-
* Where the currency of this field's values is held, for money whose
|
|
289
|
-
* currency is per record: the sibling `currencyField` beside the field's
|
|
290
|
-
* own name — `price.currency` for `price.amount`, `currency` for `amount`.
|
|
291
|
-
* `undefined` for every other field, the author's own `numberFormat`
|
|
292
|
-
* included: a field formatted by its author reads as the author said.
|
|
293
|
-
* `path` is where the field is named from, when that is not its own name —
|
|
294
|
-
* an element's field as an analysis spells it from the root.
|
|
295
|
-
*/
|
|
296
|
-
export declare function currencyPathOf(field: Pick<FieldDefinition, 'name' | 'numberFormat' | 'numeric'>, path?: string): string | undefined;
|
|
297
162
|
/**
|
|
298
163
|
* The aggregate functions a field really offers an analysis: what its
|
|
299
164
|
* capability declares, less what its own values cannot answer — the
|
|
@@ -303,10 +168,6 @@ export declare function currencyPathOf(field: Pick<FieldDefinition, 'name' | 'nu
|
|
|
303
168
|
* declares; admission reports the field itself.
|
|
304
169
|
*/
|
|
305
170
|
export declare function aggregationFunctionsOf<F extends string>(field: Pick<FieldDefinition, 'kind' | 'cell'> | undefined, declared: readonly F[]): F[];
|
|
306
|
-
/** Formatting shared by cells, summaries and chart axes. */
|
|
307
|
-
export type NumberFormat = Intl.NumberFormatOptions & {
|
|
308
|
-
locale?: string;
|
|
309
|
-
};
|
|
310
171
|
/**
|
|
311
172
|
* One queryable field of a definition. Declared in code, so it may use the
|
|
312
173
|
* Wow operator enum directly; stored configs use the literal form instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/model/field.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/model/field.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQvE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,cAAc,GACd,QAAQ,GACR,mBAAmB,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,aAAa,GACb,UAAU,GACV,SAAS,GACT,SAAS;AACX,+EAA+E;GAC7E,UAAU,CAAC;AAEf;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,WAAW,EAQ1D,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,EACjB,UAAU,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GACnC,OAAO,CAGT;AAiBD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,EACtB,UAAU,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACtC,OAAO,CAQT;AA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,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B;;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,8DAA8D;AAC9D,MAAM,MAAM,cAAc,GAAG,GAAG,UAAU,EAAE,CAAC;AAE7C,eAAO,MAAM,YAAY,EAAE,SAAS,cAAc,EAGjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAkC,CAAC;AAErE,oEAAoE;AACpE,MAAM,MAAM,oBAAoB,GAAG,GAAG,gBAAgB,EAAE,CAAC;AAEzD,eAAO,MAAM,yBAAyB,EAAE,oBACJ,CAAC;AAErC,eAAO,MAAM,kBAAkB,EAAE,SAAS,oBAAoB,EAG7D,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { FieldDefinition } from './field.js';
|
|
2
|
+
/**
|
|
3
|
+
* What a number field's value is, beyond a number — Wow's numeric
|
|
4
|
+
* `QuerySemanticType` (#3552), named as the engine names things: how many
|
|
5
|
+
* digits it is kept to, and for an amount of money, whose money it is.
|
|
6
|
+
*
|
|
7
|
+
* - `decimal` is Wow's `DECIMAL`: a fixed-point number with `scale` digits
|
|
8
|
+
* after the point, written with exactly that many.
|
|
9
|
+
* - `money` is Wow's `MONEY`: an amount in one currency, `scale` digits
|
|
10
|
+
* after the point, and the currency either fixed for the whole field (an
|
|
11
|
+
* ISO 4217 `currency`) or held per record by a sibling string field
|
|
12
|
+
* (`currencyField`, a property of the same object or element) — so an
|
|
13
|
+
* amount reads in its own currency, and amounts in different currencies
|
|
14
|
+
* are never added up as if they were one.
|
|
15
|
+
*
|
|
16
|
+
* Narrowing writes it from the source's descriptor where the definition
|
|
17
|
+
* says nothing; a definition may declare it itself. It decides how the
|
|
18
|
+
* value reads only where the field declares no `numberFormat` — the
|
|
19
|
+
* author's own format wins (`numberFormatOf`).
|
|
20
|
+
*/
|
|
21
|
+
export type FieldNumeric = DecimalNumeric | FixedMoneyNumeric | RowMoneyNumeric;
|
|
22
|
+
export interface DecimalNumeric {
|
|
23
|
+
type: 'decimal';
|
|
24
|
+
/** Digits after the decimal point, 0 or more. */
|
|
25
|
+
scale: number;
|
|
26
|
+
}
|
|
27
|
+
export interface FixedMoneyNumeric {
|
|
28
|
+
type: 'money';
|
|
29
|
+
/** Digits after the decimal point, 0 or more. */
|
|
30
|
+
scale: number;
|
|
31
|
+
/** The ISO 4217 code every value of the field is in, such as `CNY`. */
|
|
32
|
+
currency: string;
|
|
33
|
+
currencyField?: undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface RowMoneyNumeric {
|
|
36
|
+
type: 'money';
|
|
37
|
+
/** Digits after the decimal point, 0 or more. */
|
|
38
|
+
scale: number;
|
|
39
|
+
currency?: undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The sibling property holding each value's ISO 4217 code: its name
|
|
42
|
+
* beside the amount, not a path from the root — `currency` beside
|
|
43
|
+
* `price.amount` is `price.currency` (`currencyPathOf`).
|
|
44
|
+
*/
|
|
45
|
+
currencyField: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const NUMERIC_TYPES: readonly FieldNumeric['type'][];
|
|
48
|
+
/** The most fraction digits Intl writes, which `scale` is held under. */
|
|
49
|
+
export declare const MAX_NUMERIC_SCALE = 20;
|
|
50
|
+
/** An ISO 4217 currency code: three letters. */
|
|
51
|
+
export declare const CURRENCY_CODE_PATTERN: RegExp;
|
|
52
|
+
/**
|
|
53
|
+
* How a number of this field is written: the author's `numberFormat` when
|
|
54
|
+
* the field declares one, otherwise what its `numeric` says — `scale`
|
|
55
|
+
* fraction digits, and for money in one fixed currency, that currency.
|
|
56
|
+
* Money whose currency is held per record gets the digits here and its
|
|
57
|
+
* currency where the record is read (`currencyPathOf`), since no one
|
|
58
|
+
* format is true of every value.
|
|
59
|
+
*
|
|
60
|
+
* It is the one place the two meet, so every reader — a cell, a column, a
|
|
61
|
+
* metric, an axis — prints what the others print.
|
|
62
|
+
*/
|
|
63
|
+
export declare function numberFormatOf(field: Pick<FieldDefinition, 'numberFormat' | 'numeric'> | undefined): NumberFormat | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Where the currency of this field's values is held, for money whose
|
|
66
|
+
* currency is per record: the sibling `currencyField` beside the field's
|
|
67
|
+
* own name — `price.currency` for `price.amount`, `currency` for `amount`.
|
|
68
|
+
* `undefined` for every other field, the author's own `numberFormat`
|
|
69
|
+
* included: a field formatted by its author reads as the author said.
|
|
70
|
+
* `path` is where the field is named from, when that is not its own name —
|
|
71
|
+
* an element's field as an analysis spells it from the root.
|
|
72
|
+
*/
|
|
73
|
+
export declare function currencyPathOf(field: Pick<FieldDefinition, 'name' | 'numberFormat' | 'numeric'>, path?: string): string | undefined;
|
|
74
|
+
/** Formatting shared by cells, summaries and chart axes. */
|
|
75
|
+
export type NumberFormat = Intl.NumberFormatOptions & {
|
|
76
|
+
locale?: string;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=fieldNumeric.d.ts.map
|