@ahoo-wang/wow-view-engine 10.0.0-alpha.6 → 10.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -16
- package/README.zh-CN.md +55 -16
- package/dist/{actions-CgaL6eEe.js → actions-ClYpI7gy.js} +4004 -3956
- package/dist/actions-ClYpI7gy.js.map +1 -0
- package/dist/analysis/additive.d.ts +2 -2
- package/dist/analysis/additive.d.ts.map +1 -1
- package/dist/analysis/boxplot.d.ts.map +1 -1
- package/dist/analysis/bucketChange.d.ts +1 -1
- package/dist/analysis/buckets.d.ts +5 -5
- package/dist/analysis/buckets.d.ts.map +1 -1
- package/dist/analysis/budget.d.ts.map +1 -1
- package/dist/analysis/candidates.d.ts +2 -1
- package/dist/analysis/candidates.d.ts.map +1 -1
- package/dist/analysis/candlestick.d.ts.map +1 -1
- package/dist/analysis/capability.d.ts.map +1 -1
- package/dist/analysis/cartesian.d.ts.map +1 -1
- package/dist/analysis/chartFamilies.d.ts +1 -1
- package/dist/analysis/chartOptions.d.ts +13 -2
- package/dist/analysis/chartOptions.d.ts.map +1 -1
- package/dist/analysis/chartSlots.d.ts.map +1 -1
- package/dist/analysis/compile.d.ts +1 -1
- package/dist/analysis/compile.d.ts.map +1 -1
- package/dist/analysis/currency.d.ts.map +1 -1
- package/dist/analysis/dangling.d.ts +2 -1
- package/dist/analysis/dangling.d.ts.map +1 -1
- package/dist/analysis/defaults.d.ts +10 -9
- package/dist/analysis/defaults.d.ts.map +1 -1
- package/dist/analysis/derived.d.ts +2 -2
- package/dist/analysis/derived.d.ts.map +1 -1
- package/dist/analysis/drill.d.ts +12 -6
- package/dist/analysis/drill.d.ts.map +1 -1
- package/dist/analysis/drillFilter.d.ts.map +1 -1
- package/dist/analysis/expand.d.ts +1 -1
- package/dist/analysis/expand.d.ts.map +1 -1
- package/dist/analysis/expressions.d.ts.map +1 -1
- package/dist/analysis/familyRules.d.ts +2 -2
- package/dist/analysis/familyRules.d.ts.map +1 -1
- package/dist/analysis/familySlots.d.ts +4 -4
- package/dist/analysis/fitCharts.d.ts +2 -2
- package/dist/analysis/fitCharts.d.ts.map +1 -1
- package/dist/analysis/formula.d.ts +10 -9
- package/dist/analysis/formula.d.ts.map +1 -1
- package/dist/analysis/granularity.d.ts +2 -2
- package/dist/analysis/granularity.d.ts.map +1 -1
- package/dist/analysis/having.d.ts +2 -1
- package/dist/analysis/having.d.ts.map +1 -1
- package/dist/analysis/logScale.d.ts +1 -1
- package/dist/analysis/metricCard.d.ts +2 -2
- package/dist/analysis/metricCard.d.ts.map +1 -1
- package/dist/analysis/metricCondition.d.ts +1 -1
- package/dist/analysis/metricCondition.d.ts.map +1 -1
- package/dist/analysis/metricFormat.d.ts +3 -2
- package/dist/analysis/metricFormat.d.ts.map +1 -1
- package/dist/analysis/metricOrder.d.ts +2 -2
- package/dist/analysis/metricOrder.d.ts.map +1 -1
- package/dist/analysis/metricWindow.d.ts.map +1 -1
- package/dist/analysis/project.d.ts +8 -3
- package/dist/analysis/project.d.ts.map +1 -1
- package/dist/analysis/serverLines.d.ts +5 -5
- package/dist/analysis/serverLines.d.ts.map +1 -1
- package/dist/analysis/splitOther.d.ts +1 -1
- package/dist/analysis/timeAxis.d.ts +3 -2
- package/dist/analysis/timeAxis.d.ts.map +1 -1
- package/dist/analysis/top.d.ts +1 -1
- package/dist/analysis/top.d.ts.map +1 -1
- package/dist/analysis/validateFamilies.d.ts.map +1 -1
- package/dist/analysis/validateGroups.d.ts.map +1 -1
- package/dist/analysis/validateLevels.d.ts.map +1 -1
- package/dist/analysis/validateMetrics.d.ts.map +1 -1
- package/dist/analysis/validateOffers.d.ts.map +1 -1
- package/dist/analysis/validateReferences.d.ts +2 -2
- package/dist/analysis/validateTop.d.ts +1 -1
- package/dist/analysis/validateTop.d.ts.map +1 -1
- package/dist/capabilities/aliases.d.ts.map +1 -1
- package/dist/capabilities/analysis.d.ts.map +1 -1
- package/dist/capabilities/cache.d.ts +3 -20
- package/dist/capabilities/cache.d.ts.map +1 -1
- package/dist/capabilities/fields.d.ts +2 -2
- package/dist/capabilities/fields.d.ts.map +1 -1
- package/dist/capabilities/match.d.ts +15 -5
- package/dist/capabilities/match.d.ts.map +1 -1
- package/dist/capabilities/narrow.d.ts.map +1 -1
- package/dist/capabilities/open.d.ts.map +1 -1
- package/dist/capabilities/record.d.ts.map +1 -1
- package/dist/{cartesianBrush-HLU12ig5.js → cartesianBrush-bgRuE6Ks.js} +3 -5
- package/dist/cartesianBrush-bgRuE6Ks.js.map +1 -0
- package/dist/dashboard/click.d.ts +9 -9
- package/dist/dashboard/click.d.ts.map +1 -1
- package/dist/dashboard/clickDraft.d.ts +1 -1
- package/dist/dashboard/edit.d.ts +6 -6
- package/dist/dashboard/filterEdit.d.ts +5 -6
- package/dist/dashboard/filterEdit.d.ts.map +1 -1
- package/dist/dashboard/filters.d.ts +9 -10
- package/dist/dashboard/filters.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +0 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/layout.d.ts +2 -2
- package/dist/dashboard/merge.d.ts +2 -2
- package/dist/dashboard/panelLook.d.ts +1 -1
- package/dist/dashboard/panels.d.ts +1 -1
- package/dist/dashboard/timeBindings.d.ts +2 -12
- package/dist/dashboard/timeBindings.d.ts.map +1 -1
- package/dist/dashboard/validate.d.ts.map +1 -1
- package/dist/dashboard/validateFilters.d.ts +2 -2
- package/dist/dashboard/wiring.d.ts +5 -5
- package/dist/{echarts-HUGzxow7.js → echarts-rjTKpBsf.js} +3 -4
- package/dist/{echarts-HUGzxow7.js.map → echarts-rjTKpBsf.js.map} +1 -1
- package/dist/{echartsGeo-BWbXo9ef.js → echartsGeo-qZv2ZF9e.js} +2 -3
- package/dist/{echartsGeo-BWbXo9ef.js.map → echartsGeo-qZv2ZF9e.js.map} +1 -1
- package/dist/{echartsHierarchy-Cm-9-LN9.js → echartsHierarchy-DHNP9W4v.js} +2 -3
- package/dist/{echartsHierarchy-Cm-9-LN9.js.map → echartsHierarchy-DHNP9W4v.js.map} +1 -1
- package/dist/{echartsStatistics-Lq-BjHez.js → echartsStatistics-DCDWqvde.js} +2 -3
- package/dist/{echartsStatistics-Lq-BjHez.js.map → echartsStatistics-DCDWqvde.js.map} +1 -1
- package/dist/{echartsTime-gMH0oF0x.js → echartsTime-DIRSRMnr.js} +2 -3
- package/dist/{echartsTime-gMH0oF0x.js.map → echartsTime-DIRSRMnr.js.map} +1 -1
- package/dist/export-D1udIJPm.js +29 -0
- package/dist/export-D1udIJPm.js.map +1 -0
- package/dist/filter/describe.d.ts +6 -6
- package/dist/filter/describe.d.ts.map +1 -1
- package/dist/filter/kinds/array.d.ts.map +1 -1
- package/dist/filter/kinds/boolean.d.ts.map +1 -1
- package/dist/filter/kinds/dateTime.d.ts.map +1 -1
- package/dist/filter/kinds/deletion.d.ts +2 -2
- package/dist/filter/kinds/deletion.d.ts.map +1 -1
- package/dist/filter/kinds/duration.d.ts.map +1 -1
- package/dist/filter/kinds/elementMatch.d.ts.map +1 -1
- package/dist/filter/kinds/entries.d.ts.map +1 -1
- package/dist/filter/kinds/enum.d.ts.map +1 -1
- package/dist/filter/kinds/metadata.d.ts.map +1 -1
- package/dist/filter/kinds/number.d.ts.map +1 -1
- package/dist/filter/kinds/presence.d.ts +1 -0
- package/dist/filter/kinds/presence.d.ts.map +1 -1
- package/dist/filter/kinds/reference.d.ts +5 -0
- package/dist/filter/kinds/reference.d.ts.map +1 -1
- package/dist/filter/kinds/string.d.ts.map +1 -1
- package/dist/filter/operatorWords.d.ts +21 -0
- package/dist/filter/operatorWords.d.ts.map +1 -0
- package/dist/filter/search.d.ts.map +1 -1
- package/dist/filter/time.d.ts +2 -2
- package/dist/filter/time.d.ts.map +1 -1
- package/dist/filter/tree.d.ts.map +1 -1
- package/dist/filter/validate.d.ts.map +1 -1
- package/dist/filter/values.d.ts +6 -5
- package/dist/filter/values.d.ts.map +1 -1
- package/dist/index.d.ts +53 -89
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +214 -213
- package/dist/index.js.map +1 -1
- package/dist/model/analysis.d.ts +61 -59
- package/dist/model/analysis.d.ts.map +1 -1
- package/dist/model/chart.d.ts +16 -6
- package/dist/model/chart.d.ts.map +1 -1
- package/dist/model/config.d.ts +2 -2
- package/dist/model/dashboard.d.ts +28 -48
- package/dist/model/dashboard.d.ts.map +1 -1
- package/dist/model/definition.d.ts +17 -17
- package/dist/model/definition.d.ts.map +1 -1
- package/dist/model/field.d.ts +35 -5
- package/dist/model/field.d.ts.map +1 -1
- package/dist/model/filter.d.ts +5 -5
- package/dist/model/filter.d.ts.map +1 -1
- package/dist/model/index.d.ts +2 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/limits.d.ts +29 -0
- package/dist/model/limits.d.ts.map +1 -1
- package/dist/model/record.d.ts +7 -6
- package/dist/model/record.d.ts.map +1 -1
- package/dist/model/text.d.ts +1 -1
- package/dist/model/values.d.ts +8 -0
- package/dist/model/values.d.ts.map +1 -0
- package/dist/model/wire.d.ts +32 -0
- package/dist/model/wire.d.ts.map +1 -0
- package/dist/react/actionRunner.d.ts +16 -1
- package/dist/react/actionRunner.d.ts.map +1 -1
- package/dist/react/analysisEditing.d.ts +79 -46
- package/dist/react/analysisEditing.d.ts.map +1 -1
- package/dist/react/analysisFields.d.ts +5 -5
- package/dist/react/analysisFields.d.ts.map +1 -1
- package/dist/react/engineContext.d.ts +17 -0
- package/dist/react/engineContext.d.ts.map +1 -0
- package/dist/react/index.d.ts +17 -15
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/issues.d.ts +0 -1
- package/dist/react/issues.d.ts.map +1 -1
- package/dist/react/manager/wording.d.ts +1 -1
- package/dist/react/manager/wording.d.ts.map +1 -1
- package/dist/react/recordColumns.d.ts +1 -1
- package/dist/react/recordColumns.d.ts.map +1 -1
- package/dist/react/recordDraft.d.ts.map +1 -1
- package/dist/react/recordEdits.d.ts.map +1 -1
- package/dist/react/referenceNames.d.ts +20 -0
- package/dist/react/referenceNames.d.ts.map +1 -0
- package/dist/react/useAnalysisEditor.d.ts +10 -9
- package/dist/react/useAnalysisEditor.d.ts.map +1 -1
- package/dist/react/useAnalysisResult.d.ts +17 -3
- package/dist/react/useAnalysisResult.d.ts.map +1 -1
- package/dist/react/useAutoRefresh.d.ts +8 -6
- package/dist/react/useAutoRefresh.d.ts.map +1 -1
- package/dist/react/useCreateViewEngine.d.ts +11 -0
- package/dist/react/useCreateViewEngine.d.ts.map +1 -0
- package/dist/react/useDashboard.d.ts +12 -5
- package/dist/react/useDashboard.d.ts.map +1 -1
- package/dist/react/useDatasets.d.ts +33 -21
- package/dist/react/useDatasets.d.ts.map +1 -1
- package/dist/react/useFilterEditor.d.ts.map +1 -1
- package/dist/react/{useViewEngine.d.ts → useOpenView.d.ts} +22 -36
- package/dist/react/useOpenView.d.ts.map +1 -0
- package/dist/react/usePanelFollowUps.d.ts +11 -2
- package/dist/react/usePanelFollowUps.d.ts.map +1 -1
- package/dist/react/useRecordActions.d.ts +16 -3
- package/dist/react/useRecordActions.d.ts.map +1 -1
- package/dist/react/useRecordDetail.d.ts +9 -6
- package/dist/react/useRecordDetail.d.ts.map +1 -1
- package/dist/react/useRecordExport.d.ts +5 -1
- package/dist/react/useRecordExport.d.ts.map +1 -1
- package/dist/react/useRecordKanban.d.ts +1 -1
- package/dist/react/useRecordTable.d.ts +2 -4
- package/dist/react/useRecordTable.d.ts.map +1 -1
- package/dist/react/useReferenceLabels.d.ts +9 -0
- package/dist/react/useReferenceLabels.d.ts.map +1 -0
- package/dist/react/useReshape.d.ts +2 -2
- package/dist/react/useSaveCommands.d.ts +9 -7
- package/dist/react/useSaveCommands.d.ts.map +1 -1
- package/dist/react/useValueCandidates.d.ts +17 -6
- package/dist/react/useValueCandidates.d.ts.map +1 -1
- package/dist/react/useViewList.d.ts +23 -11
- package/dist/react/useViewList.d.ts.map +1 -1
- package/dist/react/useViewManager.d.ts +6 -1
- package/dist/react/useViewManager.d.ts.map +1 -1
- package/dist/react/useViewRuntime.d.ts +23 -0
- package/dist/react/useViewRuntime.d.ts.map +1 -0
- package/dist/react/useWorkbench.d.ts +1 -1
- package/dist/react/useWorkbench.d.ts.map +1 -1
- package/dist/react/workbench/handOver.d.ts +10 -3
- package/dist/react/workbench/handOver.d.ts.map +1 -1
- package/dist/react/workbench/releaseDeleted.d.ts +13 -6
- package/dist/react/workbench/releaseDeleted.d.ts.map +1 -1
- package/dist/react-Cqk337ck.js +4202 -0
- package/dist/react-Cqk337ck.js.map +1 -0
- package/dist/react-router/index.d.ts +1 -0
- package/dist/react-router/index.d.ts.map +1 -1
- package/dist/react-router.js +1 -2
- package/dist/react-router.js.map +1 -1
- package/dist/react.js +1 -3
- package/dist/record/compile.d.ts.map +1 -1
- package/dist/record/kanban.d.ts +2 -2
- package/dist/record/kanban.d.ts.map +1 -1
- package/dist/record/paging.d.ts +11 -2
- package/dist/record/paging.d.ts.map +1 -1
- package/dist/record/project.d.ts +17 -1
- package/dist/record/project.d.ts.map +1 -1
- package/dist/record/summaryCurrency.d.ts.map +1 -1
- package/dist/record/validate.d.ts.map +1 -1
- package/dist/{routes-DvPNPlQP.js → routes-CMXKbAo2.js} +2 -3
- package/dist/{routes-DvPNPlQP.js.map → routes-CMXKbAo2.js.map} +1 -1
- package/dist/runtime/actions.d.ts +42 -7
- package/dist/runtime/actions.d.ts.map +1 -1
- package/dist/runtime/autoApply.d.ts +1 -1
- package/dist/runtime/capabilities.d.ts +2 -2
- package/dist/runtime/capabilities.d.ts.map +1 -1
- package/dist/runtime/dashboard/anchor.d.ts +2 -2
- package/dist/runtime/dashboard/anchor.d.ts.map +1 -1
- package/dist/runtime/dashboard/canonical.d.ts +2 -2
- package/dist/runtime/dashboard/commands.d.ts +2 -2
- package/dist/runtime/dashboard/commands.d.ts.map +1 -1
- package/dist/runtime/dashboard/contract.d.ts +6 -6
- package/dist/runtime/dashboard/contract.d.ts.map +1 -1
- package/dist/runtime/dashboard/editing.d.ts +2 -2
- package/dist/runtime/dashboard/filterCandidates.d.ts +1 -1
- package/dist/runtime/dashboard/filterValues.d.ts +16 -4
- package/dist/runtime/dashboard/filterValues.d.ts.map +1 -1
- package/dist/runtime/dashboard/grouping.d.ts +4 -4
- package/dist/runtime/dashboard/grouping.d.ts.map +1 -1
- package/dist/runtime/dashboard/panelRun.d.ts +2 -2
- package/dist/runtime/dashboard/panels.d.ts +1 -1
- package/dist/runtime/dashboard/press.d.ts +1 -1
- package/dist/runtime/dashboard/press.d.ts.map +1 -1
- package/dist/runtime/dashboard/references.d.ts +1 -1
- package/dist/runtime/dashboard/references.d.ts.map +1 -1
- package/dist/runtime/dashboardRuntime.d.ts +5 -2
- package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
- package/dist/runtime/datasetResources.d.ts +57 -70
- package/dist/runtime/datasetResources.d.ts.map +1 -1
- package/dist/runtime/define/defineDataset.d.ts +1 -1
- package/dist/runtime/define/defineView.d.ts +1 -1
- package/dist/runtime/define/defineView.d.ts.map +1 -1
- package/dist/runtime/define/fields.d.ts +2 -2
- package/dist/runtime/define/fields.d.ts.map +1 -1
- package/dist/runtime/define/spec.d.ts +5 -1
- package/dist/runtime/define/spec.d.ts.map +1 -1
- package/dist/runtime/deprecated.d.ts.map +1 -1
- package/dist/runtime/environment.d.ts +95 -47
- package/dist/runtime/environment.d.ts.map +1 -1
- package/dist/runtime/execute.d.ts +2 -2
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/exportRows.d.ts +10 -0
- package/dist/runtime/exportRows.d.ts.map +1 -1
- package/dist/runtime/failure/failures.d.ts +23 -11
- package/dist/runtime/failure/failures.d.ts.map +1 -1
- package/dist/runtime/failure/issueReport.d.ts.map +1 -1
- package/dist/runtime/failure/queryFailure.d.ts +1 -1
- package/dist/runtime/failure/queryFailure.d.ts.map +1 -1
- package/dist/runtime/failure/unavailable.d.ts +1 -1
- package/dist/runtime/fetchRecord.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +5 -3
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/instanceWrites.d.ts +15 -9
- package/dist/runtime/instanceWrites.d.ts.map +1 -1
- package/dist/runtime/kanban.d.ts +1 -1
- package/dist/runtime/labelIds.d.ts +56 -0
- package/dist/runtime/labelIds.d.ts.map +1 -0
- package/dist/runtime/navigation.d.ts +6 -6
- package/dist/runtime/panelViews.d.ts +3 -5
- package/dist/runtime/panelViews.d.ts.map +1 -1
- package/dist/runtime/pending.d.ts +2 -2
- package/dist/runtime/permissions.d.ts +2 -2
- package/dist/runtime/permissions.d.ts.map +1 -1
- package/dist/runtime/preferences.d.ts +2 -2
- package/dist/runtime/preferences.d.ts.map +1 -1
- package/dist/runtime/queryWeight.d.ts.map +1 -1
- package/dist/runtime/recordRuntime.d.ts +10 -1
- package/dist/runtime/recordRuntime.d.ts.map +1 -1
- package/dist/runtime/referenceLabels.d.ts +170 -0
- package/dist/runtime/referenceLabels.d.ts.map +1 -0
- package/dist/runtime/resources.d.ts +35 -94
- package/dist/runtime/resources.d.ts.map +1 -1
- package/dist/runtime/restyle.d.ts +1 -1
- package/dist/runtime/runtimeFactory.d.ts +5 -4
- package/dist/runtime/runtimeFactory.d.ts.map +1 -1
- package/dist/runtime/source.d.ts +55 -48
- package/dist/runtime/source.d.ts.map +1 -1
- package/dist/runtime/summaries.d.ts +9 -1
- package/dist/runtime/summaries.d.ts.map +1 -1
- package/dist/runtime/tabMemory.d.ts +1 -1
- package/dist/runtime/validateFields.d.ts.map +1 -1
- package/dist/runtime/valueCandidates.d.ts.map +1 -1
- package/dist/runtime/viewEngine.d.ts +103 -105
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/runtime/viewEngineOptions.d.ts +79 -0
- package/dist/runtime/viewEngineOptions.d.ts.map +1 -0
- package/dist/runtime/viewRuntime.d.ts +6 -9
- package/dist/runtime/viewRuntime.d.ts.map +1 -1
- package/dist/runtime/viewRuntimeTypes.d.ts +39 -8
- package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
- package/dist/store/MemoryViewStore.d.ts +24 -16
- package/dist/store/MemoryViewStore.d.ts.map +1 -1
- package/dist/store/ViewStore.d.ts +45 -17
- package/dist/store/ViewStore.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/actions.d.ts +6 -4
- package/dist/testing/actions.d.ts.map +1 -1
- package/dist/testing/aggregate.d.ts +4 -2
- package/dist/testing/aggregate.d.ts.map +1 -1
- package/dist/testing/filter.d.ts +3 -3
- package/dist/testing/filter.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/source.d.ts +4 -4
- package/dist/testing/source.d.ts.map +1 -1
- package/dist/testing.js +180 -177
- package/dist/testing.js.map +1 -1
- package/dist/theme-check.mjs +102 -127
- package/dist/ui/DashboardWorkbench.d.ts +2 -2
- package/dist/ui/DashboardWorkbench.d.ts.map +1 -1
- package/dist/ui/DataWorkbench.d.ts +2 -2
- package/dist/ui/DataWorkbench.d.ts.map +1 -1
- package/dist/ui/DatasetWorkbench.d.ts +11 -21
- package/dist/ui/DatasetWorkbench.d.ts.map +1 -1
- package/dist/ui/EmbeddedDashboard.d.ts +1 -1
- package/dist/ui/EmbeddedDashboard.d.ts.map +1 -1
- package/dist/ui/EmbeddedView.d.ts +1 -1
- package/dist/ui/ViewHost.d.ts +6 -6
- package/dist/ui/ViewHost.d.ts.map +1 -1
- package/dist/ui/actions/ActionButtons.d.ts.map +1 -1
- package/dist/ui/actions/ActionDialog.d.ts.map +1 -1
- package/dist/ui/actions/ActionSurface.d.ts +6 -0
- package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
- package/dist/ui/actions/BulkStatus.d.ts.map +1 -1
- package/dist/ui/actions/kanbanMove.d.ts +1 -1
- package/dist/ui/analysis/AnalysisTable.d.ts.map +1 -1
- package/dist/ui/analysis/AnalysisToolbar.d.ts +1 -1
- package/dist/ui/analysis/AnalysisToolbar.d.ts.map +1 -1
- package/dist/ui/analysis/AxesTab.d.ts +1 -1
- package/dist/ui/analysis/CardMenu.d.ts +1 -1
- package/dist/ui/analysis/ChartOptions.d.ts +1 -1
- package/dist/ui/analysis/ChartOptions.d.ts.map +1 -1
- package/dist/ui/analysis/ChartPicker.d.ts +1 -1
- package/dist/ui/analysis/CompositionOptions.d.ts +1 -1
- package/dist/ui/analysis/CurrencyStrip.d.ts.map +1 -1
- package/dist/ui/analysis/DataTab.d.ts +1 -1
- package/dist/ui/analysis/DimensionCard.d.ts.map +1 -1
- package/dist/ui/analysis/DisplayTab.d.ts +1 -1
- package/dist/ui/analysis/DisplayTab.d.ts.map +1 -1
- package/dist/ui/analysis/DrillMenu.d.ts +1 -1
- package/dist/ui/analysis/DroppedNotice.d.ts +1 -1
- package/dist/ui/analysis/ElementsSlot.d.ts +1 -1
- package/dist/ui/analysis/ExportMenu.d.ts +3 -3
- package/dist/ui/analysis/ExportMenu.d.ts.map +1 -1
- package/dist/ui/analysis/FormulaCard.d.ts.map +1 -1
- package/dist/ui/analysis/HavingRows.d.ts +1 -1
- package/dist/ui/analysis/HavingRows.d.ts.map +1 -1
- package/dist/ui/analysis/LevelOptions.d.ts +1 -1
- package/dist/ui/analysis/MapOptions.d.ts +1 -1
- package/dist/ui/analysis/MetricCard.d.ts +1 -1
- package/dist/ui/analysis/MetricCard.d.ts.map +1 -1
- package/dist/ui/analysis/MetricCondition.d.ts +1 -1
- package/dist/ui/analysis/MetricCondition.d.ts.map +1 -1
- package/dist/ui/analysis/MetricSlot.d.ts +1 -1
- package/dist/ui/analysis/MetricSlot.d.ts.map +1 -1
- package/dist/ui/analysis/RangeSlot.d.ts +1 -1
- package/dist/ui/analysis/ReferenceOptions.d.ts +1 -1
- package/dist/ui/analysis/TermTip.d.ts +1 -1
- package/dist/ui/analysis/TopRow.d.ts +1 -1
- package/dist/ui/analysis/TopRow.d.ts.map +1 -1
- package/dist/ui/analysis/Tray.d.ts +1 -1
- package/dist/ui/analysis/Tray.d.ts.map +1 -1
- package/dist/ui/analysis/VisualizationPanel.d.ts +2 -2
- package/dist/ui/analysis/VisualizationPanel.d.ts.map +1 -1
- package/dist/ui/analysis/editing.d.ts +2 -2
- package/dist/ui/analysis/editing.d.ts.map +1 -1
- package/dist/ui/analysis/exportOffer.d.ts +3 -3
- package/dist/ui/analysis/headerSort.d.ts.map +1 -1
- package/dist/ui/analysis/imageExport.d.ts +3 -3
- package/dist/ui/analysis/imageExport.d.ts.map +1 -1
- package/dist/ui/charts/EChart.d.ts +2 -2
- package/dist/ui/charts/GeoMap.d.ts +1 -1
- package/dist/ui/charts/Heatmap.d.ts +1 -1
- package/dist/ui/charts/MetricCard.d.ts.map +1 -1
- package/dist/ui/charts/PieSlices.d.ts +1 -1
- package/dist/ui/charts/ScatterPoints.d.ts +1 -1
- package/dist/ui/charts/ScatterPoints.d.ts.map +1 -1
- package/dist/ui/charts/axis.d.ts +2 -2
- package/dist/ui/charts/cartesianTooltip.d.ts +2 -2
- package/dist/ui/charts/dateTicks.d.ts +2 -2
- package/dist/ui/charts/dateTicks.d.ts.map +1 -1
- package/dist/ui/charts/family.d.ts +1 -1
- package/dist/ui/charts/family.d.ts.map +1 -1
- package/dist/ui/charts/familyViews.d.ts +1 -1
- package/dist/ui/charts/frameClass.d.ts +2 -2
- package/dist/ui/charts/highlight.d.ts +2 -2
- package/dist/ui/charts/image.d.ts +22 -6
- package/dist/ui/charts/image.d.ts.map +1 -1
- package/dist/ui/charts/maps.d.ts +1 -1
- package/dist/ui/charts/waterfallOption.d.ts +2 -2
- package/dist/ui/colorMode.d.ts +1 -2
- package/dist/ui/colorMode.d.ts.map +1 -1
- package/dist/ui/columns/ColumnSettings.d.ts +6 -1
- package/dist/ui/columns/ColumnSettings.d.ts.map +1 -1
- package/dist/ui/dashboard/AddMenu.d.ts +2 -2
- package/dist/ui/dashboard/Board.d.ts +1 -1
- package/dist/ui/dashboard/BoardDestination.d.ts +2 -2
- package/dist/ui/dashboard/BoardFilters.d.ts +1 -1
- package/dist/ui/dashboard/BoardWidth.d.ts +1 -1
- package/dist/ui/dashboard/ClickSettings.d.ts +4 -4
- package/dist/ui/dashboard/ContentEditor.d.ts +1 -1
- package/dist/ui/dashboard/DashboardArrange.d.ts +1 -1
- package/dist/ui/dashboard/DashboardGrid.d.ts +3 -3
- package/dist/ui/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/ui/dashboard/{DashboardPanel.d.ts → DashboardPanelCard.d.ts} +3 -3
- package/dist/ui/dashboard/DashboardPanelCard.d.ts.map +1 -0
- package/dist/ui/dashboard/DashboardPanels.d.ts +4 -4
- package/dist/ui/dashboard/DashboardPanels.d.ts.map +1 -1
- package/dist/ui/dashboard/DashboardTabs.d.ts +1 -1
- package/dist/ui/dashboard/EditBar.d.ts +1 -1
- package/dist/ui/dashboard/FilterBar.d.ts +1 -1
- package/dist/ui/dashboard/FilterOrder.d.ts +1 -1
- package/dist/ui/dashboard/FilterReadings.d.ts +1 -1
- package/dist/ui/dashboard/FilterReadings.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterSettings.d.ts +2 -2
- package/dist/ui/dashboard/FilterSettings.d.ts.map +1 -1
- package/dist/ui/dashboard/FilterSheet.d.ts +1 -1
- package/dist/ui/dashboard/FilterWiring.d.ts +2 -2
- package/dist/ui/dashboard/GridBlocksLayer.d.ts +1 -1
- package/dist/ui/dashboard/GroupingControl.d.ts +4 -4
- package/dist/ui/dashboard/GroupingControl.d.ts.map +1 -1
- package/dist/ui/dashboard/NewAnalysisDialog.d.ts +1 -1
- package/dist/ui/dashboard/NewAnalysisDialog.d.ts.map +1 -1
- package/dist/ui/dashboard/OpensNumber.d.ts +17 -0
- package/dist/ui/dashboard/OpensNumber.d.ts.map +1 -0
- package/dist/ui/dashboard/PanelBodies.d.ts +9 -8
- package/dist/ui/dashboard/PanelBodies.d.ts.map +1 -1
- package/dist/ui/dashboard/PanelExport.d.ts +3 -3
- package/dist/ui/dashboard/PanelMenu.d.ts +1 -1
- package/dist/ui/dashboard/PresentationDialog.d.ts +1 -1
- package/dist/ui/dashboard/PresentationDialog.d.ts.map +1 -1
- package/dist/ui/dashboard/ScrollCue.d.ts +1 -1
- package/dist/ui/dashboard/ViewPicker.d.ts +1 -1
- package/dist/ui/dashboard/ViewPicker.d.ts.map +1 -1
- package/dist/ui/dashboard/buildShell.d.ts +2 -2
- package/dist/ui/dashboard/building.d.ts +1 -1
- package/dist/ui/dashboard/building.d.ts.map +1 -1
- package/dist/ui/dashboard/commands.d.ts +4 -4
- package/dist/ui/dashboard/commands.d.ts.map +1 -1
- package/dist/ui/dashboard/extensions.d.ts +1 -1
- package/dist/ui/dashboard/filterModes.d.ts +3 -3
- package/dist/ui/dashboard/filterOutcome.d.ts.map +1 -1
- package/dist/ui/dashboard/findings.d.ts +1 -1
- package/dist/ui/dashboard/gridBlocks.d.ts +1 -1
- package/dist/ui/dashboard/panelFit.d.ts +2 -2
- package/dist/ui/dashboard/press.d.ts +2 -2
- package/dist/ui/dashboard/press.d.ts.map +1 -1
- package/dist/ui/dashboard/reveal.d.ts +1 -1
- package/dist/ui/dashboard/scrollMore.d.ts +1 -1
- package/dist/ui/datasetBindings.d.ts +3 -11
- package/dist/ui/datasetBindings.d.ts.map +1 -1
- package/dist/ui/embed/EmbedFrame.d.ts +1 -1
- package/dist/ui/embed/EmbedFrame.d.ts.map +1 -1
- package/dist/ui/embed/EmbedHead.d.ts +5 -5
- package/dist/ui/embed/EmbedHead.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedAnalysis.d.ts +4 -4
- package/dist/ui/embed/EmbeddedAnalysis.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedRecord.d.ts +1 -1
- package/dist/ui/embed/options.d.ts +4 -4
- package/dist/ui/embed/options.d.ts.map +1 -1
- package/dist/ui/filter/inputs/duration.d.ts.map +1 -1
- package/dist/ui/filter/inputs/remote.d.ts +3 -1
- package/dist/ui/filter/inputs/remote.d.ts.map +1 -1
- package/dist/ui/index.d.ts +6 -7
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/kit/ExportDialog.d.ts +2 -2
- package/dist/ui/kit/ExportDialog.d.ts.map +1 -1
- package/dist/ui/kit/IconButton.d.ts +1 -1
- package/dist/ui/kit/MessagesProvider.d.ts +3 -3
- package/dist/ui/kit/RenameInput.d.ts +2 -2
- package/dist/ui/kit/RenderBoundary.d.ts.map +1 -1
- package/dist/ui/kit/RowItem.d.ts +1 -1
- package/dist/ui/kit/ViewSurface.d.ts +16 -6
- package/dist/ui/kit/ViewSurface.d.ts.map +1 -1
- package/dist/ui/kit/alerts.d.ts +2 -2
- package/dist/ui/kit/alerts.d.ts.map +1 -1
- package/dist/ui/kit/chartFailure.d.ts +1 -3
- package/dist/ui/kit/chartFailure.d.ts.map +1 -1
- package/dist/ui/kit/datePart.d.ts +2 -2
- package/dist/ui/kit/datePart.d.ts.map +1 -1
- package/dist/ui/kit/display.d.ts +25 -6
- package/dist/ui/kit/display.d.ts.map +1 -1
- package/dist/ui/kit/dragPlugins.d.ts +3 -3
- package/dist/ui/kit/failureSink.d.ts +1 -1
- package/dist/ui/kit/failureSink.d.ts.map +1 -1
- package/dist/ui/kit/features.d.ts +2 -2
- package/dist/ui/kit/features.d.ts.map +1 -1
- package/dist/ui/kit/icon.d.ts +9 -0
- package/dist/ui/kit/icon.d.ts.map +1 -0
- package/dist/ui/kit/kinds.d.ts +4 -4
- package/dist/ui/kit/kinds.d.ts.map +1 -1
- package/dist/ui/kit/layout.d.ts +2 -2
- package/dist/ui/kit/messages.d.ts.map +1 -1
- package/dist/ui/kit/popups.d.ts.map +1 -1
- package/dist/ui/kit/presets.d.ts +2 -2
- package/dist/ui/kit/summary.d.ts +8 -10
- package/dist/ui/kit/summary.d.ts.map +1 -1
- package/dist/ui/kit/surfaceContext.d.ts +4 -3
- package/dist/ui/kit/surfaceContext.d.ts.map +1 -1
- package/dist/ui/kit/surfaceKeys.d.ts +1 -1
- package/dist/ui/kit/toolbar.d.ts +21 -4
- package/dist/ui/kit/toolbar.d.ts.map +1 -1
- package/dist/ui/kit/variants.d.ts +5 -5
- package/dist/ui/manage/DatasetWordingForm.d.ts +2 -2
- package/dist/ui/messages/analysis.d.ts +61 -57
- package/dist/ui/messages/analysis.d.ts.map +1 -1
- package/dist/ui/messages/building.d.ts +1 -1
- package/dist/ui/messages/capabilities.d.ts +5 -1
- package/dist/ui/messages/capabilities.d.ts.map +1 -1
- package/dist/ui/messages/clicks.d.ts +1 -1
- package/dist/ui/messages/dashboard.d.ts +1 -0
- package/dist/ui/messages/dashboard.d.ts.map +1 -1
- package/dist/ui/messages/datasets.d.ts +3 -2
- package/dist/ui/messages/datasets.d.ts.map +1 -1
- package/dist/ui/messages/definition.d.ts +3 -1
- package/dist/ui/messages/definition.d.ts.map +1 -1
- package/dist/ui/messages/embed.d.ts +1 -1
- package/dist/ui/messages/en.d.ts +241 -221
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/export.d.ts +1 -1
- package/dist/ui/messages/filter.d.ts +98 -98
- package/dist/ui/messages/filter.d.ts.map +1 -1
- package/dist/ui/messages/filters.d.ts +1 -1
- package/dist/ui/messages/record.d.ts +20 -15
- package/dist/ui/messages/record.d.ts.map +1 -1
- package/dist/ui/messages/scope.d.ts +1 -0
- package/dist/ui/messages/scope.d.ts.map +1 -1
- package/dist/ui/messages/view.d.ts +51 -49
- package/dist/ui/messages/view.d.ts.map +1 -1
- package/dist/ui/messages/wireKey.d.ts +17 -0
- package/dist/ui/messages/wireKey.d.ts.map +1 -0
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui/record/CardSettings.d.ts.map +1 -1
- package/dist/ui/record/CardSummaries.d.ts +1 -1
- package/dist/ui/record/OffscreenSummary.d.ts +1 -1
- package/dist/ui/record/RecordDetail.d.ts +8 -3
- package/dist/ui/record/RecordDetail.d.ts.map +1 -1
- package/dist/ui/record/RecordKanban.d.ts +1 -1
- package/dist/ui/record/RecordPagination.d.ts +3 -1
- package/dist/ui/record/RecordPagination.d.ts.map +1 -1
- package/dist/ui/record/SelectionBar.d.ts +2 -2
- package/dist/ui/record/SortableHeader.d.ts.map +1 -1
- package/dist/ui/record/cells.d.ts.map +1 -1
- package/dist/ui/record/exportOffer.d.ts +1 -1
- package/dist/ui/record/exportOffer.d.ts.map +1 -1
- package/dist/ui/record/kanbanDrag.d.ts +2 -2
- package/dist/ui/record/offscreenSummaries.d.ts +2 -2
- package/dist/ui/record/overflow.d.ts +1 -1
- package/dist/ui/record/queryAnnouncement.d.ts.map +1 -1
- package/dist/ui/record/resultCount.d.ts +10 -0
- package/dist/ui/record/resultCount.d.ts.map +1 -0
- package/dist/ui/record/sticky.d.ts +1 -1
- package/dist/ui/record/useOffscreenColumns.d.ts +1 -1
- package/dist/ui/record/useSummaries.d.ts.map +1 -1
- package/dist/ui/sort/SortSettings.d.ts.map +1 -1
- package/dist/ui/theme/tokens.d.ts +1 -1
- package/dist/ui/viewNavigation.d.ts.map +1 -1
- package/dist/ui/workbench/AddToDashboardDialog.d.ts +1 -1
- package/dist/ui/workbench/AnalysisParts.d.ts +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts.map +1 -1
- package/dist/ui/workbench/OriginBar.d.ts +1 -1
- package/dist/ui/workbench/RecordParts.d.ts.map +1 -1
- package/dist/ui/workbench/ResultBlock.d.ts +1 -1
- package/dist/ui/workbench/SaveActions.d.ts.map +1 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts +7 -1
- package/dist/ui/workbench/SaveAsDialog.d.ts.map +1 -1
- package/dist/ui/workbench/Sidebar.d.ts +2 -2
- package/dist/ui/workbench/StatusLine.d.ts +1 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts +0 -9
- package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
- package/dist/ui/workbench/WorkbenchShell.d.ts +3 -3
- package/dist/ui/workbench/WorkbenchShell.d.ts.map +1 -1
- package/dist/ui/workbench/WriteOutcome.d.ts.map +1 -1
- package/dist/ui/workbench/address.d.ts +4 -2
- package/dist/ui/workbench/address.d.ts.map +1 -1
- package/dist/ui.js +14071 -14046
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-B3B6hbXr.js → viewRuntimeTypes-D08oR6Ke.js} +2150 -2307
- package/dist/viewRuntimeTypes-D08oR6Ke.js.map +1 -0
- package/package.json +13 -13
- package/dist/actions-CgaL6eEe.js.map +0 -1
- package/dist/cartesianBrush-HLU12ig5.js.map +0 -1
- package/dist/clickDraft-CdUtkL4y.js +0 -184
- package/dist/clickDraft-CdUtkL4y.js.map +0 -1
- package/dist/dashboard/migrate.d.ts +0 -33
- package/dist/dashboard/migrate.d.ts.map +0 -1
- package/dist/react/useViewEngine.d.ts.map +0 -1
- package/dist/react-BuHt29n6.js +0 -3855
- package/dist/react-BuHt29n6.js.map +0 -1
- package/dist/runtime/storedViews.d.ts +0 -10
- package/dist/runtime/storedViews.d.ts.map +0 -1
- package/dist/ui/dashboard/DashboardPanel.d.ts.map +0 -1
- package/dist/viewRuntimeTypes-B3B6hbXr.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../src/capabilities/open.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../src/capabilities/open.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAML,KAAK,kBAAkB,EAGvB,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAkC3B;;;GAGG;AACH,KAAK,KAAK,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAE1D,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,EAC/C,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,UAAU,EAAE,oBAAoB,EAChC,KAAK,GAAE,KAAgB,GACtB,kBAAkB,CA4DpB;AA2FD;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,UAAU,EAAE,kBAAkB,EAC9B,UAAU,EAAE,oBAAoB,GAC/B,kBAAkB,CAiCpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/capabilities/record.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/capabilities/record.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAS3B;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,gBAAgB,EAC5B,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,KAAK,EAAE,GAChB,gBAAgB,CA8ClB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore as e } from "react";
|
|
2
|
-
|
|
2
|
+
// src/ui/charts/highlight.ts
|
|
3
3
|
var t = .5;
|
|
4
4
|
function n(e, t) {
|
|
5
5
|
let n = e.series;
|
|
@@ -46,8 +46,7 @@ function a(e) {
|
|
|
46
46
|
itemStyle: { opacity: t }
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
//#region src/ui/charts/cartesianBrush.ts
|
|
49
|
+
// src/ui/charts/cartesianBrush.ts
|
|
51
50
|
function o(e) {
|
|
52
51
|
return !e.horizontal && e.context.brushes === !0 && e.context.pickable && e.data.points.length > 1;
|
|
53
52
|
}
|
|
@@ -116,7 +115,6 @@ function v(e) {
|
|
|
116
115
|
let t = g();
|
|
117
116
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
118
117
|
}
|
|
119
|
-
//#endregion
|
|
120
118
|
export { p as a, n as c, f as i, u as n, l as o, c as r, t as s, d as t };
|
|
121
119
|
|
|
122
|
-
//# sourceMappingURL=cartesianBrush-
|
|
120
|
+
//# sourceMappingURL=cartesianBrush-bgRuE6Ks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cartesianBrush-bgRuE6Ks.js","names":["EChartsCoreOption","FADED_OPACITY","Lit","series","datum","faded","option","lit","Array","isArray","marks","flatMap","entry","Record","position","index","markIndex","data","count","length","any","some","from","_","at","map","fade","ONE_SERIES","Set","type","has","id","exec","Number","style","itemStyle","opacity","value","useSyncExternalStore","CartesianPlan","FADED_OPACITY","ChartTheme","brushes","plan","horizontal","context","pickable","data","points","length","BRUSH_ID","brushOption","theme","undefined","id","xAxisIndex","brushLink","brushType","brushMode","transformable","removeOnClick","toolbox","brushStyle","color","muted","borderColor","borderWidth","opacity","inBrush","outOfBrush","colorAlpha","withoutBrushToolbox","option","Record","toolboxRegistered","brush","list","Array","isArray","some","entry","BRUSH_CURSOR","type","key","const","BRUSH_CLEAR","areas","BrushedSpan","from","to","brushedSpan","said","count","area","range","coordRange","a","b","Number","isFinite","low","Math","max","round","min","high","useCoarsePointer","subscribe","coarse","_temp","COARSE","media","MediaQueryList","window","matchMedia","matches","change","addEventListener","removeEventListener","FADED_OPACITY","faded","series","option","lit","index","markIndex","entry","position","count","at","datum","fade","ONE_SERIES","id","style","brushes","plan","BRUSH_ID","brushOption","theme","withoutBrushToolbox","toolboxRegistered","BRUSH_CURSOR","BRUSH_CLEAR","brushedSpan","areas","said","range","a","b","low","high","useCoarsePointer","useSyncExternalStore","subscribe","coarse","_temp","COARSE","media","list","change"],"sources":["../src/ui/charts/highlight.ts","../src/ui/charts/cartesianBrush.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { EChartsCoreOption } from 'echarts/core';\n\n/**\n * How faint a mark that is not the group pressed is drawn: a dashboard panel\n * that set the board's filter keeps every group and marks the one pressed.\n * Faded rather than hidden — the others are still the panel's\n * answer — and by opacity alone, so the palette and the marks' own colours\n * stay the theme's.\n */\nexport const FADED_OPACITY = 0.5;\n\n/**\n * Which of a series' data are the group pressed: `lit(series, datum)` is\n * asked for each drawn datum, `series` the index the family's option names\n * its marks by (`s{index}`, or the one series of a pie, a scatter or a\n * heatmap).\n */\nexport type Lit = (series: number, datum: number) => boolean;\n\n/**\n * The option with every datum that is not lit faded. Only the family's own\n * marks are touched — a series whose id is `s{n}` (the cartesian marks), or\n * the one series of a pie, a scatter or a heatmap — never a stack's totals or a reference line, which\n * stand for no group. Without `lit`, or with no datum it lights, the option\n * is handed back as it is, so a chart nothing was pressed on draws exactly\n * what it drew before.\n */\nexport function faded(\n option: EChartsCoreOption,\n lit: Lit | undefined,\n): EChartsCoreOption {\n const series = option.series;\n if (!lit || !Array.isArray(series)) return option;\n const marks = series.flatMap((entry: Record<string, unknown>, position) => {\n const index = markIndex(entry, position);\n return index === null || !Array.isArray(entry.data)\n ? []\n : [{ index, count: entry.data.length }];\n });\n // Nothing pressed on this chart — the value came from elsewhere, or its\n // group is not among the ones drawn — marks nothing, and fades nothing.\n const any = marks.some(({ index, count }) =>\n Array.from({ length: count }, (_, at) => at).some(at => lit(index, at)),\n );\n if (!any) return option;\n return {\n ...option,\n series: series.map((entry: Record<string, unknown>, position) => {\n const index = markIndex(entry, position);\n if (index === null || !Array.isArray(entry.data)) return entry;\n return {\n ...entry,\n data: entry.data.map((datum: unknown, at: number) =>\n lit(index, at) ? datum : fade(datum),\n ),\n };\n }),\n };\n}\n\n/** The families drawn as one series whose every datum is a group. */\nconst ONE_SERIES = new Set(['pie', 'scatter', 'heatmap']);\n\n/** The index a series stands for among the marks, or `null` for none. */\nfunction markIndex(entry: Record<string, unknown>, position: number) {\n if (typeof entry.type === 'string' && ONE_SERIES.has(entry.type))\n return position;\n const id = typeof entry.id === 'string' ? /^s(\\d+)$/.exec(entry.id) : null;\n return id ? Number(id[1]) : null;\n}\n\nfunction fade(datum: unknown): unknown {\n if (typeof datum === 'object' && datum !== null && 'value' in datum) {\n const style = (datum as { itemStyle?: object }).itemStyle ?? {};\n return {\n ...datum,\n itemStyle: { ...style, opacity: FADED_OPACITY },\n };\n }\n return { value: datum, itemStyle: { opacity: FADED_OPACITY } };\n}\n","/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useSyncExternalStore } from 'react';\nimport type { CartesianPlan } from './cartesianPlan.js';\nimport { FADED_OPACITY } from './highlight.js';\nimport type { ChartTheme } from './theme.js';\n\n/**\n * Brushing a stretch of a time axis (D33 batch C, Q52): a drag along the\n * plot selects the buckets under it, and the follow-up menu a press on one\n * group opens is asked about all of them at once — 「这几天怎么了」. The\n * brush only chooses; what the stretch means as a condition is the\n * kernel's (`drillSpan`), and nothing here edits the view.\n *\n * Only along the axis (`lineX`), only one stretch at a time, and never\n * saved: the cover goes when the menu over it closes.\n */\n\n/** Whether a chart of this plan is brushed: upright, over time, pressable. */\nexport function brushes(plan: CartesianPlan): boolean {\n return (\n !plan.horizontal &&\n plan.context.brushes === true &&\n plan.context.pickable &&\n plan.data.points.length > 1\n );\n}\n\n/**\n * The id the brush component of this package's charts wears, by which the\n * toolbox the library injects for it is recognised (`withoutBrushToolbox`).\n */\nexport const BRUSH_ID = 'fve-brush';\n\n/**\n * The brush component a brushed chart carries, or nothing.\n *\n * Its cover is a quiet band in the muted ink, and the marks outside it fade as a pressed\n * group's neighbours do on a board (`FADED_OPACITY`), so what the stretch\n * holds reads while the drag is under way. No toolbox: the drag is always\n * on (`BRUSH_CURSOR`), and a press still presses — a drag shorter than the\n * library's threshold draws no cover, and a click is only a click when the\n * pointer barely moved.\n */\nexport function brushOption(\n plan: CartesianPlan,\n theme: ChartTheme,\n): object | undefined {\n if (!brushes(plan)) return undefined;\n return {\n id: BRUSH_ID,\n xAxisIndex: 0,\n brushLink: 'none',\n brushType: 'lineX',\n brushMode: 'single',\n transformable: false,\n removeOnClick: true,\n toolbox: [],\n brushStyle: {\n color: theme.muted,\n borderColor: theme.muted,\n borderWidth: 1,\n opacity: 0.18,\n },\n inBrush: {},\n outOfBrush: { colorAlpha: FADED_OPACITY },\n };\n}\n\n/**\n * The option without the toolbox the library's brush preprocessor put into\n * it for this package's brush — an option preprocessor, registered after the\n * brush (`echarts.ts`), so it runs before the library checks what the option\n * uses. The preprocessor adds a `toolbox` for the buttons it would draw; the\n * toolbox is not registered (analysis-echarts.md 2.4: +15.1KB for buttons\n * this package draws itself), so nothing was drawn, but a development build\n * logged 「Component toolbox is used but not imported」 in every host's\n * console. Only an option carrying this package's brush (`BRUSH_ID`) is\n * touched, and only while no toolbox is registered: a host drawing its own\n * charts with the same library, toolbox and all, keeps its toolbox.\n */\nexport function withoutBrushToolbox(\n option: Record<string, unknown> | undefined,\n toolboxRegistered: boolean,\n): void {\n if (!option || toolboxRegistered || !('toolbox' in option)) return;\n const brushes = option.brush;\n const list: unknown[] = Array.isArray(brushes) ? brushes : [brushes];\n if (list.some(entry => (entry as { id?: unknown } | null)?.id === BRUSH_ID))\n delete option.toolbox;\n}\n\n/**\n * What turns the brush on without a toolbox button: taken when a mouse or a\n * pen goes down on the plot, before the library sees the press, and again\n * after a whole new option has reset the component (`EChart`).\n */\nexport const BRUSH_CURSOR = {\n type: 'takeGlobalCursor',\n key: 'brush',\n brushOption: { brushType: 'lineX', brushMode: 'single' },\n} as const;\n\n/** What clears the cover once the menu over it has gone. */\nexport const BRUSH_CLEAR = { type: 'brush', areas: [] } as const;\n\n/** The first and the last category a brush covers, by index. */\ninterface BrushedSpan {\n from: number;\n to: number;\n}\n\n/**\n * The categories a finished brush covers, read off the library's `brushEnd`\n * event — its one area's range along the category axis, which it gives in\n * category indexes — clamped to the `count` there are; `null` for a brush\n * that covers none (one taken away by a click, or dragged off the plot).\n */\nexport function brushedSpan(said: unknown, count: number): BrushedSpan | null {\n const areas = (said as { areas?: unknown } | null)?.areas;\n const area: unknown = Array.isArray(areas) ? areas[0] : undefined;\n const range = (area as { coordRange?: unknown } | undefined)?.coordRange;\n if (!Array.isArray(range) || range.length !== 2 || count === 0) return null;\n const [a, b] = range as unknown[];\n if (typeof a !== 'number' || typeof b !== 'number') return null;\n if (!Number.isFinite(a) || !Number.isFinite(b)) return null;\n // The library gives whole indexes on a category axis; were one to come\n // between two, it belongs to the nearer category.\n const low = Math.max(0, Math.round(Math.min(a, b)));\n const high = Math.min(count - 1, Math.round(Math.max(a, b)));\n return low <= high ? { from: low, to: high } : null;\n}\n\n/**\n * Whether the reader's main pointer is a finger (`pointer: coarse`): a\n * phone or a tablet, where a chart is brushed not at all. The library takes\n * a touch on the plot as the start of a drag and holds the page still under\n * it, so a finger that landed on a chart to scroll past it would brush it\n * instead; there the first tap reads a mark and the second opens its menu\n * (`EChart`), and the table layout picks a span with Shift where a keyboard\n * is. Read live; where the platform cannot say, a desktop is assumed.\n */\nexport function useCoarsePointer(): boolean {\n return useSyncExternalStore(subscribe, coarse, () => false);\n}\n\nconst COARSE = '(pointer: coarse)';\n\nfunction media(): MediaQueryList | null {\n return typeof window !== 'undefined' &&\n typeof window.matchMedia === 'function'\n ? window.matchMedia(COARSE)\n : null;\n}\n\nfunction coarse(): boolean {\n return media()?.matches ?? false;\n}\n\nfunction subscribe(change: () => void): () => void {\n const list = media();\n list?.addEventListener('change', change);\n return () => list?.removeEventListener('change', change);\n}\n"],"mappings":";;AAsBA,IAAaC,IAAgB;AAkB7B,SAAgBI,EACdC,GACAC,GACmB;CACnB,IAAMJ,IAASG,EAAOH;CActB,OAbI,CAACI,KAAO,CAACC,MAAMC,QAAQN,CAAM,KAY7B,CAXUA,EAAOQ,SAASC,GAAgCE,MAAa;EACzE,IAAMC,IAAQC,EAAUJ,GAAOE,CAAQ;EACvC,OAAOC,MAAU,QAAQ,CAACP,MAAMC,QAAQG,EAAMK,IAAI,IAC9C,CAAA,IACA,CAAC;GAAEF;GAAOG,OAAON,EAAMK,KAAKE;EAAO,CAAC;CAC1C,CAGYT,CAAAA,CAAMW,MAAM,EAAEN,UAAOG,eAC/BV,MAAMc,KAAK,EAAEH,QAAQD,EAAM,IAAIK,GAAGC,MAAOA,CAAE,CAAC,CAACH,MAAKG,MAAMjB,EAAIQ,GAAOS,CAAE,CAAC,CAEnEJ,IAAYd,IACV;EACL,GAAGA;EACHH,QAAQA,EAAOsB,KAAKb,GAAgCE,MAAa;GAC/D,IAAMC,IAAQC,EAAUJ,GAAOE,CAAQ;GAEvC,OADIC,MAAU,QAAQ,CAACP,MAAMC,QAAQG,EAAMK,IAAI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ASC,IAA+B;CACtC,OAAO,OAAOE,SAAW,OACvB,OAAOA,OAAOC,cAAe,aAC3BD,OAAOC,WAAWJ,CAAM,IACxB;AACN;AAEA,SAASF,IAAkB;CACzB,OAAOG,EAAM,CAAC,EAAEI,WAAW;AAC7B;AAEA,SAASR,EAAUS,GAAgC;CACjD,IAAMxC,IAAOmC,EAAM;CAEnB,OADAnC,GAAMyC,iBAAiB,UAAUD,CAAM,SAC1BxC,GAAM0C,oBAAoB,UAAUF,CAAM;AACzD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregationGroupTypeName, DashboardField, DashboardFilterType, DashboardViewConfig, DashboardViewPanel, FieldDefinition, Issue, IssuePath, PanelClick, ViewConfig } from '../model/index.js';
|
|
2
2
|
import { PanelReferences } from './validate.js';
|
|
3
3
|
import { DefinitionLookup } from './declared.js';
|
|
4
4
|
/** The names a URL template's `{{…}}` hold, in order, each once. */
|
|
@@ -14,17 +14,17 @@ export declare function fillUrl(template: string, values: Readonly<Record<string
|
|
|
14
14
|
/** One dimension of a panel's view, as a press reads it: a field bucketed so. */
|
|
15
15
|
export interface PressableGroup {
|
|
16
16
|
field: string;
|
|
17
|
-
type:
|
|
17
|
+
type: AggregationGroupTypeName;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Whether a press on a group of this dimension has a value for a filter of
|
|
21
|
-
* this type
|
|
21
|
+
* this type: a date filter takes a date bucket — the window it
|
|
22
22
|
* spans — and a text, id, number or yes-or-no filter takes one value of a
|
|
23
23
|
* `TERMS` dimension. A band of numbers is two bounds, not a value, so a
|
|
24
24
|
* number filter takes no `HISTOGRAM` group; a filter of a kind outside the
|
|
25
25
|
* five takes none.
|
|
26
26
|
*/
|
|
27
|
-
export declare function takesGroup(type: DashboardFilterType | null, group:
|
|
27
|
+
export declare function takesGroup(type: DashboardFilterType | null, group: AggregationGroupTypeName): boolean;
|
|
28
28
|
/**
|
|
29
29
|
* The board filters a press on this panel can set (「更新仪表盘筛选」):
|
|
30
30
|
* each wired to it through a field one of `groups` buckets in a way the
|
|
@@ -45,7 +45,7 @@ export declare function pressableGroups(config: ViewConfig | undefined): {
|
|
|
45
45
|
pressable: boolean;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
* What admission says about a panel's click
|
|
48
|
+
* What admission says about a panel's click. Every finding is a
|
|
49
49
|
* warning: a click that cannot do what it says leaves the panel as it is,
|
|
50
50
|
* and a press on it opens the follow-up menu instead — the board still runs
|
|
51
51
|
* and still saves. `view` is the panel's view once known; before, only the
|
|
@@ -55,12 +55,12 @@ export declare function validatePanelClick(panel: DashboardViewPanel, path: Issu
|
|
|
55
55
|
config: ViewConfig;
|
|
56
56
|
fields?: readonly FieldDefinition[];
|
|
57
57
|
} | null, refs?: PanelReferences, lookup?: DefinitionLookup): Issue[];
|
|
58
|
-
/** A click that opens another board
|
|
58
|
+
/** A click that opens another board. */
|
|
59
59
|
export type BoardClick = Extract<PanelClick, {
|
|
60
60
|
kind: 'dashboard';
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
63
|
-
* What a click that opens another board says
|
|
63
|
+
* What a click that opens another board says, each finding a
|
|
64
64
|
* warning. Known without the target: a mapped dimension this panel no
|
|
65
65
|
* longer groups by, a mapped filter of this board's it no longer has. Once
|
|
66
66
|
* the target has been read: a target gone, not a board, or a mapped filter
|
|
@@ -83,14 +83,14 @@ export declare function validateBoardClick(click: BoardClick, at: IssuePath, gro
|
|
|
83
83
|
}): Issue[];
|
|
84
84
|
/**
|
|
85
85
|
* This board's filters another board's filter can take its value from
|
|
86
|
-
* (
|
|
86
|
+
* (「这块板的〈筛选〉」): each of the same filter type
|
|
87
87
|
* (`sameFilterType`), so the value it holds is one the target reads. Never
|
|
88
88
|
* matched by name: the author picks one.
|
|
89
89
|
*/
|
|
90
90
|
export declare function boardFilterChoices(filter: DashboardField, own: readonly DashboardField[]): DashboardField[];
|
|
91
91
|
/**
|
|
92
92
|
* The dimensions of a panel another board's filter can take its value from
|
|
93
|
-
* (
|
|
93
|
+
* (「这一组的〈维度〉」): each one bucketed in a way the filter takes
|
|
94
94
|
* (`takesGroup`) over a field of the filter's type (`sameFilterType`), once
|
|
95
95
|
* per field. Without the panel's fields — its view not known yet — the
|
|
96
96
|
* bucketing alone is asked. Never matched by name: this is the list the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../src/dashboard/click.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;GAUG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../src/dashboard/click.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;GAUG;AAEH,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAS3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGpE,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAI1D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACvC,MAAM,GAAG,IAAI,CAKf;AAED,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,mBAAmB,GAAG,IAAI,EAChC,KAAK,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,SAAS,CAAC;CACjE,GACA,KAAK,EAAE,CAyDT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,SAAS,cAAc,EAAE,GAC7B,cAAc,EAAE,CAElB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,SAAS,cAAc,EAAE,EACjC,MAAM,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI,GACxC,cAAc,EAAE,CAWlB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,UAAU,GAAG,IAAI,GACvB,mBAAmB,CAarB"}
|
|
@@ -53,7 +53,7 @@ export declare function boardValueSources(filter: DashboardField, { groups, fiel
|
|
|
53
53
|
/** One source as a key: `dimension:<field>` or `filter:<name>`. */
|
|
54
54
|
export declare function valueSourceKey(source: BoardValueSource): string;
|
|
55
55
|
/**
|
|
56
|
-
* What a press takes to the board
|
|
56
|
+
* What a press takes to the board, from what the author chose:
|
|
57
57
|
* each of the board's filters mapped to a source that can still give it a
|
|
58
58
|
* value — a dimension of this panel, or a filter of this board's, of a type
|
|
59
59
|
* it takes. Whatever else was stored (a filter gone on either board, a
|
package/dist/dashboard/edit.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface NewPanelPlacement {
|
|
|
29
29
|
max?: number;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* How big a new panel starts, in cells of the 24-column grid
|
|
32
|
+
* How big a new panel starts, in cells of the 24-column grid: a
|
|
33
33
|
* metric card a quarter, a chart half, a table the full width; a heading a
|
|
34
34
|
* full-width line, a note or a picture beside a chart. `view` is the config
|
|
35
35
|
* the panel shows, when it is known — an owned view's own, a saved one's
|
|
@@ -69,7 +69,7 @@ export declare function duplicatePanel(config: DashboardViewConfig, id: string,
|
|
|
69
69
|
/** A panel's title set, or taken off for a blank one so it is named by what it shows. */
|
|
70
70
|
export declare function renamePanel(config: DashboardViewConfig, id: string, title: string): DashboardViewConfig;
|
|
71
71
|
/**
|
|
72
|
-
* A data panel showing another saved view (
|
|
72
|
+
* A data panel showing another saved view (「替换视图」). The title
|
|
73
73
|
* and the wiring stay the panel's — a replaced view is usually the same
|
|
74
74
|
* data asked better, and a binding the new view cannot carry is reported by
|
|
75
75
|
* admission. The override goes: it said how to look at the view replaced;
|
|
@@ -79,15 +79,15 @@ export declare function renamePanel(config: DashboardViewConfig, id: string, tit
|
|
|
79
79
|
export declare function replacePanelView(config: DashboardViewConfig, id: string, instanceId: string): DashboardViewConfig;
|
|
80
80
|
/**
|
|
81
81
|
* A data panel pointing at a saved view that is the very view it showed:
|
|
82
|
-
* its own analysis just saved as a view (
|
|
82
|
+
* its own analysis just saved as a view (「另存为视图」), or the
|
|
83
83
|
* personal view it stood on just copied for the board's audience
|
|
84
|
-
* (
|
|
84
|
+
* (「复制为共享视图并替换」). Unlike a replacement it keeps the
|
|
85
85
|
* override, the click and the wiring: the panel shows the same thing, and
|
|
86
86
|
* should look and answer the same.
|
|
87
87
|
*/
|
|
88
88
|
export declare function referToSaved(config: DashboardViewConfig, id: string, instanceId: string): DashboardViewConfig;
|
|
89
89
|
/**
|
|
90
|
-
* A data panel's override of how it looks
|
|
90
|
+
* A data panel's override of how it looks, or its override taken
|
|
91
91
|
* off (`null`, or one setting nothing): 「恢复为视图的样子」.
|
|
92
92
|
*/
|
|
93
93
|
export declare function setPresentation(config: DashboardViewConfig, id: string, presentation: PanelPresentation | null): DashboardViewConfig;
|
|
@@ -109,7 +109,7 @@ export declare function movePanelToTab(config: DashboardViewConfig, id: string,
|
|
|
109
109
|
/** The panels of one tab floated up, holes and all gone. */
|
|
110
110
|
export declare function compactTab(config: DashboardViewConfig, tab: string | null): DashboardViewConfig;
|
|
111
111
|
/**
|
|
112
|
-
* The board laid out at another width
|
|
112
|
+
* The board laid out at another width. It is written even when it is
|
|
113
113
|
* `full` — a board the author chose full for says so, rather than looking
|
|
114
114
|
* like one saved before a board could say — and the same config comes back
|
|
115
115
|
* when the board is already read at that width and says it.
|
|
@@ -41,7 +41,7 @@ export declare function setFilterOneDay(config: DashboardViewConfig, name: strin
|
|
|
41
41
|
*/
|
|
42
42
|
export declare function setFilterMultiple(config: DashboardViewConfig, name: string, multiple: boolean): DashboardViewConfig;
|
|
43
43
|
/**
|
|
44
|
-
* Where a filter's choices come from (
|
|
44
|
+
* Where a filter's choices come from (「值从哪来」): a list of its
|
|
45
45
|
* own, or — `null` — the values of the fields it is wired to.
|
|
46
46
|
*/
|
|
47
47
|
export declare function setFilterOptions(config: DashboardViewConfig, name: string, options: FieldOption[] | null): DashboardViewConfig;
|
|
@@ -50,11 +50,10 @@ export declare function moveFilter(config: DashboardViewConfig, name: string, in
|
|
|
50
50
|
/** The board's time grouping set, or taken off with `null`. */
|
|
51
51
|
export declare function setTimeGrouping(config: DashboardViewConfig, grouping: DashboardTimeGrouping | null): DashboardViewConfig;
|
|
52
52
|
/**
|
|
53
|
-
* The board without its fixed scope
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* whose fixed scope is empty already comes back as it was.
|
|
53
|
+
* The board without its fixed scope: the condition every panel runs under,
|
|
54
|
+
* taken out whole by its author — never a reader's to take — and the empty
|
|
55
|
+
* tree left in its place, so the member stays. A board whose fixed scope is
|
|
56
|
+
* empty already comes back as it was.
|
|
58
57
|
*/
|
|
59
58
|
export declare function removeFixedScope(config: DashboardViewConfig): DashboardViewConfig;
|
|
60
59
|
//# sourceMappingURL=filterEdit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterEdit.d.ts","sourceRoot":"","sources":["../../src/dashboard/filterEdit.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;GAWG;AAEH,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAC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ldKindRegistry } from '../filter/index.js';
|
|
|
6
6
|
* or a named period alike), a yes-or-no `EQ`, text, ids and numbers `IN` —
|
|
7
7
|
* one value or several, so the same condition reaches a `string`, an `enum`
|
|
8
8
|
* and a `reference` field without being translated on the way — and a search
|
|
9
|
-
* `SEARCH`, the text a record view's search box looks for.
|
|
10
|
-
* condition is read into defaults by the same table (`migrateDashboardConfig`).
|
|
9
|
+
* `SEARCH`, the text a record view's search box looks for.
|
|
11
10
|
*/
|
|
12
11
|
export declare const FILTER_TYPE_OPERATOR: {
|
|
13
|
-
readonly date: "
|
|
14
|
-
readonly text: "
|
|
15
|
-
readonly id: "
|
|
16
|
-
readonly number: "
|
|
17
|
-
readonly boolean: "
|
|
18
|
-
readonly search: "
|
|
12
|
+
readonly date: "between";
|
|
13
|
+
readonly text: "in";
|
|
14
|
+
readonly id: "in";
|
|
15
|
+
readonly number: "in";
|
|
16
|
+
readonly boolean: "eq";
|
|
17
|
+
readonly search: "search";
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
20
|
* The operator a filter's condition is asked with: its type's
|
|
@@ -77,8 +76,8 @@ export declare function admitFilters(config: DashboardViewConfig, wanted: Dashbo
|
|
|
77
76
|
*/
|
|
78
77
|
export declare function panelFilterTree(config: DashboardViewConfig, filters: DashboardFilters, bindings: readonly PanelBinding[], kinds: FieldKindRegistry): FilterTree | null;
|
|
79
78
|
/**
|
|
80
|
-
* The control a filter's value is edited with (
|
|
81
|
-
*
|
|
79
|
+
* The control a filter's value is edited with (the condition editor's value
|
|
80
|
+
* controls, never new ones): a date filter the date control its kind
|
|
82
81
|
* asks for, a yes-or-no the yes/no select, an id filter ids from the host's
|
|
83
82
|
* source or its list; a text or number filter with a list of its own the
|
|
84
83
|
* select over it, as over the list its wired fields declare (`wired`, an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/dashboard/filters.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AAEH,O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BAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dashboard/index.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -72,7 +72,7 @@ export declare function arrangePanel(panels: readonly PlacedPanel[], id: string,
|
|
|
72
72
|
* The first place a new panel of this size can go: free, at rest (the
|
|
73
73
|
* compaction a later placement runs would not lift it), and at or below
|
|
74
74
|
* `fromRow` — the first row the reader has on screen, so what they add
|
|
75
|
-
* lands where they are looking
|
|
75
|
+
* lands where they are looking. Rows top to bottom, each left to
|
|
76
76
|
* right. When nothing down to the board's end will take it, it goes under
|
|
77
77
|
* everything and rises to rest there.
|
|
78
78
|
*/
|
|
@@ -163,7 +163,7 @@ export declare function grownLayout(panels: readonly PlacedPanel[], heights: Rea
|
|
|
163
163
|
export type OrderStep = 'up' | 'down';
|
|
164
164
|
/**
|
|
165
165
|
* The panels after one of them trades places with its neighbour in reading
|
|
166
|
-
* order — the one-column reading's 「上移」/「下移」
|
|
166
|
+
* order — the one-column reading's 「上移」/「下移」 written back
|
|
167
167
|
* onto the grid — or `null` when there is no neighbour that way, or no such
|
|
168
168
|
* panel.
|
|
169
169
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DashboardViewConfig, FilterTree, PanelBinding } from '../model/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* The condition every data panel of a board runs under before its filters,
|
|
4
|
-
* in the board's own field names: its fixed scope (`fixed
|
|
5
|
-
* board's only condition of its own, since a board has no `filter
|
|
4
|
+
* in the board's own field names: its fixed scope (`fixed`) — the
|
|
5
|
+
* board's only condition of its own, since a board has no `filter`.
|
|
6
6
|
* A fixed scope that is no tree adds nothing: admission reports it
|
|
7
7
|
* (`config.filter.invalid` at `fixed`).
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DashboardViewPanel, Issue, IssuePath, ViewDefinition } from '../model/index.js';
|
|
2
2
|
import { DefinitionLookup } from './declared.js';
|
|
3
3
|
/**
|
|
4
|
-
* An override of how the panel looks
|
|
4
|
+
* An override of how the panel looks. Only its shape is this
|
|
5
5
|
* kernel's to judge: whether a chart fits the view's result is the analysis
|
|
6
6
|
* kernel's, and the runtime asks it — an override that does not fit is
|
|
7
7
|
* dropped there with the same note, never refused (`presentation.ts`).
|
|
@@ -15,7 +15,7 @@ export declare function tabsOf(config: Pick<DashboardViewConfig, 'tabs'>): reado
|
|
|
15
15
|
/** Whether a key is one a panel's override of how it looks may set. */
|
|
16
16
|
export declare function isPresentationMember(key: string): key is keyof PanelPresentation;
|
|
17
17
|
/**
|
|
18
|
-
* The members a data panel's override of how it looks sets
|
|
18
|
+
* The members a data panel's override of how it looks sets, read as
|
|
19
19
|
* untrusted: none for a content panel, an override that is no object, or
|
|
20
20
|
* one that names only what no view has. Whether they fit its view is the
|
|
21
21
|
* runtime's to find out (`presentedConfig`).
|
|
@@ -20,23 +20,13 @@ export type PanelTime = (panel: DashboardViewPanel) => FieldDefinition | null |
|
|
|
20
20
|
* before that no longer follows taken off: one whose view says otherwise
|
|
21
21
|
* now or is not known, one on a panel that reads whole, and every one while
|
|
22
22
|
* the board has no single date filter. A wire auto-connect made is the
|
|
23
|
-
* author's and is never touched.
|
|
24
|
-
* nothing changes — a panel whose wires come out as they were is the same
|
|
23
|
+
* author's and is never touched. Itself when nothing changes — a panel whose wires come out as they were is the same
|
|
25
24
|
* panel.
|
|
26
25
|
*/
|
|
27
26
|
export declare function withTimeBindings(config: DashboardViewConfig, timeOf: PanelTime): DashboardViewConfig;
|
|
28
27
|
/**
|
|
29
28
|
* The board as it is stored: every wire derived from a view taken off —
|
|
30
|
-
* it is made again when read
|
|
29
|
+
* it is made again when read.
|
|
31
30
|
*/
|
|
32
31
|
export declare function storedTimeWires(config: DashboardViewConfig): DashboardViewConfig;
|
|
33
|
-
/**
|
|
34
|
-
* A board stored before its time wires were derived, read as it was then
|
|
35
|
-
* (D1): unmarked, so each panel over data not wired to every one of its
|
|
36
|
-
* date filters reads whole (`ignoresTime`) — nothing wires it on its own,
|
|
37
|
-
* whichever of those filters is left the board's one. Its wires are the
|
|
38
|
-
* author's, auto-connected ones included, and stay. Marked, so it happens
|
|
39
|
-
* once; a marked board as it is.
|
|
40
|
-
*/
|
|
41
|
-
export declare function withTimeIgnored(config: DashboardViewConfig): DashboardViewConfig;
|
|
42
32
|
//# sourceMappingURL=timeBindings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeBindings.d.ts","sourceRoot":"","sources":["../../src/dashboard/timeBindings.ts"],"names":[],"mappings":"AAaA
|
|
1
|
+
{"version":3,"file":"timeBindings.d.ts","sourceRoot":"","sources":["../../src/dashboard/timeBindings.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAErB,MAAM,mBAAmB,CAAC;AAK3B;;;;GAIG;AACH,wBAAgB,YAAY,CAC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,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,iBAAiB,EACxB,OAAO,GAAE,wBAA6B,GACrC,KAAK,EAAE,CAsDT;AAwFD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,GACd,KAAK,EAAE,CAqBT;AAyWD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,GAClB,OAAO,CAKT"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DashboardViewConfig, Issue, RuntimeLimits } from '../model/index.js';
|
|
2
2
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
3
|
/**
|
|
4
|
-
* A board's filters as the config declares them
|
|
4
|
+
* A board's filters as the config declares them: each named once in
|
|
5
5
|
* Wow's field syntax, and able to start where it says — a default its own kind reads, one value where it takes
|
|
6
6
|
* one, and a default at all where it is required, since a required filter
|
|
7
7
|
* never runs empty. The shape of every entry was checked before this runs.
|
|
8
8
|
*/
|
|
9
9
|
export declare function validateFilterFields(config: DashboardViewConfig, kinds: FieldKindRegistry, limits: RuntimeLimits): Issue[];
|
|
10
10
|
/**
|
|
11
|
-
* The board's time grouping
|
|
11
|
+
* The board's time grouping: at least one unit to offer, each a date
|
|
12
12
|
* unit Wow buckets by and offered once, and a default among them.
|
|
13
13
|
*/
|
|
14
14
|
export declare function validateTimeGrouping(config: DashboardViewConfig): Issue[];
|
|
@@ -54,7 +54,7 @@ export declare function filtersOnTab(panels: readonly {
|
|
|
54
54
|
* The board with one panel wired by hand to `panelField` for a filter, and
|
|
55
55
|
* every other data panel not yet wired to it connected on its own where its
|
|
56
56
|
* view has a field of that very name and of the filter's type — on any tab,
|
|
57
|
-
* over any data
|
|
57
|
+
* over any data. `connected` names the panels auto-connect wired,
|
|
58
58
|
* for the reader to be told how many and to undo them (`unbindPanels`). A
|
|
59
59
|
* search filter connects to every record panel's search box instead,
|
|
60
60
|
* whatever it is called (`autoField`).
|
|
@@ -80,8 +80,8 @@ export declare function unbindPanels(config: DashboardViewConfig, name: string,
|
|
|
80
80
|
}): DashboardViewConfig;
|
|
81
81
|
/**
|
|
82
82
|
* The fixed list the fields a filter is wired to offer, merged — what a
|
|
83
|
-
* category filter picks from when it has no list of its own (
|
|
84
|
-
*
|
|
83
|
+
* category filter picks from when it has no list of its own (「值从哪来:接上的字段」, as
|
|
84
|
+
* Metabase's category filter does): every
|
|
85
85
|
* option of every wired field that declares some (an `enum`'s), the same
|
|
86
86
|
* code once, under the label it first comes with. A reader picks 「待出库」
|
|
87
87
|
* and the filter holds `PENDING`, which is what the fields store.
|
|
@@ -93,8 +93,8 @@ export declare function unbindPanels(config: DashboardViewConfig, name: string,
|
|
|
93
93
|
*/
|
|
94
94
|
export declare function wiredOptions(config: DashboardViewConfig, name: string, fieldsOf: PanelFields): FieldOption[] | null;
|
|
95
95
|
/**
|
|
96
|
-
* The wires auto-connect gives a panel about to be added (
|
|
97
|
-
*
|
|
96
|
+
* The wires auto-connect gives a panel about to be added (以后新加的 面板同样自动接): for
|
|
97
|
+
* each filter it has no wire for, a field of its view
|
|
98
98
|
* with the name the filter is already wired through elsewhere — the most
|
|
99
99
|
* wired name first — or the filter's own name, and of the filter's type;
|
|
100
100
|
* for a search filter, the view's search box (`autoField`).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as e } from "./cartesianBrush-
|
|
1
|
+
import { o as e } from "./cartesianBrush-bgRuE6Ks.js";
|
|
2
2
|
import { BarChart as t, HeatmapChart as n, LineChart as r, PieChart as i, ScatterChart as a, TreemapChart as o } from "echarts/charts";
|
|
3
3
|
import { AriaComponent as s, BrushComponent as c, DataZoomInsideComponent as l, DataZoomSliderComponent as u, GraphicComponent as d, GridComponent as f, MarkAreaComponent as p, MarkLineComponent as m, MarkPointComponent as h, TooltipComponent as g, VisualMapContinuousComponent as _ } from "echarts/components";
|
|
4
4
|
import { ComponentModel as v, init as y, registerPreprocessor as b, use as x } from "echarts/core";
|
|
5
5
|
import { LabelLayout as S } from "echarts/features";
|
|
6
6
|
import { SVGRenderer as C } from "echarts/renderers";
|
|
7
|
-
|
|
7
|
+
// src/ui/charts/echarts.ts
|
|
8
8
|
var w = !1;
|
|
9
9
|
function T(...T) {
|
|
10
10
|
return w ||= (x([
|
|
@@ -29,7 +29,6 @@ function T(...T) {
|
|
|
29
29
|
C
|
|
30
30
|
]), b((t) => e(t, v.hasClass("toolbox"))), !0), y(...T);
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { T as init };
|
|
34
33
|
|
|
35
|
-
//# sourceMappingURL=echarts-
|
|
34
|
+
//# sourceMappingURL=echarts-rjTKpBsf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"echarts-
|
|
1
|
+
{"version":3,"file":"echarts-rjTKpBsf.js","names":["BarChart","HeatmapChart","LineChart","PieChart","ScatterChart","TreemapChart","AriaComponent","BrushComponent","DataZoomInsideComponent","DataZoomSliderComponent","GraphicComponent","GridComponent","VisualMapContinuousComponent","MarkAreaComponent","MarkLineComponent","MarkPointComponent","TooltipComponent","ComponentModel","init","initChart","registerPreprocessor","use","register","LabelLayout","SVGRenderer","withoutBrushToolbox","registered","args","Parameters","ReturnType","option","hasClass","initChart","withoutBrushToolbox","init$1","registered","init","args","use","BarChart","HeatmapChart","LineChart","PieChart","ScatterChart","TreemapChart","AriaComponent","BrushComponent","DataZoomInsideComponent","DataZoomSliderComponent","GraphicComponent","VisualMapContinuousComponent","GridComponent","MarkAreaComponent","MarkLineComponent","MarkPointComponent","TooltipComponent","LabelLayout","SVGRenderer","registerPreprocessor","option","ComponentModel"],"sources":["../src/ui/charts/echarts.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The chart library, registered piece by piece — the one module that imports\n * `echarts`, and the chunk `EChart.tsx` loads on first use rather than with\n * `/ui` (`loadCharts`).\n *\n * `echarts/core` ships nothing drawn; each chart type, component and the\n * renderer is a module of its own, so the bundle carries only what a family\n * asks for. SVG rather than canvas: the marks are elements, which a browser\n * story can measure, jsdom can render, and a colour can be read back from.\n * Label layout moves a line's value labels apart and keeps a pie's from\n * landing on each other (docs/design/decisions.md D21); which bar labels are\n * written is decided by the plot's size (`cartesianFit`). A funnel is bars\n * (`funnelOption`), and so is a waterfall (`waterfallOption`), so neither the\n * library's funnel nor anything more for a waterfall is registered; a\n * treemap is the library's own (`treemapOption`). A long category axis\n * zooms (`zoomOption`: the slider, and the inside zoom where\n * gestures are allowed); the aria component is registered for its decal\n * patterns alone (`withPatterns`) — its generated description stays off.\n * Over the marks, reference lines (markLine), target bands (markArea) and\n * the highest and lowest points (markPoint) — every number the kernel's\n * (`cartesianMarks`). A time axis is brushed along for the follow-up menu\n * (`brushOption`, D33 Q52); the toolbox the brush asks for is left out of\n * the option rather than registered (`withoutBrushToolbox`).\n */\nimport {\n BarChart,\n HeatmapChart,\n LineChart,\n PieChart,\n ScatterChart,\n TreemapChart,\n} from 'echarts/charts';\nimport {\n AriaComponent,\n BrushComponent,\n DataZoomInsideComponent,\n DataZoomSliderComponent,\n GraphicComponent,\n GridComponent,\n VisualMapContinuousComponent,\n MarkAreaComponent,\n MarkLineComponent,\n MarkPointComponent,\n TooltipComponent,\n} from 'echarts/components';\n// `use` registers modules with the library; it is not a React hook.\nimport {\n ComponentModel,\n init as initChart,\n registerPreprocessor,\n use as register,\n} from 'echarts/core';\nimport { LabelLayout } from 'echarts/features';\nimport { SVGRenderer } from 'echarts/renderers';\nimport { withoutBrushToolbox } from './cartesianBrush.js';\n\nlet registered = false;\n\n/**\n * The library's `init`, with every piece this package draws with registered\n * before the first chart is made.\n *\n * The registration lives inside the one export the package calls rather than\n * at the top of the module: the package declares no side effects but its\n * stylesheet (`package.json` `sideEffects`), so a production build keeps this\n * module's exports and drops a top-level call whose result nobody reads — the\n * built chunk carried `init` and no painter, and the first chart threw\n * 「lg[a] is not a constructor」 on the deployed Storybook (2026-09-23).\n * `scripts/verify-package.mjs` draws a chart through the built chunk so the\n * package cannot ship like that again.\n */\nexport function init(\n ...args: Parameters<typeof initChart>\n): ReturnType<typeof initChart> {\n if (!registered) {\n register([\n BarChart,\n HeatmapChart,\n LineChart,\n PieChart,\n ScatterChart,\n TreemapChart,\n AriaComponent,\n BrushComponent,\n DataZoomInsideComponent,\n DataZoomSliderComponent,\n GraphicComponent,\n VisualMapContinuousComponent,\n GridComponent,\n MarkAreaComponent,\n MarkLineComponent,\n MarkPointComponent,\n TooltipComponent,\n LabelLayout,\n SVGRenderer,\n ]);\n // After the brush's own, which injects the toolbox this one takes out.\n registerPreprocessor(option =>\n withoutBrushToolbox(option, ComponentModel.hasClass('toolbox')),\n );\n registered = true;\n }\n return initChart(...args);\n}\n"],"mappings":";;;;;;;AAqEA,IAAI0B,IAAa;AAejB,SAAgBR,EACd,GAAGS,GAC2B;CA6B9B,OA5BA,AA0BED,OAzBAJ,EAAS;EACPtB;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAC;EACAE;EACAD;EACAE;EACAC;EACAC;EACAC;EACAO;EACAC;CAAW,CACZ,GAEDJ,GAAqBU,MACnBL,EAAoBK,GAAQb,EAAec,SAAS,SAAS,CAAC,CAChE,GACa,KAERZ,EAAU,GAAGQ,CAAI;AAC1B"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { MapChart as e } from "echarts/charts";
|
|
2
2
|
import { GeoComponent as t } from "echarts/components";
|
|
3
3
|
import { registerMap as n, use as r } from "echarts/core";
|
|
4
|
-
|
|
4
|
+
// src/ui/charts/echartsGeo.ts
|
|
5
5
|
function i() {
|
|
6
6
|
r([e, t]);
|
|
7
7
|
}
|
|
8
8
|
function a(e, t) {
|
|
9
9
|
n(e, t);
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as register, a as registerGeoMap };
|
|
13
12
|
|
|
14
|
-
//# sourceMappingURL=echartsGeo-
|
|
13
|
+
//# sourceMappingURL=echartsGeo-qZv2ZF9e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"echartsGeo-
|
|
1
|
+
{"version":3,"file":"echartsGeo-qZv2ZF9e.js","names":["MapChart","GeoComponent","registerMap","use","registerModules","ChartMapGeoJson","register","registerGeoMap","name","geo","Parameters","register","MapChart","GeoComponent","registerGeoMap","name","geo"],"sources":["../src/ui/charts/echartsGeo.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The map family's chunk — the map series and its geo component —\n * registered the first time a map is drawn (`loadCharts('geo')`), and the\n * one way a host's geography reaches the library (`registerGeoMap`, called\n * by `loadChartMap`). It carries no map data of its own (D41).\n */\nimport { MapChart } from 'echarts/charts';\nimport { GeoComponent } from 'echarts/components';\n// `use` registers modules with the library; it is not a React hook.\nimport { registerMap, use as registerModules } from 'echarts/core';\nimport type { ChartMapGeoJson } from './maps.js';\n\nexport function register(): void {\n registerModules([MapChart, GeoComponent]);\n}\n\n/** A host's geography, under the name a chart spec draws it by. */\nexport function registerGeoMap(name: string, geo: ChartMapGeoJson): void {\n registerMap(name, geo as unknown as Parameters<typeof registerMap>[1]);\n}\n"],"mappings":";;;;AAyBA,SAAgBM,IAAiB;CAC/BF,EAAgB,CAACJ,GAAUC,CAAY,CAAC;AAC1C;AAGA,SAAgBM,EAAeC,GAAcC,GAA4B;CACvEP,EAAYM,GAAMC,CAAmD;AACvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SankeyChart as e, SunburstChart as t, TreeChart as n } from "echarts/charts";
|
|
2
2
|
import { use as r } from "echarts/core";
|
|
3
|
-
|
|
3
|
+
// src/ui/charts/echartsHierarchy.ts
|
|
4
4
|
function i() {
|
|
5
5
|
r([
|
|
6
6
|
e,
|
|
@@ -8,7 +8,6 @@ function i() {
|
|
|
8
8
|
n
|
|
9
9
|
]);
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { i as register };
|
|
13
12
|
|
|
14
|
-
//# sourceMappingURL=echartsHierarchy-
|
|
13
|
+
//# sourceMappingURL=echartsHierarchy-DHNP9W4v.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"echartsHierarchy-
|
|
1
|
+
{"version":3,"file":"echartsHierarchy-DHNP9W4v.js","names":["SankeyChart","SunburstChart","TreeChart","use","registerModules","register","register","SankeyChart","SunburstChart","TreeChart"],"sources":["../src/ui/charts/echartsHierarchy.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The hierarchy and flow families' chunk — a sunburst, a tree and a\n * sankey — registered the first time one of them is drawn\n * (`loadCharts('hierarchy')`), as `echartsStatistics.ts` is for its own.\n */\nimport { SankeyChart, SunburstChart, TreeChart } from 'echarts/charts';\n// `use` registers modules with the library; it is not a React hook.\nimport { use as registerModules } from 'echarts/core';\n\nexport function register(): void {\n registerModules([SankeyChart, SunburstChart, TreeChart]);\n}\n"],"mappings":";;;AAsBA,SAAgBK,IAAiB;CAC/BD,EAAgB;EAACJ;EAAaC;EAAeC;CAAS,CAAC;AACzD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BoxplotChart as e, CandlestickChart as t, FunnelChart as n, GaugeChart as r, ParallelChart as i, RadarChart as a } from "echarts/charts";
|
|
2
2
|
import { ParallelComponent as o, RadarComponent as s } from "echarts/components";
|
|
3
3
|
import { use as c } from "echarts/core";
|
|
4
|
-
|
|
4
|
+
// src/ui/charts/echartsStatistics.ts
|
|
5
5
|
function l() {
|
|
6
6
|
c([
|
|
7
7
|
e,
|
|
@@ -14,7 +14,6 @@ function l() {
|
|
|
14
14
|
s
|
|
15
15
|
]);
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { l as register };
|
|
19
18
|
|
|
20
|
-
//# sourceMappingURL=echartsStatistics-
|
|
19
|
+
//# sourceMappingURL=echartsStatistics-DCDWqvde.js.map
|