@ahoo-wang/wow-view-engine 10.0.0-beta.1 → 10.0.0-beta.3
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-ClYpI7gy.js → actions-CThpS7Yj.js} +2790 -2761
- 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-D1udIJPm.js → export-D6bnNjrA.js} +2 -2
- package/dist/{export-D1udIJPm.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 +212 -177
- 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 +9 -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 +24 -1
- 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 +5 -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 +16 -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/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/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/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 +4 -5
- 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.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 +60 -61
- 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.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/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/definition.d.ts +2 -0
- package/dist/ui/messages/definition.d.ts.map +1 -1
- package/dist/ui/messages/en.d.ts +413 -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/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.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/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/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/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 +13546 -13332
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-D08oR6Ke.js → viewEngine-DL-S0OAZ.js} +1962 -1662
- package/dist/viewEngine-DL-S0OAZ.js.map +1 -0
- package/package.json +18 -18
- package/dist/actions-ClYpI7gy.js.map +0 -1
- package/dist/react-Cqk337ck.js +0 -4202
- package/dist/react-Cqk337ck.js.map +0 -1
- package/dist/themes/azure.css +0 -126
- package/dist/themes/porcelain.css +0 -136
- package/dist/viewRuntimeTypes-D08oR6Ke.js.map +0 -1
|
@@ -27,7 +27,8 @@ export declare function PendingDot({
|
|
|
27
27
|
named,
|
|
28
28
|
/**
|
|
29
29
|
* `on-primary` for a dot drawn on a filled `primary` surface — the Apply
|
|
30
|
-
* button — where `primary` itself would be invisible
|
|
30
|
+
* button — where `primary` itself would be invisible: it takes the
|
|
31
|
+
* button's own ink.
|
|
31
32
|
*/
|
|
32
33
|
tone,
|
|
33
34
|
/** Layout only: where the dot is put, when it is put somewhere. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PendingDot.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/PendingDot.tsx"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6CAA6C,CAAC;AAE5E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC;AACzB;;;GAGG;AACH,KAAK;AACL
|
|
1
|
+
{"version":3,"file":"PendingDot.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/PendingDot.tsx"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6CAA6C,CAAC;AAE5E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC;AACzB;;;GAGG;AACH,KAAK;AACL;;;;GAIG;AACH,IAAgB;AAChB,mEAAmE;AACnE,SAAS,GACV,EAAE;IACD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAmBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/alerts.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,2EAA2E;AAC3E,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,CAIjD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB;;;
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/alerts.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,2EAA2E;AAC3E,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,CAIjD,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB;;;8EAmD7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,IAAI,EAAE,SAAS,CAAC;IAChB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,qBAahB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the surface's single-character keys act (`ViewHost`'s
|
|
3
|
+
* `characterKeys`, provided by `ViewEngineProvider`): 「/」 to the search
|
|
4
|
+
* box, J and K through a record's detail. Off, they are neither answered
|
|
5
|
+
* nor announced. On where no host says otherwise.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CharacterKeysContext: import('react').Context<boolean>;
|
|
8
|
+
/** Whether the single-character keys act where this is drawn. */
|
|
9
|
+
export declare function useCharacterKeys(): boolean;
|
|
10
|
+
//# sourceMappingURL=characterKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterKeys.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/characterKeys.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kCAAsB,CAAC;AAExD,iEAAiE;AACjE,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|
package/dist/ui/kit/display.d.ts
CHANGED
|
@@ -122,20 +122,6 @@ export declare function displayValue(value: unknown, field: DisplayField, contex
|
|
|
122
122
|
* no id, or a context without `labels`.
|
|
123
123
|
*/
|
|
124
124
|
export declare function referenceText(value: unknown, field: Pick<DisplayField, 'remote'>, context: Pick<DisplayContext, 'labels'>): string | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* A time as a table cell writes it: short, and numeric where the language
|
|
127
|
-
* writes it so — `09-17 21:19` in Chinese, `Sep 17, 9:19 PM` in English —
|
|
128
|
-
* with the year only when it is not the current one (`2025-09-17 21:19`,
|
|
129
|
-
* `Sep 17, 2025, 9:19 PM`), and the seconds only when the column asks for
|
|
130
|
-
* them (`timePrecision: 'second'`). `undefined` for anything that is not a
|
|
131
|
-
* moment read as a `datetime`, or a day that names no time of day, which
|
|
132
|
-
* reads as `displayValue` says.
|
|
133
|
-
*
|
|
134
|
-
* The whole time, seconds and year included, is what `displayValue` says,
|
|
135
|
-
* and the cell carries it as its title (second review R2-23: two columns of
|
|
136
|
-
* 「2026年9月17日 21:19:08」 were 360px of a 1440px table).
|
|
137
|
-
*/
|
|
138
|
-
export declare function tableTime(value: unknown, field: DisplayField, context: DisplayContext): string | undefined;
|
|
139
125
|
/**
|
|
140
126
|
* What a summary function is called under a column of these values.
|
|
141
127
|
*
|
|
@@ -202,23 +188,6 @@ export declare function columnTitle(column: {
|
|
|
202
188
|
* percentiles where the caller holds no view.
|
|
203
189
|
*/
|
|
204
190
|
estimated?: readonly string[]): string;
|
|
205
|
-
/**
|
|
206
|
-
* One day as `2026-09-20`, on the surface's clock.
|
|
207
|
-
*
|
|
208
|
-
* `en-CA` is what writes a date in that order whatever the host's language,
|
|
209
|
-
* and the calendar is pinned to the Gregorian one: a file named for a Hijri
|
|
210
|
-
* day would sort beside nothing and name a day the data is not filed under.
|
|
211
|
-
* It is the zone the surface shows times in, so the day in the file's name is
|
|
212
|
-
* the day its rows read as.
|
|
213
|
-
*/
|
|
214
|
-
export declare function isoDay(date: Date, context: DisplayContext): string;
|
|
215
|
-
/**
|
|
216
|
-
* When something was read, as a reader glances at it (「更新于 10:32」): the
|
|
217
|
-
* time of day on the surface's clock, in its language, and the date before
|
|
218
|
-
* it once that was not today — a board left open overnight must not pass
|
|
219
|
-
* yesterday's numbers off as this morning's.
|
|
220
|
-
*/
|
|
221
|
-
export declare function readingTime(at: Date, now: Date, context: DisplayContext): string;
|
|
222
191
|
/**
|
|
223
192
|
* The bucket of records with no value, in the surface's words — 「(空)」 —
|
|
224
193
|
* when `value` is the engine's sentinel key for a group that keeps one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/display.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/display.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AggregationDateUnitName, EpochTimeUnit } from '../../model/index.js';
|
|
2
|
+
import { DisplayContext, DisplayField } from './display.js';
|
|
3
|
+
/**
|
|
4
|
+
* A time and the zone to show it in. An instant shows in `timeZone`. A
|
|
5
|
+
* wall-clock string is read as if at UTC and shown in UTC, which prints it as
|
|
6
|
+
* written whatever zone is in force: `2026-09-18` stays the 18th in Los
|
|
7
|
+
* Angeles, and `09:30` stays 09:30 in a browser on another clock.
|
|
8
|
+
*
|
|
9
|
+
* `dayOnly` says the string carried no time of day, which is a meaning and
|
|
10
|
+
* not a gap: a bound written as a calendar day stands for the whole of it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readTime(value: unknown, timeZone: string | undefined, unit?: EpochTimeUnit): {
|
|
13
|
+
date: Date;
|
|
14
|
+
timeZone: string | undefined;
|
|
15
|
+
dayOnly?: true;
|
|
16
|
+
} | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* A time as a table cell writes it: short, and numeric where the language
|
|
19
|
+
* writes it so — `09-17 21:19` in Chinese, `Sep 17, 9:19 PM` in English —
|
|
20
|
+
* with the year only when it is not the current one (`2025-09-17 21:19`,
|
|
21
|
+
* `Sep 17, 2025, 9:19 PM`), and the seconds only when the column asks for
|
|
22
|
+
* them (`timePrecision: 'second'`). `undefined` for anything that is not a
|
|
23
|
+
* moment read as a `datetime`, or a day that names no time of day, which
|
|
24
|
+
* reads as `displayValue` says.
|
|
25
|
+
*
|
|
26
|
+
* The whole time, seconds and year included, is what `displayValue` says,
|
|
27
|
+
* and the cell carries it as its title (second review R2-23: two columns of
|
|
28
|
+
* 「2026年9月17日 21:19:08」 were 360px of a 1440px table).
|
|
29
|
+
*/
|
|
30
|
+
export declare function tableTime(value: unknown, field: DisplayField, context: DisplayContext): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* One day as `2026-09-20`, on the surface's clock.
|
|
33
|
+
*
|
|
34
|
+
* `en-CA` is what writes a date in that order whatever the host's language,
|
|
35
|
+
* and the calendar is pinned to the Gregorian one: a file named for a Hijri
|
|
36
|
+
* day would sort beside nothing and name a day the data is not filed under.
|
|
37
|
+
* It is the zone the surface shows times in, so the day in the file's name is
|
|
38
|
+
* the day its rows read as.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isoDay(date: Date, context: DisplayContext): string;
|
|
41
|
+
/**
|
|
42
|
+
* When something was read, as a reader glances at it (「更新于 10:32」): the
|
|
43
|
+
* time of day on the surface's clock, in its language, and the date before
|
|
44
|
+
* it once that was not today — a board left open overnight must not pass
|
|
45
|
+
* yesterday's numbers off as this morning's.
|
|
46
|
+
*/
|
|
47
|
+
export declare function readingTime(at: Date, now: Date, context: DisplayContext): string;
|
|
48
|
+
/**
|
|
49
|
+
* A bucket key as the bucket it starts: a day, a month, a quarter.
|
|
50
|
+
*
|
|
51
|
+
* Years, quarters and months are cut on the Gregorian calendar, so they are
|
|
52
|
+
* named in it whatever calendar the language would pick: a Persian or a Hijri
|
|
53
|
+
* month would name a period the bucket does not cover. The quarter is counted in digits a
|
|
54
|
+
* number can be read from, not in the language's numerals.
|
|
55
|
+
*/
|
|
56
|
+
export declare function bucket(date: Date, unit: AggregationDateUnitName, timeZone: string | undefined, locale: string | undefined): string;
|
|
57
|
+
export declare function format(date: Date, locale: string | undefined, options: Intl.DateTimeFormatOptions): string;
|
|
58
|
+
//# sourceMappingURL=displayTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"displayTime.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/displayTime.ts"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,CAAC,EAAE,aAAa,GACnB;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAE,GAAG,SAAS,CAU1E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,GACtB,MAAM,GAAG,SAAS,CA+BpB;AA4CD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,CAQlE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,EAAE,EAAE,IAAI,EACR,GAAG,EAAE,IAAI,EACT,OAAO,EAAE,cAAc,GACtB,MAAM,CAOR;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,uBAAuB,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,MAAM,CAiCR;AAQD,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,qBAAqB,GAClC,MAAM,CAER"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Card } from '../components/card.js';
|
|
3
|
+
/**
|
|
4
|
+
* The frames this package draws round what it shows, and the marks on them:
|
|
5
|
+
* the focus rings a row, a card and a panel wear (`FOCUS_ROW`, `FOCUS_CARD`,
|
|
6
|
+
* `FOCUS_PANEL`), how a card stands off its ground (`CARD_LIFT`), the
|
|
7
|
+
* dashboard's three — a panel's card with its warning edge, the edge a
|
|
8
|
+
* filter chip's controls share, the band a board in a mode wears — the
|
|
9
|
+
* result's frame and the recipes a kind's parts wear inside it, the analysis
|
|
10
|
+
* tray's rows and cards, a chart picker's tile, and a long value read whole.
|
|
11
|
+
*
|
|
12
|
+
* Each is a recipe or a thin wrapper, as `variants.tsx` says of all of them
|
|
13
|
+
* (D16 ruling 8); `test/variants.test.tsx` holds their class recipes.
|
|
14
|
+
*/
|
|
15
|
+
import type * as React from 'react';
|
|
16
|
+
/**
|
|
17
|
+
* The mark on a table row the keyboard is on (the record rows and the
|
|
18
|
+
* analysis result's rows are each one Tab stop, `roving.ts`).
|
|
19
|
+
*
|
|
20
|
+
* Drawn on the row's cells, not the row: a cell paints over its row, and
|
|
21
|
+
* a pinned cell is a layer of its own, so a row's outline is hidden under
|
|
22
|
+
* the very cells it is meant to go round — the browser's own is a faint
|
|
23
|
+
* 1px line nobody sees. Each cell takes the hover fill and an inset edge
|
|
24
|
+
* above and below, the first and the last close the sides, and together
|
|
25
|
+
* they read as one ring round the row.
|
|
26
|
+
*
|
|
27
|
+
* The edge is the recipe every control wears (`Button`, `FOCUS_CARD`): a
|
|
28
|
+
* `--ring` line at full strength, which holds the 3:1 WCAG 1.4.11 asks
|
|
29
|
+
* of a focus indicator, and the half-strength halo inside it as emphasis.
|
|
30
|
+
* It is `focus-width` wide (1px unset, the registry's edge; D76), so a
|
|
31
|
+
* theme that owes 2px (WCAG 2.4.13) gets 2px on a row too. It used to be
|
|
32
|
+
* the halo alone, 2px of `--ring` at 50%, which measured
|
|
33
|
+
* 1.74:1 on the light page and 2.38:1 on the dark one (`FocusMarks*` in
|
|
34
|
+
* `stories/view-engine/ThemeTokens.test.stories.tsx`; phase 5, 5A). The
|
|
35
|
+
* full-strength shadows come first, so they are painted over the halo.
|
|
36
|
+
*/
|
|
37
|
+
export declare const FOCUS_ROW: string;
|
|
38
|
+
/**
|
|
39
|
+
* The mark on a card the keyboard is on — the one every control wears: a
|
|
40
|
+
* `--ring` edge at full strength, `focus-width` wide, `focus-offset` from
|
|
41
|
+
* the card's edge (a theme may pull it onto the edge with a negative
|
|
42
|
+
* offset), and the theme's halo outside it
|
|
43
|
+
* (`--_fve-focus-halo`, none unless a theme draws one), which takes the
|
|
44
|
+
* place of the card's own faint ring while it is focused. A halo alone
|
|
45
|
+
* measured 1.77:1 on the light page and 2.15:1 on the dark one (phase 5,
|
|
46
|
+
* 5A; `FocusMarks*`), which is why the edge is the mark.
|
|
47
|
+
*/
|
|
48
|
+
export declare const FOCUS_CARD: string;
|
|
49
|
+
/**
|
|
50
|
+
* The mark on a dashboard panel whose body — the region that scrolls, a Tab
|
|
51
|
+
* stop of its own (U-03) — the keyboard is on, drawn on the card round it:
|
|
52
|
+
* `FOCUS_CARD`'s edge and halo, worn while the body is focused. The body is
|
|
53
|
+
* as wide as the card that clips it (`overflow-hidden`), so a ring outside
|
|
54
|
+
* the body lost both sides and left a grey hairline at 1.77:1; turned inward
|
|
55
|
+
* it covered the body's first line — the month over a metric card, a table's
|
|
56
|
+
* head — 4px deep (Storybook review P2). The card clips its children, not
|
|
57
|
+
* its own outline, and its padding keeps the mark off every word.
|
|
58
|
+
*/
|
|
59
|
+
export declare const FOCUS_PANEL: string;
|
|
60
|
+
/**
|
|
61
|
+
* How a card stands off what it sits on, in the theme's words: the ring in
|
|
62
|
+
* `--_fve-card-edge` (the registry's `ring-foreground/10` unset) and the shadow
|
|
63
|
+
* `--_fve-card-shadow` (none unset). Every card on the surface wears it — a
|
|
64
|
+
* board's panels, the record cards and their skeletons.
|
|
65
|
+
*/
|
|
66
|
+
export declare const CARD_LIFT = "fve:ring-(color:--_fve-card-edge) fve:shadow-(--_fve-card-shadow)";
|
|
67
|
+
/**
|
|
68
|
+
* A dashboard panel's frame: the registry's card, whose edge is a ring
|
|
69
|
+
* (`ring-1 ring-foreground/10`), not a border — so a panel carrying a
|
|
70
|
+
* warning takes the warning colour on that ring (U-04). It used to ask for
|
|
71
|
+
* `border-warning`, which painted a border 0px wide: the state was on the
|
|
72
|
+
* element and nowhere on the screen.
|
|
73
|
+
*
|
|
74
|
+
* The ring's colour and the card's shadow are the theme's (`--_fve-card-edge`,
|
|
75
|
+
* `--_fve-card-shadow`; themes.md 7): the registry's hairline and no shadow
|
|
76
|
+
* unless a theme lifts its cards instead. A warning still takes the ring,
|
|
77
|
+
* one variant over the theme's colour.
|
|
78
|
+
*/
|
|
79
|
+
export declare function PanelCard({ className, ...props }: React.ComponentProps<typeof Card>): React.JSX.Element;
|
|
80
|
+
/**
|
|
81
|
+
* The one edge a few borderless controls share — a board filter's chip
|
|
82
|
+
* (the name, the value control, ✕), a locked filter's reading, and the
|
|
83
|
+
* same controls in the filter's settings (U-06). Nothing inside draws an
|
|
84
|
+
* edge (D12: the controls are the condition editor's pill controls), so
|
|
85
|
+
* this edge *is* the control's, and it is `--input`, the edge that holds
|
|
86
|
+
* 3:1 (1.4.11), not `--border`, which measured 1.22:1 on the chip's fill.
|
|
87
|
+
* `data-idle` — a filter reaching nothing on the tab on screen — is
|
|
88
|
+
* quieter by its frame, dashed on the page's ground, never by fading the
|
|
89
|
+
* words.
|
|
90
|
+
*
|
|
91
|
+
* It is the theme's control fill and edge (`--_fve-control`,
|
|
92
|
+
* `--_fve-control-edge`; themes.md 7): a chip whose controls are picked — a
|
|
93
|
+
* select names itself by its words and its chevron — needs no edge to be
|
|
94
|
+
* found (1.4.11 asks a boundary of none). A chip holding a text box keeps
|
|
95
|
+
* the `--input` edge whatever the theme says: a field typed into is found
|
|
96
|
+
* by its boundary.
|
|
97
|
+
*/
|
|
98
|
+
export declare function ControlFrame({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
99
|
+
declare const modeBarVariants: (props?: ({
|
|
100
|
+
size?: "bar" | "strip" | null | undefined;
|
|
101
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
102
|
+
/**
|
|
103
|
+
* A line saying the board is in a mode — being built, a filter being
|
|
104
|
+
* wired — and one panel's strip in that mode: a muted band with an edge,
|
|
105
|
+
* written once here rather than twice at the call sites (U-06).
|
|
106
|
+
*/
|
|
107
|
+
export declare function ModeBar({ size, className, ...props }: React.ComponentProps<'div'> & VariantProps<typeof modeBarVariants>): React.JSX.Element;
|
|
108
|
+
/**
|
|
109
|
+
* The frame round a result, and the padding it gives the two parts the
|
|
110
|
+
* shell itself puts in it (–Ⅶ).
|
|
111
|
+
*
|
|
112
|
+
* **It is a band, not a card** (2026-09-23, the user's call on the v16
|
|
113
|
+
* review, overriding the earlier "keep the result's border"): one rule
|
|
114
|
+
* across its top, and its sides and bottom are the work column's own edges
|
|
115
|
+
* — it bleeds through `main`'s 16px padding (`-mx-4 -mb-4`, the same bleed
|
|
116
|
+
* the opening skeleton's title rule uses). The card was there to hold the
|
|
117
|
+
* toolbar, the rows and the pagination together while the block could end
|
|
118
|
+
* mid-page; since the workbench fills its host and the block reaches the
|
|
119
|
+
* bottom (`styles.css`, "A workbench fills its container"), its bottom and side edges only redrew the
|
|
120
|
+
* workbench's own, one frame inside another, and cost 32px of width and
|
|
121
|
+
* 16px of height the rows could have. The rule on top is the one line still
|
|
122
|
+
* saying something: where the conditions end and the result begins.
|
|
123
|
+
*
|
|
124
|
+
* The frame has no padding, no ground and no row gap of its own: the rows
|
|
125
|
+
* have to run to its edge, so the space inside belongs to each part — the
|
|
126
|
+
* toolbar is its first row, at the column's 16px so its controls
|
|
127
|
+
* line up with the conditions above, and with no rule under it: the
|
|
128
|
+
* table's header band is what parts it from the rows (2026-11-12 review; a
|
|
129
|
+
* rule there was the third line above the first row); a callout landing under that keeps a
|
|
130
|
+
* margin of its own. Those two are `WorkbenchShell`'s own slots
|
|
131
|
+
* (`toolbar`, `strips`), named the same whichever kind is open, so they
|
|
132
|
+
* stay with the frame.
|
|
133
|
+
*
|
|
134
|
+
* What does **not** stay with it is one kind's furniture. Until the
|
|
135
|
+
* 2026-09-22 review all five recipes sat in `ResultBlock` as descendant
|
|
136
|
+
* selectors, and three of them named slots only a record view has —
|
|
137
|
+
* `record-pagination`, `record-empty`, `record-cards`. D18-1 merges the
|
|
138
|
+
* record and analysis workbenches behind one shell in phase 2 and that
|
|
139
|
+
* shell is meant to grow no `if` per kind, so those three moved out to
|
|
140
|
+
* `RESULT_SLOTS` below and each kind now hands the frame the recipes its
|
|
141
|
+
* own `result` slot needs (`ResultBlock.slots`).
|
|
142
|
+
*/
|
|
143
|
+
export declare const resultFrameChrome: string;
|
|
144
|
+
/**
|
|
145
|
+
* What a kind's own parts wear inside that frame, one recipe per part.
|
|
146
|
+
*
|
|
147
|
+
* Each is a literal class string rather than a part composed with a slot
|
|
148
|
+
* name, because Tailwind reads the source: a variant built at runtime is a
|
|
149
|
+
* variant no stylesheet has.
|
|
150
|
+
*/
|
|
151
|
+
declare const RESULT_SLOTS: {
|
|
152
|
+
/**
|
|
153
|
+
* The frame's last row — ruled off above and on its own grey, so how
|
|
154
|
+
* many rows there are and how to reach the next of them read as the
|
|
155
|
+
* frame's footer rather than as one more row of the result: the record
|
|
156
|
+
* view's pagination, and the analysis result's 「正在显示 N 组,耗时 X
|
|
157
|
+
* 秒」. A kind that grows another names it here, beside these.
|
|
158
|
+
*/
|
|
159
|
+
readonly caption: string;
|
|
160
|
+
/** A query that matched nothing, in air of its own rather than to the edge. */
|
|
161
|
+
readonly empty: "fve:[&>[data-slot=record-empty]]:my-6";
|
|
162
|
+
/** Cards keep the column's padding; a table is what runs to the edge. */
|
|
163
|
+
readonly cards: "fve:[&>[data-slot=record-cards]]:p-4";
|
|
164
|
+
/** A host command's line sits where the query strip does, and as it does. */
|
|
165
|
+
readonly bulk: "fve:[&>[data-slot=bulk-status]]:mx-4 fve:[&>[data-slot=bulk-status]]:my-3";
|
|
166
|
+
};
|
|
167
|
+
/** One part of a kind's result, by the job it does inside the frame. */
|
|
168
|
+
type ResultSlot = keyof typeof RESULT_SLOTS;
|
|
169
|
+
/** One kind's slot recipe, for `ResultBlock.slots`. */
|
|
170
|
+
export declare function resultSlots(...slots: readonly ResultSlot[]): string;
|
|
171
|
+
/**
|
|
172
|
+
* One row of the analysis tray: a named `section` whose head is the
|
|
173
|
+
* analyst's term — 展开, 指标, 维度, 结果, 范围 — with the ⓘ that explains it
|
|
174
|
+
* (`tip`) at its top-right, then what the row holds, then, at the row's
|
|
175
|
+
* end, what belongs to the row as a whole (`end`: the counting unit, the
|
|
176
|
+
* conditions' grammar). From `md` up the head is a column of its own — the
|
|
177
|
+
* row is a subgrid of the tray's two columns, the first as wide as the
|
|
178
|
+
* widest term — so the terms line up down the tray, the rows read as a
|
|
179
|
+
* form, and no row gives up more width than its longest term needs;
|
|
180
|
+
* narrower, the head sits over the row. The row never draws a box of its own,
|
|
181
|
+
* because the tray is the one surface and a box in a box is a frame around
|
|
182
|
+
* a frame.
|
|
183
|
+
*/
|
|
184
|
+
export declare function EditorSlot({ name, title, tip, end, className, children, }: {
|
|
185
|
+
name: string;
|
|
186
|
+
title: string;
|
|
187
|
+
/** The ⓘ beside the term, a control of its own (`TermTip`). */
|
|
188
|
+
tip?: React.ReactNode;
|
|
189
|
+
/** What stands at the row's end. */
|
|
190
|
+
end?: React.ReactNode;
|
|
191
|
+
className?: string;
|
|
192
|
+
children?: React.ReactNode;
|
|
193
|
+
}): React.JSX.Element;
|
|
194
|
+
/**
|
|
195
|
+
* One card in a slot — a dimension, a metric: a bordered row on the page's
|
|
196
|
+
* ground, so it stands off the tray's tint, its controls in a line and the
|
|
197
|
+
* remove control pushed to the end.
|
|
198
|
+
*/
|
|
199
|
+
export declare function EditorCard({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
200
|
+
/**
|
|
201
|
+
* One tile of the chart picker: an icon over a word on the
|
|
202
|
+
* page's ground, the chosen one ringed, an unavailable one framed with its
|
|
203
|
+
* reason under it, and the recommended one marked — the mark centred across
|
|
204
|
+
* the bottom edge, where it has the tile's whole width and covers neither the
|
|
205
|
+
* icon nor the name. The colours and states are here so the picker stays
|
|
206
|
+
* markup.
|
|
207
|
+
*
|
|
208
|
+
* **Unavailable is said by the frame, not by fading.** The tile used to
|
|
209
|
+
* wear `opacity-60` over `text-muted-foreground`, which put the reason line
|
|
210
|
+
* — the one thing such a tile has to say — at 2.20:1 on the panel's ground,
|
|
211
|
+
* far under the 4.5:1 axe asks of it. So the state is now the dashed border
|
|
212
|
+
* and the muted fill, which carry no text through them, and the words keep
|
|
213
|
+
* their own contrast: the same call `optionControls.tsx` records for
|
|
214
|
+
* `OptionsSection` — secondary is said by weight and by frame, never by
|
|
215
|
+
* being paler than it can be read.
|
|
216
|
+
*
|
|
217
|
+
* **What it holds stands in its middle**, and the tile is at least 64px
|
|
218
|
+
* tall: a row is as tall as its tallest tile, and the others centre their
|
|
219
|
+
* icon and name in that height rather than leaving the lower half blank
|
|
220
|
+
* (2026-09-23 audit); the floor keeps the name clear of the mark hanging
|
|
221
|
+
* across the bottom edge.
|
|
222
|
+
*/
|
|
223
|
+
export declare function ChartTile({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
|
|
224
|
+
/**
|
|
225
|
+
* A long value read whole — an error message, a stack trace — in a record's
|
|
226
|
+
* detail. Monospaced and kept as written: a stack trace is lines, and the
|
|
227
|
+
* author's line breaks are the reading. It scrolls inside itself past a
|
|
228
|
+
* screenful, so one trace does not push every other field off the panel,
|
|
229
|
+
* and it can be scrolled from the keyboard because it is focusable.
|
|
230
|
+
*/
|
|
231
|
+
export declare function LongText({ className, ...props }: React.ComponentProps<'pre'>): React.JSX.Element;
|
|
232
|
+
export {};
|
|
233
|
+
//# sourceMappingURL=frames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frames.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/frames.tsx"],"names":[],"mappings":"AAaA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS,QAUrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,QAGtB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,QAGvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,sEAC+C,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,qBAOnC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAa7B;AAED,QAAA,MAAM,eAAe;;8EAUnB,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,qBAIpE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,iBAAiB,QAGiD,CAAC;AAEhF;;;;;;GAMG;AACH,QAAA,MAAM,YAAY;IAChB;;;;;;OAMG;;IAIH,+EAA+E;;IAE/E,yEAAyE;;IAEzE,6EAA6E;;CAErE,CAAC;AAEX,wEAAwE;AACxE,KAAK,UAAU,GAAG,MAAM,OAAO,YAAY,CAAC;AAE5C,uDAAuD;AACvD,wBAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CAEnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,GAAG,EACH,GAAG,EACH,SAAS,EACT,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,oCAAoC;IACpC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,qBAoDA;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAY7B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,qBAmBhC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAa5E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A popup that closes does not take the keyboard back from where the reader
|
|
3
|
+
* went while it was closing (`useKeptFocus`): the one behaviour every popup
|
|
4
|
+
* here shares about focus, used by the popups in `popups.tsx`.
|
|
5
|
+
*/
|
|
6
|
+
import type * as React from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* What a popup is given for `finalFocus`, and the ref it reads it with: a
|
|
9
|
+
* function or a ref is asked only while the focus is still the popup's to
|
|
10
|
+
* give (`focusMovedOn`); `false` passes as it is.
|
|
11
|
+
*
|
|
12
|
+
* Base UI keeps a focus that moved on where it went when `finalFocus` is
|
|
13
|
+
* `true`, but it takes a function's answer — or a ref's element — as
|
|
14
|
+
* explicit and sends the focus there regardless. A popup hands the focus
|
|
15
|
+
* back only once its exit animation ends, so a press on another control in
|
|
16
|
+
* that time had the focus pulled out from under it: a select opened right
|
|
17
|
+
* after picking a dimension closed again (#3547, a menu). A dialog, a side
|
|
18
|
+
* panel and a popover close the same way and take the same kind of
|
|
19
|
+
* `finalFocus` — the board's dialogs hand the keyboard to a panel's 「⋯」,
|
|
20
|
+
* the record's detail to its row, the field list to the condition it added —
|
|
21
|
+
* so each of them keeps a focus that moved on, too.
|
|
22
|
+
*
|
|
23
|
+
* And each notes where it was opened from (`rememberOpener`), so a closing
|
|
24
|
+
* whose opener — or whatever the caller named — has left the page lands
|
|
25
|
+
* near it rather than on `<body>` (`handBack`, WCAG 2.4.3). Nothing given is
|
|
26
|
+
* `true`, the popup's own default, except where `handsBack` is off: a
|
|
27
|
+
* submenu hands nothing back by default, its menu holds the keyboard.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useKeptFocus<Close>(finalFocus: boolean | React.RefObject<HTMLElement | null> | ((closeType: Close) => boolean | HTMLElement | null | void) | undefined,
|
|
30
|
+
/** The caller's own ref on the popup, which is given the element too. */
|
|
31
|
+
outer: React.Ref<HTMLDivElement> | undefined, handsBack?: boolean): {
|
|
32
|
+
ref: React.RefCallback<HTMLDivElement>;
|
|
33
|
+
finalFocus?: boolean | ((closeType: Close) => boolean | HTMLElement | null | void);
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=keptFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keptFocus.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/keptFocus.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAChC,UAAU,EACN,OAAO,GACP,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GACnC,CAAC,CAAC,SAAS,EAAE,KAAK,KAAK,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,CAAC,GAC3D,SAAS;AACb,yEAAyE;AACzE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,EAC5C,SAAS,UAAO,GACf;IACD,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IACvC,UAAU,CAAC,EACT,OAAO,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,KAAK,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;CACzE,CAyBA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ComboboxChips, ComboboxInput } from '../components/combobox.js';
|
|
2
|
+
import { Input } from '../components/input.js';
|
|
3
|
+
import { SelectTrigger } from '../components/select.js';
|
|
4
|
+
/**
|
|
5
|
+
* The controls inside a condition pill, which draw no chrome of their own
|
|
6
|
+
* (D12: one border per condition, and the pill *is* the field): its text box,
|
|
7
|
+
* its select, its chip box and its combobox's text box, each the vendored
|
|
8
|
+
* component under `controlChromeVariants`. `chrome="box"` gives a control its
|
|
9
|
+
* registry edge back for the few places one is borrowed outside a pill.
|
|
10
|
+
*
|
|
11
|
+
* A thin wrapper beside each component, as `variants.tsx` says of all of
|
|
12
|
+
* them (D16 ruling 8); `test/variants.test.tsx` holds their class recipes.
|
|
13
|
+
*/
|
|
14
|
+
import type * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* Whether a control draws its own box, or leaves it to what holds it.
|
|
17
|
+
*
|
|
18
|
+
* One border per condition (D12): a condition pill *is* the field, and the
|
|
19
|
+
* operator select and the value control inside it draw no edge, no fill and
|
|
20
|
+
* no shadow of their own, showing focus by the ring alone. Before D16 that
|
|
21
|
+
* was written as `[&_[data-slot=input]]:border-transparent …` on the pill,
|
|
22
|
+
* reaching two levels down into two vendored components by the slot names
|
|
23
|
+
* they happen to ship with — the most upstream-fragile line in the package,
|
|
24
|
+
* and silently undone by any registry rename. It is the control's own class
|
|
25
|
+
* now.
|
|
26
|
+
*/
|
|
27
|
+
export declare const controlChromeVariants: (props?: ({
|
|
28
|
+
chrome?: "none" | "box" | null | undefined;
|
|
29
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
30
|
+
/**
|
|
31
|
+
* What a control inside a pill takes on top of the vendored component's,
|
|
32
|
+
* written out rather than read off the class recipe so the public type does
|
|
33
|
+
* not follow it; `test/variants.test.tsx` holds the two in step.
|
|
34
|
+
*/
|
|
35
|
+
export interface ControlChromeProps {
|
|
36
|
+
/** `none`, the default: no edge, fill or shadow. `box`: the registry's. */
|
|
37
|
+
chrome?: 'box' | 'none' | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The text box of a condition pill.
|
|
41
|
+
*
|
|
42
|
+
* `chrome="box"` asks for the registry's own edge back, for the one place
|
|
43
|
+
* this control is borrowed outside a pill: the analysis editor's row limit,
|
|
44
|
+
* which stands on a toolbar with nothing around it to be the field.
|
|
45
|
+
*/
|
|
46
|
+
export declare function PillInput({ chrome, className, ...props }: React.ComponentProps<typeof Input> & ControlChromeProps): React.JSX.Element;
|
|
47
|
+
/**
|
|
48
|
+
* The select of a condition pill — its operator, and the values that are
|
|
49
|
+
* picked rather than typed.
|
|
50
|
+
*
|
|
51
|
+
* `chrome="box"` is the group block's and/or, which sits on the group's own
|
|
52
|
+
* header rather than inside a pill and is the only edge it has.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* The chip box of a condition pill: the chosen candidates and the search
|
|
56
|
+
* box among them, borderless like every other control inside a pill.
|
|
57
|
+
*/
|
|
58
|
+
export declare function PillChips({ chrome, className, ...props }: React.ComponentProps<typeof ComboboxChips> & ControlChromeProps): React.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* The text box of a condition pill that also offers a list — a value typed
|
|
61
|
+
* or picked from the field's own values (`inputs/suggested.tsx`). The
|
|
62
|
+
* registry's `ComboboxInput` is an `InputGroup` with an edge of its own; in a
|
|
63
|
+
* pill the edge is the pill's (D12), so it is taken off here as it is off
|
|
64
|
+
* `PillInput`. Its chevron is left off too: a press on the box opens the
|
|
65
|
+
* list already, and the chevron would be one more unnamed Tab stop in every
|
|
66
|
+
* pill — the placeholder says there is something to pick.
|
|
67
|
+
*/
|
|
68
|
+
export declare function PillComboboxInput({ chrome, className, ...props }: React.ComponentProps<typeof ComboboxInput> & ControlChromeProps): React.JSX.Element;
|
|
69
|
+
export declare function PillSelectTrigger({ chrome, className, ...props }: React.ComponentProps<typeof SelectTrigger> & ControlChromeProps): React.JSX.Element;
|
|
70
|
+
//# sourceMappingURL=pills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../../src/ui/kit/pills.tsx"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;8EAQhC,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,2EAA2E;IAC3E,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG,kBAAkB,qBAOzD;AAED;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG,kBAAkB,qBAWjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG,kBAAkB,qBAQjE;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG,kBAAkB,qBAOjE"}
|