@ahoo-wang/wow-view-engine 9.7.0 → 9.9.0
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 +21 -1029
- package/README.zh-CN.md +21 -1024
- package/dist/{actions-HgK33Jzg.js → actions-C0tWfkL5.js} +2645 -2198
- package/dist/actions-C0tWfkL5.js.map +1 -0
- package/dist/analysis/buckets.d.ts +20 -0
- package/dist/analysis/buckets.d.ts.map +1 -1
- package/dist/analysis/capability.d.ts +13 -0
- package/dist/analysis/capability.d.ts.map +1 -1
- package/dist/analysis/cartesian.d.ts +6 -0
- package/dist/analysis/cartesian.d.ts.map +1 -1
- package/dist/analysis/chart.d.ts +17 -2
- package/dist/analysis/chart.d.ts.map +1 -1
- package/dist/analysis/chartRows.d.ts.map +1 -1
- package/dist/analysis/chartShapes.d.ts +2 -2
- package/dist/analysis/chartShapes.d.ts.map +1 -1
- package/dist/analysis/compile.d.ts.map +1 -1
- package/dist/analysis/derived.d.ts +21 -5
- package/dist/analysis/derived.d.ts.map +1 -1
- package/dist/analysis/drill.d.ts.map +1 -1
- package/dist/analysis/familyRules.d.ts.map +1 -1
- package/dist/analysis/index.d.ts +3 -1
- package/dist/analysis/index.d.ts.map +1 -1
- package/dist/analysis/metricCard.d.ts +11 -3
- package/dist/analysis/metricCard.d.ts.map +1 -1
- package/dist/analysis/project.d.ts +9 -0
- package/dist/analysis/project.d.ts.map +1 -1
- package/dist/analysis/serverLines.d.ts +54 -0
- package/dist/analysis/serverLines.d.ts.map +1 -0
- package/dist/analysis/splitOther.d.ts.map +1 -1
- package/dist/analysis/timeAxis.d.ts +10 -0
- package/dist/analysis/timeAxis.d.ts.map +1 -1
- package/dist/analysis/timeCharts.d.ts.map +1 -1
- package/dist/analysis/top.d.ts +22 -0
- package/dist/analysis/top.d.ts.map +1 -0
- package/dist/analysis/validate.d.ts +2 -1
- package/dist/analysis/validate.d.ts.map +1 -1
- package/dist/analysis/validateGroups.d.ts.map +1 -1
- package/dist/analysis/validateShape.d.ts.map +1 -1
- package/dist/analysis/validateTop.d.ts +17 -0
- package/dist/analysis/validateTop.d.ts.map +1 -0
- package/dist/capabilities/analysis.d.ts.map +1 -1
- package/dist/capabilities/open.d.ts.map +1 -1
- package/dist/{clickDraft-CLkSgQNG.js → clickDraft-CHI2bGry.js} +16 -16
- package/dist/{clickDraft-CLkSgQNG.js.map → clickDraft-CHI2bGry.js.map} +1 -1
- package/dist/dashboard/layout.d.ts +19 -1
- package/dist/dashboard/layout.d.ts.map +1 -1
- package/dist/filter/compile.d.ts +13 -0
- package/dist/filter/compile.d.ts.map +1 -1
- package/dist/filter/kinds/boolean.d.ts.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +221 -107
- package/dist/index.js.map +1 -1
- package/dist/model/analysis.d.ts +33 -3
- package/dist/model/analysis.d.ts.map +1 -1
- package/dist/model/chart.d.ts +15 -2
- package/dist/model/chart.d.ts.map +1 -1
- package/dist/model/definition.d.ts +21 -1
- package/dist/model/definition.d.ts.map +1 -1
- package/dist/model/field.d.ts +4 -1
- package/dist/model/field.d.ts.map +1 -1
- package/dist/model/record.d.ts +44 -4
- package/dist/model/record.d.ts.map +1 -1
- package/dist/react/analysisEditing.d.ts +2 -1
- package/dist/react/analysisEditing.d.ts.map +1 -1
- package/dist/react/analysisFields.d.ts.map +1 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/manager/wording.d.ts +22 -0
- package/dist/react/manager/wording.d.ts.map +1 -0
- package/dist/react/recordLayout.d.ts +23 -0
- package/dist/react/recordLayout.d.ts.map +1 -0
- package/dist/react/useAnalysisEditor.d.ts +19 -1
- package/dist/react/useAnalysisEditor.d.ts.map +1 -1
- package/dist/react/useAnalysisResult.d.ts.map +1 -1
- package/dist/react/useRecordKanban.d.ts +32 -0
- package/dist/react/useRecordKanban.d.ts.map +1 -0
- package/dist/react/useRecordTable.d.ts.map +1 -1
- package/dist/react/useReshape.d.ts.map +1 -1
- package/dist/react/useSaveCommands.d.ts +32 -0
- package/dist/react/useSaveCommands.d.ts.map +1 -1
- package/dist/react/useViewList.d.ts +6 -0
- package/dist/react/useViewList.d.ts.map +1 -1
- package/dist/react/useViewManager.d.ts +7 -0
- package/dist/react/useViewManager.d.ts.map +1 -1
- package/dist/react/useWorkbench.d.ts.map +1 -1
- package/dist/react/workbench/leaveGuard.d.ts +18 -1
- package/dist/react/workbench/leaveGuard.d.ts.map +1 -1
- package/dist/react-CNRANfkk.js +3810 -0
- package/dist/react-CNRANfkk.js.map +1 -0
- package/dist/react.js +3 -3
- package/dist/record/compile.d.ts +12 -5
- package/dist/record/compile.d.ts.map +1 -1
- package/dist/record/defaults.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 +96 -0
- package/dist/record/kanban.d.ts.map +1 -0
- package/dist/record/project.d.ts +34 -1
- package/dist/record/project.d.ts.map +1 -1
- package/dist/record/validate.d.ts.map +1 -1
- package/dist/runtime/actions.d.ts +19 -0
- package/dist/runtime/actions.d.ts.map +1 -1
- package/dist/runtime/capabilities.d.ts +5 -1
- package/dist/runtime/capabilities.d.ts.map +1 -1
- package/dist/runtime/dashboard/children.d.ts.map +1 -1
- package/dist/runtime/datasetResources.d.ts +124 -0
- package/dist/runtime/datasetResources.d.ts.map +1 -0
- package/dist/runtime/define/defineDataset.d.ts +37 -0
- package/dist/runtime/define/defineDataset.d.ts.map +1 -0
- package/dist/runtime/definitions.d.ts +17 -1
- package/dist/runtime/definitions.d.ts.map +1 -1
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/failure/failures.d.ts.map +1 -1
- package/dist/runtime/failure/unavailable.d.ts +2 -1
- package/dist/runtime/failure/unavailable.d.ts.map +1 -1
- package/dist/runtime/instanceWrites.d.ts +39 -0
- package/dist/runtime/instanceWrites.d.ts.map +1 -0
- package/dist/runtime/kanban.d.ts +22 -0
- package/dist/runtime/kanban.d.ts.map +1 -0
- package/dist/runtime/recordRuntime.d.ts +7 -0
- package/dist/runtime/recordRuntime.d.ts.map +1 -1
- package/dist/runtime/resources.d.ts +36 -0
- package/dist/runtime/resources.d.ts.map +1 -1
- package/dist/runtime/restyle.d.ts +8 -1
- package/dist/runtime/restyle.d.ts.map +1 -1
- package/dist/runtime/runtimeStore.d.ts +6 -0
- package/dist/runtime/runtimeStore.d.ts.map +1 -1
- package/dist/runtime/storedViews.d.ts.map +1 -1
- package/dist/runtime/summaries.d.ts +1 -0
- package/dist/runtime/summaries.d.ts.map +1 -1
- package/dist/runtime/validateFields.d.ts.map +1 -1
- package/dist/runtime/viewEngine.d.ts +21 -0
- package/dist/runtime/viewEngine.d.ts.map +1 -1
- package/dist/runtime/viewRuntime.d.ts.map +1 -1
- package/dist/runtime/viewRuntimeTypes.d.ts +7 -0
- package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
- package/dist/store/MemoryViewStore.d.ts +8 -0
- package/dist/store/MemoryViewStore.d.ts.map +1 -1
- package/dist/store/ViewStore.d.ts +15 -0
- package/dist/store/ViewStore.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/aggregate.d.ts.map +1 -1
- package/dist/testing.js +307 -301
- package/dist/testing.js.map +1 -1
- package/dist/ui/ViewHost.d.ts +10 -1
- package/dist/ui/ViewHost.d.ts.map +1 -1
- package/dist/ui/actions/kanbanMove.d.ts +13 -0
- package/dist/ui/actions/kanbanMove.d.ts.map +1 -0
- package/dist/ui/analysis/AnalysisToolbar.d.ts.map +1 -1
- package/dist/ui/analysis/ChartOptions.d.ts +3 -1
- package/dist/ui/analysis/ChartOptions.d.ts.map +1 -1
- package/dist/ui/analysis/ChartPicker.d.ts.map +1 -1
- package/dist/ui/analysis/DataTab.d.ts.map +1 -1
- package/dist/ui/analysis/DerivedLines.d.ts +9 -0
- package/dist/ui/analysis/DerivedLines.d.ts.map +1 -0
- package/dist/ui/analysis/ReferenceOptions.d.ts.map +1 -1
- package/dist/ui/analysis/ResultSlot.d.ts.map +1 -1
- package/dist/ui/analysis/TopRow.d.ts +40 -0
- package/dist/ui/analysis/TopRow.d.ts.map +1 -0
- package/dist/ui/analysis/VisualizationPanel.d.ts +3 -1
- package/dist/ui/analysis/VisualizationPanel.d.ts.map +1 -1
- package/dist/ui/analysis/cartesianSpec.d.ts +13 -0
- package/dist/ui/analysis/cartesianSpec.d.ts.map +1 -0
- package/dist/ui/analysis/optionControls.d.ts +27 -1
- package/dist/ui/analysis/optionControls.d.ts.map +1 -1
- package/dist/ui/analysis/tableColumns.d.ts +2 -1
- package/dist/ui/analysis/tableColumns.d.ts.map +1 -1
- package/dist/ui/charts/Heatmap.d.ts.map +1 -1
- package/dist/ui/charts/MetricCard.d.ts.map +1 -1
- package/dist/ui/charts/Profiles.d.ts.map +1 -1
- package/dist/ui/charts/cartesianFit.d.ts +2 -2
- package/dist/ui/charts/cartesianFit.d.ts.map +1 -1
- package/dist/ui/charts/cartesianMarks.d.ts.map +1 -1
- package/dist/ui/charts/cartesianTooltip.d.ts.map +1 -1
- package/dist/ui/charts/family.d.ts.map +1 -1
- package/dist/ui/charts/markWords.d.ts +5 -0
- package/dist/ui/charts/markWords.d.ts.map +1 -1
- package/dist/ui/charts/periodSpan.d.ts.map +1 -1
- package/dist/ui/charts/profileOption.d.ts +8 -0
- package/dist/ui/charts/profileOption.d.ts.map +1 -1
- package/dist/ui/charts/timeOption.d.ts.map +1 -1
- package/dist/ui/dashboard/DashboardPanel.d.ts.map +1 -1
- package/dist/ui/dashboard/PanelBodies.d.ts +1 -1
- package/dist/ui/dashboard/PanelBodies.d.ts.map +1 -1
- package/dist/ui/dashboard/history.d.ts.map +1 -1
- package/dist/ui/embed/EmbeddedRecord.d.ts.map +1 -1
- package/dist/ui/filter/FieldChecklist.d.ts.map +1 -1
- package/dist/ui/filter/inputs/date.d.ts.map +1 -1
- package/dist/ui/filter/inputs/daterange.d.ts +27 -0
- package/dist/ui/filter/inputs/daterange.d.ts.map +1 -1
- package/dist/ui/filter/inputs/select.d.ts +4 -1
- package/dist/ui/filter/inputs/select.d.ts.map +1 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/kit/OutcomeActions.d.ts.map +1 -1
- package/dist/ui/kit/badges.d.ts.map +1 -1
- package/dist/ui/kit/dragPlugins.d.ts +15 -0
- package/dist/ui/kit/dragPlugins.d.ts.map +1 -1
- package/dist/ui/kit/summary.d.ts.map +1 -1
- package/dist/ui/kit/surfaceKeys.d.ts +24 -0
- package/dist/ui/kit/surfaceKeys.d.ts.map +1 -0
- package/dist/ui/kit/variants.d.ts +10 -10
- package/dist/ui/manage/DatasetWordingForm.d.ts +22 -0
- package/dist/ui/manage/DatasetWordingForm.d.ts.map +1 -0
- package/dist/ui/manage/ViewManager.d.ts.map +1 -1
- package/dist/ui/messages/analysis.d.ts +40 -0
- package/dist/ui/messages/analysis.d.ts.map +1 -1
- 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 +107 -2
- package/dist/ui/messages/en.d.ts.map +1 -1
- package/dist/ui/messages/header.d.ts +11 -0
- package/dist/ui/messages/header.d.ts.map +1 -1
- package/dist/ui/messages/manage.d.ts +13 -0
- package/dist/ui/messages/manage.d.ts.map +1 -1
- package/dist/ui/messages/record.d.ts +23 -0
- package/dist/ui/messages/record.d.ts.map +1 -1
- package/dist/ui/messages/save.d.ts +3 -0
- package/dist/ui/messages/save.d.ts.map +1 -1
- package/dist/ui/messages/status.d.ts +7 -1
- package/dist/ui/messages/status.d.ts.map +1 -1
- package/dist/ui/messages/view.d.ts +8 -1
- package/dist/ui/messages/view.d.ts.map +1 -1
- package/dist/ui/messages/zh-CN.d.ts.map +1 -1
- package/dist/ui/record/CardSettings.d.ts +8 -2
- package/dist/ui/record/CardSettings.d.ts.map +1 -1
- package/dist/ui/record/RecordCard.d.ts +30 -0
- package/dist/ui/record/RecordCard.d.ts.map +1 -0
- package/dist/ui/record/RecordCards.d.ts.map +1 -1
- package/dist/ui/record/RecordDetail.d.ts +7 -1
- package/dist/ui/record/RecordDetail.d.ts.map +1 -1
- package/dist/ui/record/RecordKanban.d.ts +48 -0
- package/dist/ui/record/RecordKanban.d.ts.map +1 -0
- package/dist/ui/record/issueNames.d.ts.map +1 -1
- package/dist/ui/record/kanbanDrag.d.ts +115 -0
- package/dist/ui/record/kanbanDrag.d.ts.map +1 -0
- package/dist/ui/record/openRows.d.ts +1 -1
- package/dist/ui/record/openRows.d.ts.map +1 -1
- package/dist/ui/record/queryAnnouncement.d.ts.map +1 -1
- package/dist/ui/workbench/AddToDashboardDialog.d.ts +18 -0
- package/dist/ui/workbench/AddToDashboardDialog.d.ts.map +1 -0
- package/dist/ui/workbench/AnalysisParts.d.ts.map +1 -1
- package/dist/ui/workbench/LeaveGuard.d.ts.map +1 -1
- package/dist/ui/workbench/MoreViewActions.d.ts +25 -0
- package/dist/ui/workbench/MoreViewActions.d.ts.map +1 -0
- package/dist/ui/workbench/RecordParts.d.ts.map +1 -1
- package/dist/ui/workbench/ResultToolbar.d.ts +8 -2
- package/dist/ui/workbench/ResultToolbar.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/ViewEngineProvider.d.ts +5 -1
- package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
- package/dist/ui/workbench/address.d.ts.map +1 -1
- package/dist/ui/workbench/configRemedy.d.ts +1 -1
- package/dist/ui/workbench/configRemedy.d.ts.map +1 -1
- package/dist/ui/workbench/describeConfig.d.ts.map +1 -1
- package/dist/ui.js +12845 -11118
- package/dist/ui.js.map +1 -1
- package/dist/{viewRuntimeTypes-JEPw0nsg.js → viewRuntimeTypes-CCAMk8vM.js} +1492 -1422
- package/dist/viewRuntimeTypes-CCAMk8vM.js.map +1 -0
- package/package.json +7 -7
- package/dist/actions-HgK33Jzg.js.map +0 -1
- package/dist/react-2oicrdUx.js +0 -3672
- package/dist/react-2oicrdUx.js.map +0 -1
- package/dist/viewRuntimeTypes-JEPw0nsg.js.map +0 -1
package/dist/react.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as e } from "./viewRuntimeTypes-
|
|
2
|
-
import { A as t,
|
|
3
|
-
export { v as VALUE_CANDIDATE_DEBOUNCE_MS,
|
|
1
|
+
import { d as e } from "./viewRuntimeTypes-CCAMk8vM.js";
|
|
2
|
+
import { A as t, B as n, C as r, D as i, E as a, F as o, I as s, M as c, N as l, O as u, P as d, R as f, S as p, T as m, _ as h, a as g, c as _, d as v, f as y, h as b, i as x, j as S, k as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, w as M, x as N, y as P, z as F } from "./react-CNRANfkk.js";
|
|
3
|
+
export { v as VALUE_CANDIDATE_DEBOUNCE_MS, F as browserRuntimeEnvironment, n as documentVisibility, u as failureReasons, f as kindMismatch, p as ownedNavigation, l as retryableOpen, e as toIssue, c as useAnalysisEditor, S as useAnalysisResult, C as useAutoRefresh, M as useDashboard, N as useFilterEditor, w as useHandOver, D as useHandedConditions, x as useHandedRemoval, O as useInstanceSync, T as useLeaveGuard, d as useOpenView, r as usePanelFollowUps, i as useRecordActions, P as useRecordDetail, j as useRecordExport, h as useRecordKanban, b as useRecordTable, t as useRefreshCountdown, g as useReleaseDeleted, E as useSaveCommands, a as useSearchBox, m as useUnavailable, y as useValueCandidates, o as useViewEngine, A as useViewList, _ as useViewManager, s as useViewRuntime, k as useWorkbench };
|
package/dist/record/compile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AggregationQuery, CursorQuery, FilterPagedQuery, Projection } from '@ahoo-wang/wow-client';
|
|
1
|
+
import { AggregationMetric, AggregationQuery, CursorQuery, FilterPagedQuery, Projection } from '@ahoo-wang/wow-client';
|
|
2
2
|
import { DataViewDefinition, RecordPageTarget, RecordViewConfig } from '../model/index.js';
|
|
3
3
|
import { FieldKindRegistry, FilterCompileContext } from '../filter/index.js';
|
|
4
4
|
/** The first page of either paging mode; Wow numbers pages from 1. */
|
|
@@ -16,10 +16,11 @@ export declare const FIRST_PAGE: Readonly<Record<'paged' | 'cursor', RecordPageT
|
|
|
16
16
|
* - the row key, which is what a row *is* — selection, the row's React key
|
|
17
17
|
* and every action read it;
|
|
18
18
|
* - the table's visible columns, and the card's title, image and body when
|
|
19
|
-
* the definition offers cards
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* the definition offers cards or a kanban, whose lanes hold the same
|
|
20
|
+
* cards. Both, whichever layout is current: table or cards is a
|
|
21
|
+
* presentation member (`RECORD_PRESENTATION_MEMBERS`), so switching draws
|
|
22
|
+
* the same rows from the same query at once, and a card switched to must
|
|
23
|
+
* not come up blank waiting for a second one;
|
|
23
24
|
* - the sort, so a source that works the next cursor out of the last row
|
|
24
25
|
* finds its values there — Wow's own backend adds them itself, but
|
|
25
26
|
* `ViewSource` is a port anyone implements;
|
|
@@ -51,4 +52,10 @@ export declare function compileRecord(definition: DataViewDefinition, config: Re
|
|
|
51
52
|
* totals need no query: they are computed from the rows already on screen.
|
|
52
53
|
*/
|
|
53
54
|
export declare function compileSummaries(definition: DataViewDefinition, config: RecordViewConfig, kinds: FieldKindRegistry, context: FilterCompileContext): AggregationQuery | null;
|
|
55
|
+
/**
|
|
56
|
+
* The metrics a config's summaries ask an aggregation for, each under the
|
|
57
|
+
* alias the projection reads it back by — over the whole range
|
|
58
|
+
* (`compileSummaries`) or per kanban lane (`compileKanbanCounts`).
|
|
59
|
+
*/
|
|
60
|
+
export declare function summaryMetrics(definition: DataViewDefinition, config: RecordViewConfig): AggregationMetric[];
|
|
54
61
|
//# sourceMappingURL=compile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/record/compile.ts"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/record/compile.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B,sEAAsE;AACtE,eAAO,MAAM,UAAU,EAAE,QAAQ,CAC/B,MAAM,CAAC,OAAO,GAAG,QAAQ,EAAE,gBAAgB,CAAC,CAI5C,CAAC;AA6BH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,GACvB,UAAU,CA4EZ;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,oBAAoB,EAC7B,IAAI,EAAE,gBAAgB,GACrB,gBAAgB,GAAG,WAAW,CA0ChC;AAYD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,iBAAiB,EACxB,OAAO,EAAE,oBAAoB,GAC5B,gBAAgB,GAAG,IAAI,CAUzB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,GACvB,iBAAiB,EAAE,CAuBrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/record/defaults.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/record/defaults.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,mBAAmB,CAAC;AAI3B,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,cAAc,GACzB,gBAAgB,GAAG,SAAS,CAE9B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,kBAAkB,EAC9B,MAAM,GAAE,aAAsC,GAC7C,gBAAgB,CAiDlB"}
|
package/dist/record/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './compile.js';
|
|
|
6
6
|
export * from './defaults.js';
|
|
7
7
|
export * from './detail.js';
|
|
8
8
|
export { CSV_BOM, serializeCsv, type CsvOptions, type ExportColumn, type ExportFormat, } from './export.js';
|
|
9
|
+
export * from './kanban.js';
|
|
9
10
|
export * from './paging.js';
|
|
10
11
|
export * from './project.js';
|
|
11
12
|
export * from './summaryAlias.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/record/index.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,OAAO,EACP,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/record/index.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,OAAO,EACP,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AggregationQuery, CursorPage, PagedList } from '@ahoo-wang/wow-client';
|
|
2
|
+
import { DataViewDefinition, FieldDefinition, FieldOption, Issue, RecordData, RecordKanbanSpec, RecordViewConfig, RuntimeLimits } from '../model/index.js';
|
|
3
|
+
import { FieldKindRegistry, FilterCompileContext } from '../filter/index.js';
|
|
4
|
+
import { RecordProjection } from './project.js';
|
|
5
|
+
/** One lane a kanban asks for: an option of the lane field, or「其他」. */
|
|
6
|
+
export interface KanbanLane {
|
|
7
|
+
/** See `RecordLaneView.id`. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** The option's value; `null` for the「其他」lane. */
|
|
10
|
+
value: string | number | null;
|
|
11
|
+
/** The option the lane is; absent for the「其他」lane. */
|
|
12
|
+
option?: FieldOption;
|
|
13
|
+
}
|
|
14
|
+
/** The id of the lane of every record whose value is none of the options. */
|
|
15
|
+
export declare const OTHER_LANE_ID = "other";
|
|
16
|
+
/** A lane's id: its option's value as JSON, so `1` and `'1'` stay apart. */
|
|
17
|
+
export declare function laneId(value: string | number): string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether a field can be a kanban's lane field: an `enum` that declares
|
|
20
|
+
* options, whose order, labels and tones the lanes take (D83).
|
|
21
|
+
*/
|
|
22
|
+
export declare function isLaneField(field: FieldDefinition): boolean;
|
|
23
|
+
/** The fields a kanban can be laid out by, in the definition's order. */
|
|
24
|
+
export declare function laneFields(definition: DataViewDefinition): readonly FieldDefinition[];
|
|
25
|
+
/**
|
|
26
|
+
* A new view's kanban half: the first lane field, its first
|
|
27
|
+
* `MAX_KANBAN_LANES` options shown and the rest folded away. `undefined`
|
|
28
|
+
* when the definition has no field to lay lanes out by.
|
|
29
|
+
*/
|
|
30
|
+
export declare function defaultKanbanSpec(definition: DataViewDefinition): RecordKanbanSpec | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The lanes a kanban asks for, in the order it draws them: the lane field's
|
|
33
|
+
* options as the definition lists them, less the folded ones, then the
|
|
34
|
+
* 「其他」lane. Empty for a config that is no kanban, or whose lane field
|
|
35
|
+
* the definition no longer offers — admission says why.
|
|
36
|
+
*/
|
|
37
|
+
export declare function kanbanLanes(definition: DataViewDefinition, config: RecordViewConfig): KanbanLane[];
|
|
38
|
+
/**
|
|
39
|
+
* One lane's question: the view's conditions and the lane's, the rest of
|
|
40
|
+
* the config as it is. An option's lane is `IN [value]`; the「其他」lane
|
|
41
|
+
* is `NOT_IN` every option, which also holds the records with no value.
|
|
42
|
+
*
|
|
43
|
+
* The lane's condition is the engine's, never the user's: it is merged in
|
|
44
|
+
* here, the way a host's scope is, and compiled by the same `enum` kind —
|
|
45
|
+
* it is in no config, so nothing shows, saves or edits it.
|
|
46
|
+
*/
|
|
47
|
+
export declare function laneConfig(definition: DataViewDefinition, config: RecordViewConfig, lane: KanbanLane): RecordViewConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Every shown option lane's count and summaries, as one aggregation: the
|
|
50
|
+
* view's conditions and `IN` the shown values, grouped by the lane field,
|
|
51
|
+
* `COUNT` and the config's summaries. `null` when no option lane is shown.
|
|
52
|
+
*
|
|
53
|
+
* The「其他」lane is not in it: a grouping never counts the records with
|
|
54
|
+
* no value, and those are half of what that lane holds.
|
|
55
|
+
*/
|
|
56
|
+
export declare function compileKanbanCounts(definition: DataViewDefinition, config: RecordViewConfig, kinds: FieldKindRegistry, context: FilterCompileContext): AggregationQuery | null;
|
|
57
|
+
/** One lane's page, as the source answered it. */
|
|
58
|
+
export interface LanePage {
|
|
59
|
+
lane: KanbanLane;
|
|
60
|
+
page: PagedList<RecordData> | CursorPage<RecordData>;
|
|
61
|
+
/** The page's index, for a paged source; 1 for a cursor's. */
|
|
62
|
+
index: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A kanban's result: every lane projected under the same config and put
|
|
66
|
+
* together, the rows in lane order, each lane with its count, summaries and
|
|
67
|
+
* the page it moves on to.
|
|
68
|
+
*
|
|
69
|
+
* `counts` is the lane aggregation's answer, `null` when it failed or was
|
|
70
|
+
* not asked: an option lane then reads a paged source's total for it, or no
|
|
71
|
+
* count at all. A record is in one lane; one that moved between two loads
|
|
72
|
+
* stays in the lane it reached first, and a refresh puts it right.
|
|
73
|
+
*/
|
|
74
|
+
export declare function projectKanban(definition: DataViewDefinition, config: RecordViewConfig, pages: readonly LanePage[], counts: readonly RecordData[] | null, limits?: Pick<RuntimeLimits, 'maxPageWindow'>): RecordProjection;
|
|
75
|
+
/**
|
|
76
|
+
* The next page of one lane put after the rows it already has (「加载更多」);
|
|
77
|
+
* every other lane as it was. A row already on screen in any lane is not
|
|
78
|
+
* drawn twice. A view that is no kanban's, or has no such lane, is handed
|
|
79
|
+
* back as it is.
|
|
80
|
+
*/
|
|
81
|
+
export declare function appendLane(definition: DataViewDefinition, config: RecordViewConfig, view: RecordProjection, id: string, page: LanePage['page'], index: number, limits?: Pick<RuntimeLimits, 'maxPageWindow'>): RecordProjection;
|
|
82
|
+
/**
|
|
83
|
+
* The kanban half's shape (D83), checked with the rest of the skeleton: a
|
|
84
|
+
* config from a store may carry anything under that name, and the rules
|
|
85
|
+
* below read it as the type promises.
|
|
86
|
+
*/
|
|
87
|
+
export declare function kanbanShapeIssues(config: RecordViewConfig): Issue[];
|
|
88
|
+
/**
|
|
89
|
+
* The kanban's rules, for a config whose layout is the kanban: it has its
|
|
90
|
+
* half, the lane field is one a kanban can be laid out by, and the lanes it
|
|
91
|
+
* shows are no more than `MAX_KANBAN_LANES`. Under another layout the half
|
|
92
|
+
* stored waits, like the card's does under a table, and is judged when the
|
|
93
|
+
* view switches back.
|
|
94
|
+
*/
|
|
95
|
+
export declare function validateKanban(definition: DataViewDefinition, config: RecordViewConfig): Issue[];
|
|
96
|
+
//# sourceMappingURL=kanban.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kanban.d.ts","sourceRoot":"","sources":["../../src/record/kanban.ts"],"names":[],"mappings":"AAaA,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,gBAAgB,EAErB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAIL,KAAK,gBAAgB,EAEtB,MAAM,cAAc,CAAC;AAEtB,uEAAuE;AACvE,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,sDAAsD;IACtD,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,6EAA6E;AAC7E,eAAO,MAAM,aAAa,UAAU,CAAC;AAMrC,4EAA4E;AAC5E,wBAAgB,MAAM,CAAC,KAA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AAU,CACxB,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,gBAAgB,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,IAAI,CAAC,aAAa,EAAE,eAAe,CAA0B,GACpE,gBAAgB,CAiBlB;AAyFD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,KAAK,EAAE,CAYnE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,GACvB,KAAK,EAAE,CAwBT"}
|
package/dist/record/project.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CursorPage, PagedList } from '@ahoo-wang/wow-client';
|
|
2
|
-
import { CurrencyReading, DataViewDefinition, FieldDefinition, FieldNumeric, FieldOption, NumberFormat, RecordData, RecordKey, RecordViewConfig, RuntimeLimits, SummaryFunction, EpochTimeUnit } from '../model/index.js';
|
|
2
|
+
import { CurrencyReading, DataViewDefinition, FieldDefinition, FieldNumeric, FieldOption, FieldTone, NumberFormat, RecordData, RecordKey, RecordPageTarget, RecordViewConfig, RuntimeLimits, SummaryFunction, EpochTimeUnit } from '../model/index.js';
|
|
3
3
|
import { RecordPaging } from './paging.js';
|
|
4
4
|
/**
|
|
5
5
|
* Which edge the table holds a column against.
|
|
@@ -140,12 +140,45 @@ export interface RecordCardView {
|
|
|
140
140
|
/** How many cards stand in one row; see `RecordCardSpec.perRow`. */
|
|
141
141
|
perRow?: 1 | 2 | 3 | 4;
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* One lane of a kanban result (D83): one option of the lane field, or the
|
|
145
|
+
* 「其他」lane of every record whose value is none of them.
|
|
146
|
+
*/
|
|
147
|
+
export interface RecordLaneView {
|
|
148
|
+
/**
|
|
149
|
+
* Which lane this is, for `loadLane`: `option:` and the option's value as
|
|
150
|
+
* JSON (so `1` and `'1'` are two lanes), or `other`.
|
|
151
|
+
*/
|
|
152
|
+
id: string;
|
|
153
|
+
/** The option's value; `null` for the「其他」lane. */
|
|
154
|
+
value: string | number | null;
|
|
155
|
+
/** The option's label; empty for the「其他」lane, which the screen words. */
|
|
156
|
+
label: string;
|
|
157
|
+
/** How the option's badge reads, when the definition says. */
|
|
158
|
+
tone?: FieldTone;
|
|
159
|
+
/** The lane's rows so far — the same objects `RecordProjection.rows` holds. */
|
|
160
|
+
rows: RecordRow[];
|
|
161
|
+
/**
|
|
162
|
+
* Every record the lane holds: the lane aggregation's count, or a paged
|
|
163
|
+
* source's total for the lane. `null` when neither says — the「其他」lane
|
|
164
|
+
* of a cursor source, or any lane of one whose aggregation failed.
|
|
165
|
+
*/
|
|
166
|
+
total: number | null;
|
|
167
|
+
/** The page「加载更多」asks for next; `null` when the lane is all here. */
|
|
168
|
+
next: RecordPageTarget | null;
|
|
169
|
+
/** The lane's summaries, when the config asks for any and they came back. */
|
|
170
|
+
summaries: SummaryRow | null;
|
|
171
|
+
}
|
|
143
172
|
export interface RecordProjection {
|
|
144
173
|
columns: RecordColumnView[];
|
|
145
174
|
/** The same result's card layout; both halves are saved side by side. */
|
|
146
175
|
card: RecordCardView;
|
|
176
|
+
/** Every row on screen; under a kanban, the lanes' rows in lane order. */
|
|
147
177
|
rows: RecordRow[];
|
|
178
|
+
/** Under a kanban, the first lane's: the lanes page on their own. */
|
|
148
179
|
paging: RecordPaging;
|
|
180
|
+
/** The lanes, when the result is a kanban's (`projectKanban`). */
|
|
181
|
+
lanes?: RecordLaneView[];
|
|
149
182
|
}
|
|
150
183
|
/**
|
|
151
184
|
* A declared field as a value of it reads outside a table — on a card, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/record/project.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAA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AAE,GACzB,UAAU,CAsBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/record/validate.ts"],"names":[],"mappings":"AAcA,OAAO,EAIL,KAAK,kBAAkB,EAGvB,KAAK,KAAK,EAEV,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/record/validate.ts"],"names":[],"mappings":"AAcA,OAAO,EAIL,KAAK,kBAAkB,EAGvB,KAAK,KAAK,EAEV,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,kBAAkB,EAC9B,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,iBAAiB,EACxB,OAAO,GAAE,qBAA0B,GAClC,KAAK,EAAE,CA6CT;AA8FD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAOpE"}
|
|
@@ -112,6 +112,17 @@ export interface RecordAction {
|
|
|
112
112
|
* picked is the input.
|
|
113
113
|
*/
|
|
114
114
|
readonly form?: ActionForm;
|
|
115
|
+
/**
|
|
116
|
+
* The record field this command sets, for a kanban laid out by it (D83):
|
|
117
|
+
* a card dropped on another lane of that field runs the command with the
|
|
118
|
+
* lane's value as its input, `{ [moves]: value }`. `available` is asked
|
|
119
|
+
* with that input, so a rule can refuse one stage (a won deal does not go
|
|
120
|
+
* back to a lead) and the lane it refuses is shut while the card is
|
|
121
|
+
* dragged. Give it a form of that one field with the stages as options
|
|
122
|
+
* and the card's menu offers the same move as a choice — the keyboard's
|
|
123
|
+
* and a screen reader's way to move a card.
|
|
124
|
+
*/
|
|
125
|
+
readonly moves?: string;
|
|
115
126
|
/**
|
|
116
127
|
* Sends the command for one record. It resolves once the read model
|
|
117
128
|
* reflects it — a Wow command waits for `CommandStage.SNAPSHOT` (or the
|
|
@@ -141,6 +152,14 @@ export type RecordActions = readonly RecordAction[];
|
|
|
141
152
|
* and a `run`. A mistake here is the host's code, so it throws at once.
|
|
142
153
|
*/
|
|
143
154
|
export declare function actions(list: readonly RecordAction[]): RecordActions;
|
|
155
|
+
/**
|
|
156
|
+
* The command that moves a record to another lane of `field` (D83), the
|
|
157
|
+
* first declared with `moves: field`; `undefined` when none does, and the
|
|
158
|
+
* kanban's cards then stay where they are.
|
|
159
|
+
*/
|
|
160
|
+
export declare function moveActionFor(list: RecordActions | undefined, field: string | undefined): RecordAction | undefined;
|
|
161
|
+
/** What a move runs with: the lane's value under the field it sets. */
|
|
162
|
+
export declare function moveInput(action: RecordAction, value: string | number): ActionInput;
|
|
144
163
|
/** The actions offered at `place`, in the order declared. */
|
|
145
164
|
export declare function offeredAt(list: RecordActions | undefined, place: ActionPlace): RecordAction[];
|
|
146
165
|
/** What a refusal without words of the host's own says. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/runtime/actions.ts"],"names":[],"mappings":"AAaA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;GAYG;AAEH,gEAAgE;AAChE,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC;AAElC,0CAA0C;AAC1C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAKpD,8EAA8E;AA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AAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,MAAM,EAAE,MAAM;CAK3B;AAED;;;;GAIG;AACH,wBAAsB,MAAM,CAC1B,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,SAAS,GAAG,SAAS,EAC1B,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,OAAO,CAAC,CAMlB"}
|
|
@@ -27,7 +27,11 @@ export declare class SourceCapabilities {
|
|
|
27
27
|
readonly fallback: RuntimeLimits;
|
|
28
28
|
private readonly host;
|
|
29
29
|
private readonly cache;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Each definition narrowed to the version it was narrowed against, with
|
|
32
|
+
* the definition it narrowed: one registered again (`ViewEngine.register`)
|
|
33
|
+
* is narrowed afresh, even against a descriptor already held.
|
|
34
|
+
*/
|
|
31
35
|
private readonly narrowed;
|
|
32
36
|
private readonly limitsBySource;
|
|
33
37
|
private readonly stopWatching;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/runtime/capabilities.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAUnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,iEAAiE;AACjE,UAAU,cAAc;IACtB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,kFAAkF;IAClF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACzC,aAAa,CAAC,GAA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;IAwBd,OAAO,CAAC,QAAQ;CAUjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../../src/runtime/dashboard/children.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../../src/runtime/dashboard/children.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,8EAA8E;IAC9E,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,eAAe,EACtB,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,cAAc,GAAG,IAAI,GAAG,SAAS,EACpE,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,KAA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,EACf,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,KAAK,EAAE,GACX;QAAE,OAAO,EAAE,eAAe,CAAC;QAAC,MAAM,EAAE,KAAK,EAAE,CAAA;KAAE,GAAG,IAAI;IAWvD,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI;IAKzC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQ3B,UAAU,IAAI,IAAI;IAQlB;;;;OAIG;IACH,OAAO,CACL,KAAK,GAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAoB,EAChD,IAAI,GAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAqB,GACxD,IAAI;IAOP;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,IAAI;IAU9D,+CAA+C;IAC/C,OAAO,IAAI,OAAO;CAKnB"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { DatasetDirectoryEntry } from '@ahoo-wang/wow-client';
|
|
2
|
+
import { defineDataset, DefineDatasetSpec } from './define/defineDataset.js';
|
|
3
|
+
import { WriteContext } from '../store/ViewStore.js';
|
|
4
|
+
import { ViewSource } from './source.js';
|
|
5
|
+
/** What `DatasetResources` reads: the dataset directory, and each dataset's source. */
|
|
6
|
+
export interface DatasetCatalog {
|
|
7
|
+
/** The datasets the service serves (`GET /dataset`). */
|
|
8
|
+
list(): Promise<readonly DatasetDirectoryEntry[]>;
|
|
9
|
+
/** The source of one, such as wow-client's `DatasetQueryClient`; it must describe itself. */
|
|
10
|
+
source(entry: DatasetDirectoryEntry): ViewSource;
|
|
11
|
+
/**
|
|
12
|
+
* The host's words over one dataset (D86): its title, its noun, and its
|
|
13
|
+
* fields' labels, order and narrowing (`DefineDatasetSpec.fields`).
|
|
14
|
+
*/
|
|
15
|
+
overrides?(entry: DatasetDirectoryEntry): DatasetOverrides | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Where a tenant's administrators keep their wording over the datasets
|
|
18
|
+
* (D91), such as wow-view-store's `WowDatasetWordings`: read whole before
|
|
19
|
+
* each `refresh` registers, by definition id. A dataset's stored wording
|
|
20
|
+
* stands in place of `overrides`. Given, each dataset registers with an
|
|
21
|
+
* editor of its wording (`DatasetWordingEditor`).
|
|
22
|
+
*/
|
|
23
|
+
wordings?: DatasetWordingStore;
|
|
24
|
+
}
|
|
25
|
+
/** A dataset's wording as stored, and the revision a write expects. */
|
|
26
|
+
export interface StoredDatasetWording {
|
|
27
|
+
wording: DatasetOverrides;
|
|
28
|
+
/** `'0'` for wording never written. */
|
|
29
|
+
revision: string;
|
|
30
|
+
}
|
|
31
|
+
/** Where a dataset's wording is kept (D91); see `DatasetCatalog.wordings`. */
|
|
32
|
+
export interface DatasetWordingStore {
|
|
33
|
+
/** Every dataset's stored wording, by definition id (`{context}.{dataset}`). */
|
|
34
|
+
list(signal?: AbortSignal): Promise<ReadonlyMap<string, StoredDatasetWording>>;
|
|
35
|
+
/** Writes one whole at the expected revision; answers the new revision. */
|
|
36
|
+
set(dataset: string, wording: DatasetOverrides, revision: string, context: WriteContext): Promise<string>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* What a dataset's wording editor reads and writes (D91): the fields the
|
|
40
|
+
* descriptor derives, the wording in force, and a save that stores it and
|
|
41
|
+
* registers the dataset again in the new words.
|
|
42
|
+
*/
|
|
43
|
+
export interface DatasetWordingEditor {
|
|
44
|
+
/** The definition id, and the dataset's key in the store. */
|
|
45
|
+
readonly dataset: string;
|
|
46
|
+
/** The title the directory gives, before any wording. */
|
|
47
|
+
readonly derivedTitle: string;
|
|
48
|
+
/** The descriptor's fields in its order, labelled as derived before any wording. */
|
|
49
|
+
readonly fields: readonly {
|
|
50
|
+
name: string;
|
|
51
|
+
label: string;
|
|
52
|
+
}[];
|
|
53
|
+
/** The wording in force: the stored one, else the host's `overrides`. */
|
|
54
|
+
readonly wording: DatasetOverrides;
|
|
55
|
+
/** The revision a save expects. */
|
|
56
|
+
readonly revision: string;
|
|
57
|
+
/** Stores `wording` whole and registers the dataset again in it. */
|
|
58
|
+
save(wording: DatasetOverrides, context: WriteContext): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
/** What a host may say over a dataset's derived definition; see `DatasetCatalog.overrides`. */
|
|
61
|
+
export type DatasetOverrides = Partial<Pick<DefineDatasetSpec, 'title' | 'recordNoun' | 'fields'>>;
|
|
62
|
+
/** The part of an engine `DatasetResources` drives (`ViewEngine` is one). */
|
|
63
|
+
export interface DatasetRegistrar {
|
|
64
|
+
readonly definitions: ReadonlyMap<string, unknown>;
|
|
65
|
+
register(resource: {
|
|
66
|
+
definition: ReturnType<typeof defineDataset>;
|
|
67
|
+
source: ViewSource;
|
|
68
|
+
wording?: DatasetWordingEditor;
|
|
69
|
+
}): void;
|
|
70
|
+
unregister(definitionId: string): boolean;
|
|
71
|
+
}
|
|
72
|
+
/** A dataset served, as registered: its directory entry and its definition id. */
|
|
73
|
+
export interface DatasetResource {
|
|
74
|
+
id: string;
|
|
75
|
+
entry: DatasetDirectoryEntry;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Keeps an engine's datasets in step with a service's directory (D85): each
|
|
79
|
+
* `refresh` registers a dataset the directory newly lists, registers again
|
|
80
|
+
* one whose descriptor version changed, and removes one it no longer lists
|
|
81
|
+
* or whose schema does not compile (`version` `null`). A dataset's
|
|
82
|
+
* definition id is its name, `{context}.{dataset}`, and its title the
|
|
83
|
+
* directory's; a definition the host declared in code under that id wins
|
|
84
|
+
* and the dataset is left out.
|
|
85
|
+
*
|
|
86
|
+
* `refresh` answers the datasets served, which a host binds routes to
|
|
87
|
+
* (`bind`) so they appear in its navigation: opening one is how a reader
|
|
88
|
+
* starts a view of it.
|
|
89
|
+
*/
|
|
90
|
+
export declare class DatasetResources {
|
|
91
|
+
private readonly engine;
|
|
92
|
+
private readonly catalog;
|
|
93
|
+
/** Told of a dataset that could not be described or registered; it is left as it was. */
|
|
94
|
+
private readonly onError;
|
|
95
|
+
/** Told when the stored wording cannot be read; the wording read last stands. */
|
|
96
|
+
private readonly onWordingError;
|
|
97
|
+
private readonly held;
|
|
98
|
+
/** The overrides each dataset was registered with, as JSON: new words register it again. */
|
|
99
|
+
private readonly worded;
|
|
100
|
+
/** The wording stored when the store was last read (`DatasetCatalog.wordings`). */
|
|
101
|
+
private stored;
|
|
102
|
+
/** What each dataset was registered from, so a new wording needs no describe. */
|
|
103
|
+
private readonly derived;
|
|
104
|
+
constructor(engine: DatasetRegistrar, catalog: DatasetCatalog,
|
|
105
|
+
/** Told of a dataset that could not be described or registered; it is left as it was. */
|
|
106
|
+
onError?: (entry: DatasetDirectoryEntry, error: unknown) => void,
|
|
107
|
+
/** Told when the stored wording cannot be read; the wording read last stands. */
|
|
108
|
+
onWordingError?: (error: unknown) => void);
|
|
109
|
+
/** The datasets served, in the directory's order. */
|
|
110
|
+
get resources(): readonly DatasetResource[];
|
|
111
|
+
refresh(): Promise<readonly DatasetResource[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Reads the stored wording before a refresh registers; one that cannot be
|
|
114
|
+
* read leaves what was read last, and is told for no dataset in particular.
|
|
115
|
+
*/
|
|
116
|
+
private readWordings;
|
|
117
|
+
/** The wording a dataset registers in: the stored one, else the host's. */
|
|
118
|
+
private wordingOf;
|
|
119
|
+
private serve;
|
|
120
|
+
/** Registers dataset `id` from what it was derived from, in the wording in force. */
|
|
121
|
+
private registerWorded;
|
|
122
|
+
private editorOf;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=datasetResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasetResources.d.ts","sourceRoot":"","sources":["../../src/runtime/datasetResources.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,aAAa,EACb,KAAK,iB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iF;IACjF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAOpB;gBAGe,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,cAAc;IACxC,yFAAyF;IACxE,OAAO,GAAE,CACxB,KAAK,EAAE,qBAAqB,EAC5B,KAAK,EAAE,OAAO,KACX,IAAsB;IAC3B,iFAAiF;IAChE,cAAc,GAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAsB;IAG7E,qDAAqD;IACrD,IAAI,SAAS,IAAI,SAAS,eAAe,EAAE,CAE1C;IAEK,OAAO,IAAI,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC;IAuBpD;;;OAGG;YACW,YAAY;IAU1B,2EAA2E;IAC3E,OAAO,CAAC,SAAS;YAYH,KAAK;IAuBnB,qFAAqF;IACrF,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,QAAQ;CA+BjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { QueryModelDescriptor } from '@ahoo-wang/wow-client';
|
|
2
|
+
import { DataViewDefinition } from '../../model/index.js';
|
|
3
|
+
import { DefineViewOptions } from './defineView.js';
|
|
4
|
+
import { FieldSpec } from './spec.js';
|
|
5
|
+
/** What a host says of a dataset beyond its descriptor. */
|
|
6
|
+
export interface DefineDatasetSpec {
|
|
7
|
+
id: string;
|
|
8
|
+
/** The key a host resolves the definition's source by. */
|
|
9
|
+
source: string;
|
|
10
|
+
/** The dataset's title, such as the dataset directory's. */
|
|
11
|
+
title: string;
|
|
12
|
+
recordNoun?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The host's words over the derived fields, which only narrow and name
|
|
15
|
+
* (D86): a string is a field's label, a `FieldSpec` narrows it as in
|
|
16
|
+
* **defineView**, `false` hides it. The fields named come first, in the
|
|
17
|
+
* order named; the rest follow in the descriptor's order. A path the
|
|
18
|
+
* descriptor no longer lists is ignored, so an override outlives a
|
|
19
|
+
* column the dataset dropped.
|
|
20
|
+
*/
|
|
21
|
+
fields?: Readonly<Record<string, FieldSpec | string | false>>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A dataset's definition, derived from its descriptor (host-integration.md
|
|
25
|
+
* 3.2, D84): a dataset is published at run time, so its definition is not
|
|
26
|
+
* code. Every field of the record the descriptor lists appears, in the
|
|
27
|
+
* descriptor's order — a dataset's declaration already chose them, as a
|
|
28
|
+
* column it does not declare is never exposed — labelled by its
|
|
29
|
+
* description, else its path. The rest is **defineView**'s: sensitive
|
|
30
|
+
* fields stay out of analyses, capabilities follow the descriptor in force,
|
|
31
|
+
* and the row key is the descriptor's identity.
|
|
32
|
+
*
|
|
33
|
+
* The result is an ordinary definition, judged as any other when an engine
|
|
34
|
+
* registers it (`ViewEngine.register`).
|
|
35
|
+
*/
|
|
36
|
+
export declare function defineDataset(descriptor: QueryModelDescriptor, spec: DefineDatasetSpec, options?: DefineViewOptions): DataViewDefinition;
|
|
37
|
+
//# sourceMappingURL=defineDataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineDataset.d.ts","sourceRoot":"","sources":["../../../src/runtime/define/defineDataset.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;CAC/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,oBAAoB,EAChC,IAAI,EAAE,iBAAiB,EACvB,OAAO,GAAE,iBAAsB,GAC9B,kBAAkB,CA4BpB"}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { Issue, TextResolver, RuntimeLimits, ViewDefinition, ViewInstance } from '../model/index.js';
|
|
2
2
|
import { FieldKindRegistry } from '../filter/index.js';
|
|
3
3
|
export declare class DefinitionRegistry {
|
|
4
|
-
readonly
|
|
4
|
+
private readonly host;
|
|
5
|
+
private readonly kinds;
|
|
6
|
+
private readonly limits;
|
|
7
|
+
private readonly report;
|
|
8
|
+
private readonly registered;
|
|
5
9
|
/** `validateDefinition` per registered definition, computed once. */
|
|
6
10
|
private readonly findings;
|
|
11
|
+
private readonly text;
|
|
7
12
|
constructor(host: {
|
|
8
13
|
definitions: readonly ViewDefinition[];
|
|
9
14
|
text?(key: string): string | undefined;
|
|
10
15
|
/** Whether a source is registered under `key` (`resources`). */
|
|
11
16
|
hasSource?(key: string): boolean;
|
|
12
17
|
}, kinds: FieldKindRegistry, limits: RuntimeLimits, report: (found: Issue, resource: string) => void);
|
|
18
|
+
/** Every registered definition, by id. */
|
|
19
|
+
get definitions(): ReadonlyMap<string, ViewDefinition>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds `definition`, or replaces the one of its id, at run time — a
|
|
22
|
+
* dataset's, derived from its descriptor (D84) — and judges it as the
|
|
23
|
+
* definitions declared in code are judged.
|
|
24
|
+
*/
|
|
25
|
+
register(definition: ViewDefinition): void;
|
|
26
|
+
/** Removes `definitionId` and what was said of it (D85). */
|
|
27
|
+
unregister(definitionId: string): void;
|
|
28
|
+
private judge;
|
|
13
29
|
/** What `validateDefinition` said about one definition, for a host to show. */
|
|
14
30
|
issues(definitionId: string): Issue[];
|
|
15
31
|
require(id: string): ViewDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/runtime/definitions.ts"],"names":[],"mappings":"AAaA
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/runtime/definitions.ts"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AAEH,OAAO,EAIL,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAS,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAOnE,qBAAa,kBAAkB;IAO3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAMrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAdzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA8B;IACvD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA2B;gBAG7B,IAAI,EAAE;QACrB,WAAW,EAAE,SAAS,cAAc,EAAE,CAAC;QACvC,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;QACvC,gEAAgE;QAChE,SAAS,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAClC,EACgB,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IAoBnE,0CAA0C;IAC1C,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAErD;IAED;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAK1C,4DAA4D;IAC5D,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAKtC,OAAO,CAAC,KAAK;IAwBb,+EAA+E;IAC/E,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,EAAE;IAIrC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc;IAmBnC;;;;OAIG;IACH,YAAY,CACV,QAAQ,EAAE,YAAY,EACtB,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,YAAY;IAQf,sEAAsE;IACtE,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY;CAgBnE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,cAAc,EAC1B,IAAI,GAAE,YAA8B,GACnC;IAAE,UAAU,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,KAAK,EAAE,CAAA;CAAE,CAQnD;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,UAAU,EAAE,cAAc,GAAG,YAAY,EAAE,CAS1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/runtime/execute.ts"],"names":[],"mappings":"AAcA,OAAO,
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/runtime/execute.ts"],"names":[],"mappings":"AAcA,OAAO,EAUL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAC;AAW5B,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAEV,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,UAAU,EAEV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAgB,KAAK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ACjB,KAAK,EAAE,OAAO,EACd,KAAK,CAAC,EAAE,YAAY,KACjB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,0EAA0E;AAC1E,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,EAChD,KAAK,GAAE,MAAM,YAAyB,GACrC,oBAAoB,CAatB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAC/C,SAAS,CA+EX;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACvC,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,OAAO,GACb,IAAI,CAON;AAED,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAO5D"}
|
|
@@ -4,7 +4,8 @@ export declare function unavailableIssues(effective: readonly Issue[], declared:
|
|
|
4
4
|
/**
|
|
5
5
|
* The config with the first finding that can be taken out taken out, or
|
|
6
6
|
* `null` when none of them can: a condition goes (a filter's own or a
|
|
7
|
-
* metric's), a sort entry goes, 「只保留」 goes whole
|
|
7
|
+
* metric's), a sort entry goes, 「只保留」 goes whole and so does the
|
|
8
|
+
* per-group top N (D89), a dimension keeps
|
|
8
9
|
* its field but loses the missing-value group or the filled gaps. A
|
|
9
10
|
* dimension or a metric the source cannot compute stays — taking it out
|
|
10
11
|
* would change the question, not trim it — and is left to the reader.
|