@ahoo-wang/wow-view-engine 10.0.0-alpha.6 → 10.0.0-alpha.7

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.
Files changed (628) hide show
  1. package/README.md +60 -16
  2. package/README.zh-CN.md +55 -16
  3. package/dist/{actions-CgaL6eEe.js → actions-BWlediub.js} +3992 -3957
  4. package/dist/actions-BWlediub.js.map +1 -0
  5. package/dist/analysis/additive.d.ts +2 -2
  6. package/dist/analysis/additive.d.ts.map +1 -1
  7. package/dist/analysis/boxplot.d.ts.map +1 -1
  8. package/dist/analysis/bucketChange.d.ts +1 -1
  9. package/dist/analysis/buckets.d.ts +5 -5
  10. package/dist/analysis/buckets.d.ts.map +1 -1
  11. package/dist/analysis/budget.d.ts.map +1 -1
  12. package/dist/analysis/candidates.d.ts +2 -1
  13. package/dist/analysis/candidates.d.ts.map +1 -1
  14. package/dist/analysis/candlestick.d.ts.map +1 -1
  15. package/dist/analysis/capability.d.ts.map +1 -1
  16. package/dist/analysis/cartesian.d.ts.map +1 -1
  17. package/dist/analysis/chartFamilies.d.ts +1 -1
  18. package/dist/analysis/chartOptions.d.ts +13 -2
  19. package/dist/analysis/chartOptions.d.ts.map +1 -1
  20. package/dist/analysis/chartSlots.d.ts.map +1 -1
  21. package/dist/analysis/compile.d.ts +1 -1
  22. package/dist/analysis/compile.d.ts.map +1 -1
  23. package/dist/analysis/currency.d.ts.map +1 -1
  24. package/dist/analysis/dangling.d.ts +2 -1
  25. package/dist/analysis/dangling.d.ts.map +1 -1
  26. package/dist/analysis/defaults.d.ts +10 -9
  27. package/dist/analysis/defaults.d.ts.map +1 -1
  28. package/dist/analysis/derived.d.ts +2 -2
  29. package/dist/analysis/derived.d.ts.map +1 -1
  30. package/dist/analysis/drill.d.ts +12 -6
  31. package/dist/analysis/drill.d.ts.map +1 -1
  32. package/dist/analysis/drillFilter.d.ts.map +1 -1
  33. package/dist/analysis/expand.d.ts +1 -1
  34. package/dist/analysis/expand.d.ts.map +1 -1
  35. package/dist/analysis/expressions.d.ts.map +1 -1
  36. package/dist/analysis/familyRules.d.ts +2 -2
  37. package/dist/analysis/familyRules.d.ts.map +1 -1
  38. package/dist/analysis/familySlots.d.ts +4 -4
  39. package/dist/analysis/fitCharts.d.ts +2 -2
  40. package/dist/analysis/fitCharts.d.ts.map +1 -1
  41. package/dist/analysis/formula.d.ts +10 -9
  42. package/dist/analysis/formula.d.ts.map +1 -1
  43. package/dist/analysis/granularity.d.ts +2 -2
  44. package/dist/analysis/granularity.d.ts.map +1 -1
  45. package/dist/analysis/having.d.ts +2 -1
  46. package/dist/analysis/having.d.ts.map +1 -1
  47. package/dist/analysis/logScale.d.ts +1 -1
  48. package/dist/analysis/metricCard.d.ts +2 -2
  49. package/dist/analysis/metricCard.d.ts.map +1 -1
  50. package/dist/analysis/metricCondition.d.ts +1 -1
  51. package/dist/analysis/metricCondition.d.ts.map +1 -1
  52. package/dist/analysis/metricFormat.d.ts +3 -2
  53. package/dist/analysis/metricFormat.d.ts.map +1 -1
  54. package/dist/analysis/metricOrder.d.ts +2 -2
  55. package/dist/analysis/metricOrder.d.ts.map +1 -1
  56. package/dist/analysis/metricWindow.d.ts.map +1 -1
  57. package/dist/analysis/project.d.ts +8 -3
  58. package/dist/analysis/project.d.ts.map +1 -1
  59. package/dist/analysis/serverLines.d.ts +5 -5
  60. package/dist/analysis/serverLines.d.ts.map +1 -1
  61. package/dist/analysis/splitOther.d.ts +1 -1
  62. package/dist/analysis/timeAxis.d.ts +3 -2
  63. package/dist/analysis/timeAxis.d.ts.map +1 -1
  64. package/dist/analysis/top.d.ts +1 -1
  65. package/dist/analysis/top.d.ts.map +1 -1
  66. package/dist/analysis/validateFamilies.d.ts.map +1 -1
  67. package/dist/analysis/validateGroups.d.ts.map +1 -1
  68. package/dist/analysis/validateLevels.d.ts.map +1 -1
  69. package/dist/analysis/validateMetrics.d.ts.map +1 -1
  70. package/dist/analysis/validateOffers.d.ts.map +1 -1
  71. package/dist/analysis/validateReferences.d.ts +2 -2
  72. package/dist/analysis/validateTop.d.ts +1 -1
  73. package/dist/analysis/validateTop.d.ts.map +1 -1
  74. package/dist/capabilities/aliases.d.ts.map +1 -1
  75. package/dist/capabilities/analysis.d.ts.map +1 -1
  76. package/dist/capabilities/cache.d.ts +3 -20
  77. package/dist/capabilities/cache.d.ts.map +1 -1
  78. package/dist/capabilities/fields.d.ts +2 -2
  79. package/dist/capabilities/fields.d.ts.map +1 -1
  80. package/dist/capabilities/match.d.ts +15 -5
  81. package/dist/capabilities/match.d.ts.map +1 -1
  82. package/dist/capabilities/narrow.d.ts.map +1 -1
  83. package/dist/capabilities/open.d.ts.map +1 -1
  84. package/dist/capabilities/record.d.ts.map +1 -1
  85. package/dist/{cartesianBrush-HLU12ig5.js → cartesianBrush-bgRuE6Ks.js} +3 -5
  86. package/dist/cartesianBrush-bgRuE6Ks.js.map +1 -0
  87. package/dist/dashboard/click.d.ts +9 -9
  88. package/dist/dashboard/click.d.ts.map +1 -1
  89. package/dist/dashboard/clickDraft.d.ts +1 -1
  90. package/dist/dashboard/edit.d.ts +6 -6
  91. package/dist/dashboard/filterEdit.d.ts +5 -6
  92. package/dist/dashboard/filterEdit.d.ts.map +1 -1
  93. package/dist/dashboard/filters.d.ts +9 -10
  94. package/dist/dashboard/filters.d.ts.map +1 -1
  95. package/dist/dashboard/index.d.ts +0 -1
  96. package/dist/dashboard/index.d.ts.map +1 -1
  97. package/dist/dashboard/layout.d.ts +2 -2
  98. package/dist/dashboard/merge.d.ts +2 -2
  99. package/dist/dashboard/panelLook.d.ts +1 -1
  100. package/dist/dashboard/panels.d.ts +1 -1
  101. package/dist/dashboard/timeBindings.d.ts +2 -12
  102. package/dist/dashboard/timeBindings.d.ts.map +1 -1
  103. package/dist/dashboard/validate.d.ts.map +1 -1
  104. package/dist/dashboard/validateFilters.d.ts +2 -2
  105. package/dist/dashboard/wiring.d.ts +5 -5
  106. package/dist/{echarts-HUGzxow7.js → echarts-rjTKpBsf.js} +3 -4
  107. package/dist/{echarts-HUGzxow7.js.map → echarts-rjTKpBsf.js.map} +1 -1
  108. package/dist/{echartsGeo-BWbXo9ef.js → echartsGeo-qZv2ZF9e.js} +2 -3
  109. package/dist/{echartsGeo-BWbXo9ef.js.map → echartsGeo-qZv2ZF9e.js.map} +1 -1
  110. package/dist/{echartsHierarchy-Cm-9-LN9.js → echartsHierarchy-DHNP9W4v.js} +2 -3
  111. package/dist/{echartsHierarchy-Cm-9-LN9.js.map → echartsHierarchy-DHNP9W4v.js.map} +1 -1
  112. package/dist/{echartsStatistics-Lq-BjHez.js → echartsStatistics-DCDWqvde.js} +2 -3
  113. package/dist/{echartsStatistics-Lq-BjHez.js.map → echartsStatistics-DCDWqvde.js.map} +1 -1
  114. package/dist/{echartsTime-gMH0oF0x.js → echartsTime-DIRSRMnr.js} +2 -3
  115. package/dist/{echartsTime-gMH0oF0x.js.map → echartsTime-DIRSRMnr.js.map} +1 -1
  116. package/dist/export-BCADqfu6.js +29 -0
  117. package/dist/export-BCADqfu6.js.map +1 -0
  118. package/dist/filter/describe.d.ts +6 -6
  119. package/dist/filter/describe.d.ts.map +1 -1
  120. package/dist/filter/kinds/array.d.ts.map +1 -1
  121. package/dist/filter/kinds/boolean.d.ts.map +1 -1
  122. package/dist/filter/kinds/dateTime.d.ts.map +1 -1
  123. package/dist/filter/kinds/deletion.d.ts +2 -2
  124. package/dist/filter/kinds/deletion.d.ts.map +1 -1
  125. package/dist/filter/kinds/duration.d.ts.map +1 -1
  126. package/dist/filter/kinds/elementMatch.d.ts.map +1 -1
  127. package/dist/filter/kinds/entries.d.ts.map +1 -1
  128. package/dist/filter/kinds/enum.d.ts.map +1 -1
  129. package/dist/filter/kinds/metadata.d.ts.map +1 -1
  130. package/dist/filter/kinds/number.d.ts.map +1 -1
  131. package/dist/filter/kinds/presence.d.ts +1 -0
  132. package/dist/filter/kinds/presence.d.ts.map +1 -1
  133. package/dist/filter/kinds/reference.d.ts +5 -0
  134. package/dist/filter/kinds/reference.d.ts.map +1 -1
  135. package/dist/filter/kinds/string.d.ts.map +1 -1
  136. package/dist/filter/operatorWords.d.ts +21 -0
  137. package/dist/filter/operatorWords.d.ts.map +1 -0
  138. package/dist/filter/search.d.ts.map +1 -1
  139. package/dist/filter/time.d.ts +2 -2
  140. package/dist/filter/time.d.ts.map +1 -1
  141. package/dist/filter/tree.d.ts.map +1 -1
  142. package/dist/filter/validate.d.ts.map +1 -1
  143. package/dist/filter/values.d.ts +6 -5
  144. package/dist/filter/values.d.ts.map +1 -1
  145. package/dist/index.d.ts +53 -89
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +224 -223
  148. package/dist/index.js.map +1 -1
  149. package/dist/model/analysis.d.ts +61 -59
  150. package/dist/model/analysis.d.ts.map +1 -1
  151. package/dist/model/chart.d.ts +16 -6
  152. package/dist/model/chart.d.ts.map +1 -1
  153. package/dist/model/config.d.ts +2 -2
  154. package/dist/model/dashboard.d.ts +28 -48
  155. package/dist/model/dashboard.d.ts.map +1 -1
  156. package/dist/model/definition.d.ts +17 -17
  157. package/dist/model/definition.d.ts.map +1 -1
  158. package/dist/model/field.d.ts +35 -5
  159. package/dist/model/field.d.ts.map +1 -1
  160. package/dist/model/filter.d.ts +5 -5
  161. package/dist/model/filter.d.ts.map +1 -1
  162. package/dist/model/index.d.ts +2 -0
  163. package/dist/model/index.d.ts.map +1 -1
  164. package/dist/model/limits.d.ts +29 -0
  165. package/dist/model/limits.d.ts.map +1 -1
  166. package/dist/model/record.d.ts +7 -6
  167. package/dist/model/record.d.ts.map +1 -1
  168. package/dist/model/text.d.ts +1 -1
  169. package/dist/model/values.d.ts +8 -0
  170. package/dist/model/values.d.ts.map +1 -0
  171. package/dist/model/wire.d.ts +32 -0
  172. package/dist/model/wire.d.ts.map +1 -0
  173. package/dist/react/actionRunner.d.ts +8 -1
  174. package/dist/react/actionRunner.d.ts.map +1 -1
  175. package/dist/react/analysisEditing.d.ts +79 -46
  176. package/dist/react/analysisEditing.d.ts.map +1 -1
  177. package/dist/react/analysisFields.d.ts +5 -5
  178. package/dist/react/analysisFields.d.ts.map +1 -1
  179. package/dist/react/engineContext.d.ts +17 -0
  180. package/dist/react/engineContext.d.ts.map +1 -0
  181. package/dist/react/index.d.ts +17 -15
  182. package/dist/react/index.d.ts.map +1 -1
  183. package/dist/react/issues.d.ts +0 -1
  184. package/dist/react/issues.d.ts.map +1 -1
  185. package/dist/react/manager/wording.d.ts +1 -1
  186. package/dist/react/manager/wording.d.ts.map +1 -1
  187. package/dist/react/recordColumns.d.ts +1 -1
  188. package/dist/react/recordColumns.d.ts.map +1 -1
  189. package/dist/react/recordDraft.d.ts.map +1 -1
  190. package/dist/react/recordEdits.d.ts.map +1 -1
  191. package/dist/react/referenceNames.d.ts +20 -0
  192. package/dist/react/referenceNames.d.ts.map +1 -0
  193. package/dist/react/useAnalysisEditor.d.ts +10 -9
  194. package/dist/react/useAnalysisEditor.d.ts.map +1 -1
  195. package/dist/react/useAnalysisResult.d.ts +17 -3
  196. package/dist/react/useAnalysisResult.d.ts.map +1 -1
  197. package/dist/react/useAutoRefresh.d.ts +8 -6
  198. package/dist/react/useAutoRefresh.d.ts.map +1 -1
  199. package/dist/react/useCreateViewEngine.d.ts +11 -0
  200. package/dist/react/useCreateViewEngine.d.ts.map +1 -0
  201. package/dist/react/useDashboard.d.ts +12 -5
  202. package/dist/react/useDashboard.d.ts.map +1 -1
  203. package/dist/react/useDatasets.d.ts +33 -21
  204. package/dist/react/useDatasets.d.ts.map +1 -1
  205. package/dist/react/useFilterEditor.d.ts.map +1 -1
  206. package/dist/react/{useViewEngine.d.ts → useOpenView.d.ts} +22 -36
  207. package/dist/react/useOpenView.d.ts.map +1 -0
  208. package/dist/react/usePanelFollowUps.d.ts +11 -2
  209. package/dist/react/usePanelFollowUps.d.ts.map +1 -1
  210. package/dist/react/useRecordActions.d.ts +14 -3
  211. package/dist/react/useRecordActions.d.ts.map +1 -1
  212. package/dist/react/useRecordDetail.d.ts +9 -6
  213. package/dist/react/useRecordDetail.d.ts.map +1 -1
  214. package/dist/react/useRecordExport.d.ts +5 -1
  215. package/dist/react/useRecordExport.d.ts.map +1 -1
  216. package/dist/react/useRecordKanban.d.ts +1 -1
  217. package/dist/react/useRecordTable.d.ts +2 -4
  218. package/dist/react/useRecordTable.d.ts.map +1 -1
  219. package/dist/react/useReferenceLabels.d.ts +9 -0
  220. package/dist/react/useReferenceLabels.d.ts.map +1 -0
  221. package/dist/react/useReshape.d.ts +2 -2
  222. package/dist/react/useSaveCommands.d.ts +3 -7
  223. package/dist/react/useSaveCommands.d.ts.map +1 -1
  224. package/dist/react/useValueCandidates.d.ts +17 -6
  225. package/dist/react/useValueCandidates.d.ts.map +1 -1
  226. package/dist/react/useViewList.d.ts +23 -11
  227. package/dist/react/useViewList.d.ts.map +1 -1
  228. package/dist/react/useViewManager.d.ts +6 -1
  229. package/dist/react/useViewManager.d.ts.map +1 -1
  230. package/dist/react/useViewRuntime.d.ts +23 -0
  231. package/dist/react/useViewRuntime.d.ts.map +1 -0
  232. package/dist/react/useWorkbench.d.ts +1 -1
  233. package/dist/react/useWorkbench.d.ts.map +1 -1
  234. package/dist/react/workbench/handOver.d.ts +10 -3
  235. package/dist/react/workbench/handOver.d.ts.map +1 -1
  236. package/dist/react/workbench/releaseDeleted.d.ts +13 -6
  237. package/dist/react/workbench/releaseDeleted.d.ts.map +1 -1
  238. package/dist/react-D1wSQhlr.js +4196 -0
  239. package/dist/react-D1wSQhlr.js.map +1 -0
  240. package/dist/react-router/index.d.ts +1 -0
  241. package/dist/react-router/index.d.ts.map +1 -1
  242. package/dist/react-router.js +1 -2
  243. package/dist/react-router.js.map +1 -1
  244. package/dist/react.js +1 -3
  245. package/dist/record/compile.d.ts.map +1 -1
  246. package/dist/record/kanban.d.ts +2 -2
  247. package/dist/record/kanban.d.ts.map +1 -1
  248. package/dist/record/paging.d.ts +11 -2
  249. package/dist/record/paging.d.ts.map +1 -1
  250. package/dist/record/project.d.ts +17 -1
  251. package/dist/record/project.d.ts.map +1 -1
  252. package/dist/record/summaryCurrency.d.ts.map +1 -1
  253. package/dist/record/validate.d.ts.map +1 -1
  254. package/dist/{routes-DvPNPlQP.js → routes-CMXKbAo2.js} +2 -3
  255. package/dist/{routes-DvPNPlQP.js.map → routes-CMXKbAo2.js.map} +1 -1
  256. package/dist/runtime/actions.d.ts +19 -7
  257. package/dist/runtime/actions.d.ts.map +1 -1
  258. package/dist/runtime/autoApply.d.ts +1 -1
  259. package/dist/runtime/capabilities.d.ts +2 -2
  260. package/dist/runtime/capabilities.d.ts.map +1 -1
  261. package/dist/runtime/dashboard/anchor.d.ts +2 -2
  262. package/dist/runtime/dashboard/anchor.d.ts.map +1 -1
  263. package/dist/runtime/dashboard/canonical.d.ts +2 -2
  264. package/dist/runtime/dashboard/commands.d.ts +2 -2
  265. package/dist/runtime/dashboard/commands.d.ts.map +1 -1
  266. package/dist/runtime/dashboard/contract.d.ts +6 -6
  267. package/dist/runtime/dashboard/contract.d.ts.map +1 -1
  268. package/dist/runtime/dashboard/editing.d.ts +2 -2
  269. package/dist/runtime/dashboard/filterCandidates.d.ts +1 -1
  270. package/dist/runtime/dashboard/filterValues.d.ts +16 -4
  271. package/dist/runtime/dashboard/filterValues.d.ts.map +1 -1
  272. package/dist/runtime/dashboard/grouping.d.ts +4 -4
  273. package/dist/runtime/dashboard/grouping.d.ts.map +1 -1
  274. package/dist/runtime/dashboard/panelRun.d.ts +2 -2
  275. package/dist/runtime/dashboard/panels.d.ts +1 -1
  276. package/dist/runtime/dashboard/press.d.ts +1 -1
  277. package/dist/runtime/dashboard/press.d.ts.map +1 -1
  278. package/dist/runtime/dashboard/references.d.ts +1 -1
  279. package/dist/runtime/dashboard/references.d.ts.map +1 -1
  280. package/dist/runtime/dashboardRuntime.d.ts +5 -2
  281. package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
  282. package/dist/runtime/datasetResources.d.ts +57 -70
  283. package/dist/runtime/datasetResources.d.ts.map +1 -1
  284. package/dist/runtime/define/defineDataset.d.ts +1 -1
  285. package/dist/runtime/define/defineView.d.ts +1 -1
  286. package/dist/runtime/define/defineView.d.ts.map +1 -1
  287. package/dist/runtime/define/fields.d.ts +2 -2
  288. package/dist/runtime/define/fields.d.ts.map +1 -1
  289. package/dist/runtime/define/spec.d.ts +5 -1
  290. package/dist/runtime/define/spec.d.ts.map +1 -1
  291. package/dist/runtime/deprecated.d.ts.map +1 -1
  292. package/dist/runtime/environment.d.ts +95 -47
  293. package/dist/runtime/environment.d.ts.map +1 -1
  294. package/dist/runtime/execute.d.ts +2 -2
  295. package/dist/runtime/execute.d.ts.map +1 -1
  296. package/dist/runtime/exportRows.d.ts +10 -0
  297. package/dist/runtime/exportRows.d.ts.map +1 -1
  298. package/dist/runtime/failure/failures.d.ts +23 -11
  299. package/dist/runtime/failure/failures.d.ts.map +1 -1
  300. package/dist/runtime/failure/queryFailure.d.ts +1 -1
  301. package/dist/runtime/failure/queryFailure.d.ts.map +1 -1
  302. package/dist/runtime/failure/unavailable.d.ts +1 -1
  303. package/dist/runtime/fetchRecord.d.ts.map +1 -1
  304. package/dist/runtime/index.d.ts +5 -3
  305. package/dist/runtime/index.d.ts.map +1 -1
  306. package/dist/runtime/instanceWrites.d.ts +15 -9
  307. package/dist/runtime/instanceWrites.d.ts.map +1 -1
  308. package/dist/runtime/kanban.d.ts +1 -1
  309. package/dist/runtime/labelIds.d.ts +56 -0
  310. package/dist/runtime/labelIds.d.ts.map +1 -0
  311. package/dist/runtime/navigation.d.ts +6 -6
  312. package/dist/runtime/panelViews.d.ts +3 -5
  313. package/dist/runtime/panelViews.d.ts.map +1 -1
  314. package/dist/runtime/pending.d.ts +2 -2
  315. package/dist/runtime/permissions.d.ts +2 -2
  316. package/dist/runtime/preferences.d.ts +2 -2
  317. package/dist/runtime/preferences.d.ts.map +1 -1
  318. package/dist/runtime/queryWeight.d.ts.map +1 -1
  319. package/dist/runtime/recordRuntime.d.ts +10 -1
  320. package/dist/runtime/recordRuntime.d.ts.map +1 -1
  321. package/dist/runtime/referenceLabels.d.ts +170 -0
  322. package/dist/runtime/referenceLabels.d.ts.map +1 -0
  323. package/dist/runtime/resources.d.ts +31 -93
  324. package/dist/runtime/resources.d.ts.map +1 -1
  325. package/dist/runtime/restyle.d.ts +1 -1
  326. package/dist/runtime/runtimeFactory.d.ts +5 -4
  327. package/dist/runtime/runtimeFactory.d.ts.map +1 -1
  328. package/dist/runtime/source.d.ts +55 -48
  329. package/dist/runtime/source.d.ts.map +1 -1
  330. package/dist/runtime/summaries.d.ts +9 -1
  331. package/dist/runtime/summaries.d.ts.map +1 -1
  332. package/dist/runtime/tabMemory.d.ts +1 -1
  333. package/dist/runtime/validateFields.d.ts.map +1 -1
  334. package/dist/runtime/valueCandidates.d.ts.map +1 -1
  335. package/dist/runtime/viewEngine.d.ts +97 -105
  336. package/dist/runtime/viewEngine.d.ts.map +1 -1
  337. package/dist/runtime/viewEngineOptions.d.ts +79 -0
  338. package/dist/runtime/viewEngineOptions.d.ts.map +1 -0
  339. package/dist/runtime/viewRuntime.d.ts +6 -9
  340. package/dist/runtime/viewRuntime.d.ts.map +1 -1
  341. package/dist/runtime/viewRuntimeTypes.d.ts +39 -8
  342. package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
  343. package/dist/store/MemoryViewStore.d.ts +16 -16
  344. package/dist/store/MemoryViewStore.d.ts.map +1 -1
  345. package/dist/store/ViewStore.d.ts +31 -19
  346. package/dist/store/ViewStore.d.ts.map +1 -1
  347. package/dist/testing/actions.d.ts +6 -4
  348. package/dist/testing/actions.d.ts.map +1 -1
  349. package/dist/testing/aggregate.d.ts +4 -2
  350. package/dist/testing/aggregate.d.ts.map +1 -1
  351. package/dist/testing/filter.d.ts +3 -3
  352. package/dist/testing/filter.d.ts.map +1 -1
  353. package/dist/testing/index.d.ts +2 -2
  354. package/dist/testing/index.d.ts.map +1 -1
  355. package/dist/testing/source.d.ts +4 -4
  356. package/dist/testing/source.d.ts.map +1 -1
  357. package/dist/testing.js +99 -96
  358. package/dist/testing.js.map +1 -1
  359. package/dist/theme-check.mjs +102 -127
  360. package/dist/ui/DashboardWorkbench.d.ts +2 -2
  361. package/dist/ui/DashboardWorkbench.d.ts.map +1 -1
  362. package/dist/ui/DataWorkbench.d.ts +2 -2
  363. package/dist/ui/DataWorkbench.d.ts.map +1 -1
  364. package/dist/ui/DatasetWorkbench.d.ts +11 -21
  365. package/dist/ui/DatasetWorkbench.d.ts.map +1 -1
  366. package/dist/ui/EmbeddedDashboard.d.ts +1 -1
  367. package/dist/ui/EmbeddedDashboard.d.ts.map +1 -1
  368. package/dist/ui/EmbeddedView.d.ts +1 -1
  369. package/dist/ui/ViewHost.d.ts +6 -6
  370. package/dist/ui/ViewHost.d.ts.map +1 -1
  371. package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
  372. package/dist/ui/actions/BulkStatus.d.ts.map +1 -1
  373. package/dist/ui/actions/kanbanMove.d.ts +1 -1
  374. package/dist/ui/analysis/AnalysisTable.d.ts.map +1 -1
  375. package/dist/ui/analysis/AnalysisToolbar.d.ts +1 -1
  376. package/dist/ui/analysis/AnalysisToolbar.d.ts.map +1 -1
  377. package/dist/ui/analysis/AxesTab.d.ts +1 -1
  378. package/dist/ui/analysis/CardMenu.d.ts +1 -1
  379. package/dist/ui/analysis/ChartOptions.d.ts +1 -1
  380. package/dist/ui/analysis/ChartOptions.d.ts.map +1 -1
  381. package/dist/ui/analysis/ChartPicker.d.ts +1 -1
  382. package/dist/ui/analysis/CompositionOptions.d.ts +1 -1
  383. package/dist/ui/analysis/CurrencyStrip.d.ts.map +1 -1
  384. package/dist/ui/analysis/DataTab.d.ts +1 -1
  385. package/dist/ui/analysis/DimensionCard.d.ts.map +1 -1
  386. package/dist/ui/analysis/DisplayTab.d.ts +1 -1
  387. package/dist/ui/analysis/DisplayTab.d.ts.map +1 -1
  388. package/dist/ui/analysis/DrillMenu.d.ts +1 -1
  389. package/dist/ui/analysis/DroppedNotice.d.ts +1 -1
  390. package/dist/ui/analysis/ElementsSlot.d.ts +1 -1
  391. package/dist/ui/analysis/ExportMenu.d.ts +3 -3
  392. package/dist/ui/analysis/ExportMenu.d.ts.map +1 -1
  393. package/dist/ui/analysis/FormulaCard.d.ts.map +1 -1
  394. package/dist/ui/analysis/HavingRows.d.ts +1 -1
  395. package/dist/ui/analysis/HavingRows.d.ts.map +1 -1
  396. package/dist/ui/analysis/LevelOptions.d.ts +1 -1
  397. package/dist/ui/analysis/MapOptions.d.ts +1 -1
  398. package/dist/ui/analysis/MetricCard.d.ts +1 -1
  399. package/dist/ui/analysis/MetricCard.d.ts.map +1 -1
  400. package/dist/ui/analysis/MetricCondition.d.ts +1 -1
  401. package/dist/ui/analysis/MetricCondition.d.ts.map +1 -1
  402. package/dist/ui/analysis/MetricSlot.d.ts +1 -1
  403. package/dist/ui/analysis/MetricSlot.d.ts.map +1 -1
  404. package/dist/ui/analysis/RangeSlot.d.ts +1 -1
  405. package/dist/ui/analysis/ReferenceOptions.d.ts +1 -1
  406. package/dist/ui/analysis/TermTip.d.ts +1 -1
  407. package/dist/ui/analysis/TopRow.d.ts +1 -1
  408. package/dist/ui/analysis/TopRow.d.ts.map +1 -1
  409. package/dist/ui/analysis/Tray.d.ts +1 -1
  410. package/dist/ui/analysis/Tray.d.ts.map +1 -1
  411. package/dist/ui/analysis/VisualizationPanel.d.ts +2 -2
  412. package/dist/ui/analysis/VisualizationPanel.d.ts.map +1 -1
  413. package/dist/ui/analysis/editing.d.ts +2 -2
  414. package/dist/ui/analysis/editing.d.ts.map +1 -1
  415. package/dist/ui/analysis/exportOffer.d.ts +3 -3
  416. package/dist/ui/analysis/headerSort.d.ts.map +1 -1
  417. package/dist/ui/analysis/imageExport.d.ts +3 -3
  418. package/dist/ui/analysis/imageExport.d.ts.map +1 -1
  419. package/dist/ui/charts/EChart.d.ts +2 -2
  420. package/dist/ui/charts/GeoMap.d.ts +1 -1
  421. package/dist/ui/charts/Heatmap.d.ts +1 -1
  422. package/dist/ui/charts/MetricCard.d.ts.map +1 -1
  423. package/dist/ui/charts/PieSlices.d.ts +1 -1
  424. package/dist/ui/charts/ScatterPoints.d.ts +1 -1
  425. package/dist/ui/charts/ScatterPoints.d.ts.map +1 -1
  426. package/dist/ui/charts/axis.d.ts +2 -2
  427. package/dist/ui/charts/cartesianTooltip.d.ts +2 -2
  428. package/dist/ui/charts/dateTicks.d.ts +2 -2
  429. package/dist/ui/charts/dateTicks.d.ts.map +1 -1
  430. package/dist/ui/charts/family.d.ts +1 -1
  431. package/dist/ui/charts/family.d.ts.map +1 -1
  432. package/dist/ui/charts/familyViews.d.ts +1 -1
  433. package/dist/ui/charts/frameClass.d.ts +2 -2
  434. package/dist/ui/charts/highlight.d.ts +2 -2
  435. package/dist/ui/charts/image.d.ts +22 -6
  436. package/dist/ui/charts/image.d.ts.map +1 -1
  437. package/dist/ui/charts/maps.d.ts +1 -1
  438. package/dist/ui/charts/waterfallOption.d.ts +2 -2
  439. package/dist/ui/colorMode.d.ts +1 -2
  440. package/dist/ui/colorMode.d.ts.map +1 -1
  441. package/dist/ui/columns/ColumnSettings.d.ts +6 -1
  442. package/dist/ui/columns/ColumnSettings.d.ts.map +1 -1
  443. package/dist/ui/dashboard/AddMenu.d.ts +2 -2
  444. package/dist/ui/dashboard/Board.d.ts +1 -1
  445. package/dist/ui/dashboard/BoardDestination.d.ts +2 -2
  446. package/dist/ui/dashboard/BoardFilters.d.ts +1 -1
  447. package/dist/ui/dashboard/BoardWidth.d.ts +1 -1
  448. package/dist/ui/dashboard/ClickSettings.d.ts +4 -4
  449. package/dist/ui/dashboard/ContentEditor.d.ts +1 -1
  450. package/dist/ui/dashboard/DashboardArrange.d.ts +1 -1
  451. package/dist/ui/dashboard/DashboardGrid.d.ts +3 -3
  452. package/dist/ui/dashboard/DashboardGrid.d.ts.map +1 -1
  453. package/dist/ui/dashboard/{DashboardPanel.d.ts → DashboardPanelCard.d.ts} +3 -3
  454. package/dist/ui/dashboard/DashboardPanelCard.d.ts.map +1 -0
  455. package/dist/ui/dashboard/DashboardPanels.d.ts +4 -4
  456. package/dist/ui/dashboard/DashboardPanels.d.ts.map +1 -1
  457. package/dist/ui/dashboard/DashboardTabs.d.ts +1 -1
  458. package/dist/ui/dashboard/EditBar.d.ts +1 -1
  459. package/dist/ui/dashboard/FilterBar.d.ts +1 -1
  460. package/dist/ui/dashboard/FilterOrder.d.ts +1 -1
  461. package/dist/ui/dashboard/FilterReadings.d.ts +1 -1
  462. package/dist/ui/dashboard/FilterReadings.d.ts.map +1 -1
  463. package/dist/ui/dashboard/FilterSettings.d.ts +2 -2
  464. package/dist/ui/dashboard/FilterSettings.d.ts.map +1 -1
  465. package/dist/ui/dashboard/FilterSheet.d.ts +1 -1
  466. package/dist/ui/dashboard/FilterWiring.d.ts +2 -2
  467. package/dist/ui/dashboard/GridBlocksLayer.d.ts +1 -1
  468. package/dist/ui/dashboard/GroupingControl.d.ts +4 -4
  469. package/dist/ui/dashboard/GroupingControl.d.ts.map +1 -1
  470. package/dist/ui/dashboard/NewAnalysisDialog.d.ts +1 -1
  471. package/dist/ui/dashboard/NewAnalysisDialog.d.ts.map +1 -1
  472. package/dist/ui/dashboard/PanelBodies.d.ts +9 -8
  473. package/dist/ui/dashboard/PanelBodies.d.ts.map +1 -1
  474. package/dist/ui/dashboard/PanelExport.d.ts +3 -3
  475. package/dist/ui/dashboard/PanelMenu.d.ts +1 -1
  476. package/dist/ui/dashboard/PresentationDialog.d.ts +1 -1
  477. package/dist/ui/dashboard/PresentationDialog.d.ts.map +1 -1
  478. package/dist/ui/dashboard/ScrollCue.d.ts +1 -1
  479. package/dist/ui/dashboard/ViewPicker.d.ts +1 -1
  480. package/dist/ui/dashboard/ViewPicker.d.ts.map +1 -1
  481. package/dist/ui/dashboard/buildShell.d.ts +2 -2
  482. package/dist/ui/dashboard/building.d.ts +1 -1
  483. package/dist/ui/dashboard/building.d.ts.map +1 -1
  484. package/dist/ui/dashboard/commands.d.ts +4 -4
  485. package/dist/ui/dashboard/commands.d.ts.map +1 -1
  486. package/dist/ui/dashboard/extensions.d.ts +1 -1
  487. package/dist/ui/dashboard/filterModes.d.ts +3 -3
  488. package/dist/ui/dashboard/filterOutcome.d.ts.map +1 -1
  489. package/dist/ui/dashboard/findings.d.ts +1 -1
  490. package/dist/ui/dashboard/gridBlocks.d.ts +1 -1
  491. package/dist/ui/dashboard/panelFit.d.ts +2 -2
  492. package/dist/ui/dashboard/press.d.ts +2 -2
  493. package/dist/ui/dashboard/press.d.ts.map +1 -1
  494. package/dist/ui/dashboard/reveal.d.ts +1 -1
  495. package/dist/ui/dashboard/scrollMore.d.ts +1 -1
  496. package/dist/ui/datasetBindings.d.ts +3 -11
  497. package/dist/ui/datasetBindings.d.ts.map +1 -1
  498. package/dist/ui/embed/EmbedFrame.d.ts +1 -1
  499. package/dist/ui/embed/EmbedFrame.d.ts.map +1 -1
  500. package/dist/ui/embed/EmbedHead.d.ts +5 -5
  501. package/dist/ui/embed/EmbedHead.d.ts.map +1 -1
  502. package/dist/ui/embed/EmbeddedAnalysis.d.ts +4 -4
  503. package/dist/ui/embed/EmbeddedAnalysis.d.ts.map +1 -1
  504. package/dist/ui/embed/EmbeddedRecord.d.ts +1 -1
  505. package/dist/ui/embed/options.d.ts +4 -4
  506. package/dist/ui/embed/options.d.ts.map +1 -1
  507. package/dist/ui/filter/inputs/duration.d.ts.map +1 -1
  508. package/dist/ui/filter/inputs/remote.d.ts +3 -1
  509. package/dist/ui/filter/inputs/remote.d.ts.map +1 -1
  510. package/dist/ui/index.d.ts +6 -7
  511. package/dist/ui/index.d.ts.map +1 -1
  512. package/dist/ui/kit/ExportDialog.d.ts +2 -2
  513. package/dist/ui/kit/ExportDialog.d.ts.map +1 -1
  514. package/dist/ui/kit/IconButton.d.ts +1 -1
  515. package/dist/ui/kit/MessagesProvider.d.ts +3 -3
  516. package/dist/ui/kit/RenameInput.d.ts +2 -2
  517. package/dist/ui/kit/RenderBoundary.d.ts.map +1 -1
  518. package/dist/ui/kit/RowItem.d.ts +1 -1
  519. package/dist/ui/kit/ViewSurface.d.ts +16 -6
  520. package/dist/ui/kit/ViewSurface.d.ts.map +1 -1
  521. package/dist/ui/kit/alerts.d.ts +2 -2
  522. package/dist/ui/kit/alerts.d.ts.map +1 -1
  523. package/dist/ui/kit/chartFailure.d.ts +1 -3
  524. package/dist/ui/kit/chartFailure.d.ts.map +1 -1
  525. package/dist/ui/kit/datePart.d.ts +2 -2
  526. package/dist/ui/kit/datePart.d.ts.map +1 -1
  527. package/dist/ui/kit/display.d.ts +25 -6
  528. package/dist/ui/kit/display.d.ts.map +1 -1
  529. package/dist/ui/kit/dragPlugins.d.ts +3 -3
  530. package/dist/ui/kit/failureSink.d.ts +1 -1
  531. package/dist/ui/kit/failureSink.d.ts.map +1 -1
  532. package/dist/ui/kit/features.d.ts +2 -2
  533. package/dist/ui/kit/features.d.ts.map +1 -1
  534. package/dist/ui/kit/icon.d.ts +9 -0
  535. package/dist/ui/kit/icon.d.ts.map +1 -0
  536. package/dist/ui/kit/kinds.d.ts +4 -4
  537. package/dist/ui/kit/kinds.d.ts.map +1 -1
  538. package/dist/ui/kit/layout.d.ts +2 -2
  539. package/dist/ui/kit/messages.d.ts.map +1 -1
  540. package/dist/ui/kit/presets.d.ts +2 -2
  541. package/dist/ui/kit/summary.d.ts +8 -10
  542. package/dist/ui/kit/summary.d.ts.map +1 -1
  543. package/dist/ui/kit/surfaceContext.d.ts +4 -3
  544. package/dist/ui/kit/surfaceContext.d.ts.map +1 -1
  545. package/dist/ui/kit/surfaceKeys.d.ts +1 -1
  546. package/dist/ui/kit/toolbar.d.ts +21 -4
  547. package/dist/ui/kit/toolbar.d.ts.map +1 -1
  548. package/dist/ui/kit/variants.d.ts +5 -5
  549. package/dist/ui/manage/DatasetWordingForm.d.ts +2 -2
  550. package/dist/ui/messages/analysis.d.ts +61 -57
  551. package/dist/ui/messages/analysis.d.ts.map +1 -1
  552. package/dist/ui/messages/building.d.ts +1 -1
  553. package/dist/ui/messages/capabilities.d.ts +5 -1
  554. package/dist/ui/messages/capabilities.d.ts.map +1 -1
  555. package/dist/ui/messages/clicks.d.ts +1 -1
  556. package/dist/ui/messages/datasets.d.ts +3 -2
  557. package/dist/ui/messages/datasets.d.ts.map +1 -1
  558. package/dist/ui/messages/definition.d.ts +2 -1
  559. package/dist/ui/messages/definition.d.ts.map +1 -1
  560. package/dist/ui/messages/embed.d.ts +1 -1
  561. package/dist/ui/messages/en.d.ts +238 -221
  562. package/dist/ui/messages/en.d.ts.map +1 -1
  563. package/dist/ui/messages/export.d.ts +1 -1
  564. package/dist/ui/messages/filter.d.ts +98 -98
  565. package/dist/ui/messages/filter.d.ts.map +1 -1
  566. package/dist/ui/messages/filters.d.ts +1 -1
  567. package/dist/ui/messages/record.d.ts +20 -15
  568. package/dist/ui/messages/record.d.ts.map +1 -1
  569. package/dist/ui/messages/view.d.ts +51 -49
  570. package/dist/ui/messages/view.d.ts.map +1 -1
  571. package/dist/ui/messages/wireKey.d.ts +17 -0
  572. package/dist/ui/messages/wireKey.d.ts.map +1 -0
  573. package/dist/ui/messages/zh-CN.d.ts.map +1 -1
  574. package/dist/ui/record/CardSettings.d.ts.map +1 -1
  575. package/dist/ui/record/CardSummaries.d.ts +1 -1
  576. package/dist/ui/record/OffscreenSummary.d.ts +1 -1
  577. package/dist/ui/record/RecordDetail.d.ts +1 -2
  578. package/dist/ui/record/RecordDetail.d.ts.map +1 -1
  579. package/dist/ui/record/RecordKanban.d.ts +1 -1
  580. package/dist/ui/record/RecordPagination.d.ts +3 -1
  581. package/dist/ui/record/RecordPagination.d.ts.map +1 -1
  582. package/dist/ui/record/SelectionBar.d.ts +2 -2
  583. package/dist/ui/record/SortableHeader.d.ts.map +1 -1
  584. package/dist/ui/record/cells.d.ts.map +1 -1
  585. package/dist/ui/record/exportOffer.d.ts +1 -1
  586. package/dist/ui/record/exportOffer.d.ts.map +1 -1
  587. package/dist/ui/record/kanbanDrag.d.ts +2 -2
  588. package/dist/ui/record/offscreenSummaries.d.ts +2 -2
  589. package/dist/ui/record/overflow.d.ts +1 -1
  590. package/dist/ui/record/queryAnnouncement.d.ts.map +1 -1
  591. package/dist/ui/record/resultCount.d.ts +10 -0
  592. package/dist/ui/record/resultCount.d.ts.map +1 -0
  593. package/dist/ui/record/sticky.d.ts +1 -1
  594. package/dist/ui/record/useOffscreenColumns.d.ts +1 -1
  595. package/dist/ui/record/useSummaries.d.ts.map +1 -1
  596. package/dist/ui/sort/SortSettings.d.ts.map +1 -1
  597. package/dist/ui/theme/tokens.d.ts +1 -1
  598. package/dist/ui/viewNavigation.d.ts.map +1 -1
  599. package/dist/ui/workbench/AddToDashboardDialog.d.ts +1 -1
  600. package/dist/ui/workbench/AnalysisParts.d.ts +1 -1
  601. package/dist/ui/workbench/MoreViewActions.d.ts +1 -1
  602. package/dist/ui/workbench/OriginBar.d.ts +1 -1
  603. package/dist/ui/workbench/ResultBlock.d.ts +1 -1
  604. package/dist/ui/workbench/Sidebar.d.ts +2 -2
  605. package/dist/ui/workbench/StatusLine.d.ts +1 -1
  606. package/dist/ui/workbench/ViewEngineProvider.d.ts +0 -9
  607. package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
  608. package/dist/ui/workbench/WorkbenchShell.d.ts +3 -3
  609. package/dist/ui/workbench/WorkbenchShell.d.ts.map +1 -1
  610. package/dist/ui/workbench/address.d.ts.map +1 -1
  611. package/dist/ui.js +13764 -13812
  612. package/dist/ui.js.map +1 -1
  613. package/dist/{viewRuntimeTypes-B3B6hbXr.js → viewRuntimeTypes-BCdG5xRp.js} +1950 -2122
  614. package/dist/viewRuntimeTypes-BCdG5xRp.js.map +1 -0
  615. package/package.json +13 -13
  616. package/dist/actions-CgaL6eEe.js.map +0 -1
  617. package/dist/cartesianBrush-HLU12ig5.js.map +0 -1
  618. package/dist/clickDraft-CdUtkL4y.js +0 -184
  619. package/dist/clickDraft-CdUtkL4y.js.map +0 -1
  620. package/dist/dashboard/migrate.d.ts +0 -33
  621. package/dist/dashboard/migrate.d.ts.map +0 -1
  622. package/dist/react/useViewEngine.d.ts.map +0 -1
  623. package/dist/react-BuHt29n6.js +0 -3855
  624. package/dist/react-BuHt29n6.js.map +0 -1
  625. package/dist/runtime/storedViews.d.ts +0 -10
  626. package/dist/runtime/storedViews.d.ts.map +0 -1
  627. package/dist/ui/dashboard/DashboardPanel.d.ts.map +0 -1
  628. package/dist/viewRuntimeTypes-B3B6hbXr.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { Issue, ViewConfig } from '../model/index.js';
2
2
  /**
3
- * What the draft says that the applied config does not (D17-6).
3
+ * What the draft says that the applied config does not.
4
4
  *
5
5
  * "Changed, not applied" is one of the screen's three credentials (D2), and
6
6
  * it used to be measured on the filter tree alone. Every other member of the
@@ -66,7 +66,7 @@ export declare function pendingBesides<C extends ViewConfig>(state: {
66
66
  /**
67
67
  * Whether the draft differs from what was saved **only** in how the result
68
68
  * is drawn — the layout, the chart (`presentationMembers`) — and in at least
69
- * one of those (D23 Q15). The title bar then says 「只改了展示」 rather than
69
+ * one of those. The title bar then says 「只改了展示」 rather than
70
70
  * a bare 「已修改」, and takes the edits back without asking: what would be
71
71
  * lost is a way of looking, not a question, and putting the saved one back
72
72
  * runs nothing (a presentation edit never reached `applied`).
@@ -2,7 +2,7 @@ import { ViewInstanceSummary, ViewScope } from '../model/index.js';
2
2
  import { InstancePermissions, ViewPermissions, ViewStore } from '../store/ViewStore.js';
3
3
  /**
4
4
  * Everything is allowed when a store declares no permissions — everything a
5
- * silence allows: `editSystem` is not among it (D81).
5
+ * silence allows: `editSystem` is not among it.
6
6
  */
7
7
  export declare const ALLOW_ALL: ViewPermissions;
8
8
  /**
@@ -28,7 +28,7 @@ interface InstanceAbilities extends Required<InstancePermissions> {
28
28
  * system view read-only whatever that answer is — it lives in code or in
29
29
  * the backend's configuration, and no store write can reach it — unless it
30
30
  * is one the store keeps (`stored`), its id is not a code view's
31
- * (`system:`), and the host grants `editSystem` (D81). Then the store's
31
+ * (`system:`), and the host grants `editSystem`. Then the store's
32
32
  * answer applies to it as to a shared view, bar `changeAudience`, which is
33
33
  * always false: a system view never moves audience.
34
34
  *
@@ -1,5 +1,5 @@
1
1
  import { ViewInstanceSummary, ViewPreferences } from '../model/index.js';
2
- import { ViewStore } from '../store/ViewStore.js';
2
+ import { ReadOptions, ViewStore } from '../store/ViewStore.js';
3
3
  export declare class PreferenceCache {
4
4
  private readonly store;
5
5
  private readonly cache;
@@ -17,7 +17,7 @@ export declare class PreferenceCache {
17
17
  * read started before that write, so it answers the cached ones instead,
18
18
  * and the next reorder does not start from a revision already gone.
19
19
  */
20
- read(definitionId: string): Promise<ViewPreferences>;
20
+ read(definitionId: string, options?: ReadOptions): Promise<ViewPreferences>;
21
21
  /** Remembers preferences a write has just confirmed. */
22
22
  note(definitionId: string, preferences: ViewPreferences): void;
23
23
  /** What a write starts from: the last value known, else a read. */
@@ -1 +1 @@
1
- {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../src/runtime/preferences.ts"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsC;IAC5D;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;gBAEvC,KAAK,EAAE,SAAS;IAI5B;;;;;OAKG;IACG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAS1D,wDAAwD;IACxD,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,GAAG,IAAI;IAK9D,mEAAmE;IAC7D,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAA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,EACzC,WAAW,EAAE,eAAe,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CAMf"}
@@ -1 +1 @@
1
- {"version":3,"file":"queryWeight.d.ts","sourceRoot":"","sources":["../../src/runtime/queryWeight.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,MAAM,CAAC,EAAE,gBAAgB,GACxB,WAAW,CAmBb;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAatE"}
1
+ {"version":3,"file":"queryWeight.d.ts","sourceRoot":"","sources":["../../src/runtime/queryWeight.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AAGnC;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,MAAM,CAAC,EAAE,gBAAgB,GACxB,WAAW,CAmBb;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAatE"}
@@ -21,7 +21,10 @@ export declare class RecordDataViewRuntime extends DataViewRuntime<RecordViewCon
21
21
  * refusal and never a loop.
22
22
  */
23
23
  private restarted;
24
- /** Tells the host of an export whose rows could not be fetched (D40). */
24
+ /**
25
+ * Tells the host of an export whose rows could not be fetched, saying
26
+ * which view as it is at the moment of the failure.
27
+ */
25
28
  private readonly exportFailed;
26
29
  constructor(options: ViewRuntimeOptions<RecordViewConfig>);
27
30
  page(target: RecordPageTarget): void;
@@ -43,6 +46,12 @@ export declare class RecordDataViewRuntime extends DataViewRuntime<RecordViewCon
43
46
  */
44
47
  exportRows(options?: ExportRowsOptions): Promise<ExportedRows>;
45
48
  fetchRecord(key: RecordKey, signal?: AbortSignal): Promise<RecordData | null>;
49
+ /**
50
+ * Asks the names of the ids a record read whole holds: every
51
+ * reference field of the definition, since a detail shows them all. The
52
+ * record shows at once with its ids; the read's signal calls them off.
53
+ */
54
+ private askRecordLabels;
46
55
  /**
47
56
  * A draft that changes only how the rows on screen are drawn keeps them:
48
57
  * the page, its selection and the reader's place stay, and only the
@@ -1 +1 @@
1
- {"version":3,"file":"recordRuntime.d.ts","sourceRoot":"","sources":["../../src/runtime/recordRuntime.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;GAOG;AACH,qBAAa,qBACX,SAAQ,eAAe,CAAC,gBAAgB,CACxC,YAAW,iBAAiB;IAE5B,wCAAwC;IACxC,OAAO,CAAC,MAAM,CAA+B;I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AAU,GAAG,IAAI,CAAC;IAsB7B;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAMvB;;;;;;;;;;;;;;;OAeG;cACgB,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;IA2BxE,oEAAoE;cACjD,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;cAKxD,OAAO,IAAI,gBAAgB,GAAG,SAAS;IAI1D;;;;;OAKG;cACgB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO;IAS5D;;;;OAIG;cACgB,MAAM,CACvB,IAAI,EAAE,aAAa,EACnB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI;IAYrD;;;OAGG;cACgB,KAAK,IAAI,OAAO;IAInC,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,UAAU;CAKnB;AAiBD,6DAA6D;AAC7D,wBAAgB,eAAe,CAC7B,OAAO,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAC1C,eAAe,CAIjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,WAAW,CAAC,cAAc,CAAC,GACnC,OAAO,IAAI,iBAAiB,CAE9B"}
@@ -0,0 +1,170 @@
1
+ import { FieldOption, RuntimeLimits } from '../model/index.js';
2
+ import { RuntimeEnvironment } from './environment.js';
3
+ import { OptionSource, SourceOptions } from './source.js';
4
+ /** A reference id, as a row holds it and `OptionSource.resolve` is asked. */
5
+ export type ReferenceId = string | number;
6
+ /**
7
+ * What a reference id reads as right now. Anything but `resolved` shows the
8
+ * id itself: `pending` while it is asked, `unresolved` when the source left
9
+ * it out, its read failed (asked again next time) or nobody asked yet.
10
+ */
11
+ export type ReferenceLabel = {
12
+ readonly status: 'resolved';
13
+ readonly option: FieldOption;
14
+ } | {
15
+ readonly status: 'pending';
16
+ } | {
17
+ readonly status: 'unresolved';
18
+ };
19
+ /**
20
+ * How a view reads reference ids as names: what one id reads as now,
21
+ * and a subscription that says when that may have changed. The engine
22
+ * resolves what its views show; a host's own renderer only reads.
23
+ */
24
+ export interface ReferenceLabelReader {
25
+ /** What `id` of `remote` reads as now. */
26
+ label(remote: string, id: ReferenceId): ReferenceLabel;
27
+ /** The text `id` reads as: its label once resolved, else the id. */
28
+ text(remote: string, id: ReferenceId): string;
29
+ /** Told after every change to what an id reads as. */
30
+ subscribe(listener: () => void): () => void;
31
+ /** Moves on every change, so a reader can tell a stale reading. */
32
+ readonly version: number;
33
+ }
34
+ /** What `ReferenceLabels` stands on: the host's sources and its budget. */
35
+ export interface ReferenceLabelsHost {
36
+ /** The host's `resolveOptions`; left out, every id reads as itself. */
37
+ resolveOptions?: ((remote: string) => OptionSource) | undefined;
38
+ /** The most ids one `resolve` is asked (`RuntimeLimits.referenceBatch`). */
39
+ batch: number;
40
+ /**
41
+ * The most `resolve` requests in flight at once, across every remote
42
+ * (`RuntimeLimits.referenceConcurrency`); the rest wait their turn.
43
+ */
44
+ concurrency: number;
45
+ /**
46
+ * How long one request may take, in milliseconds
47
+ * (`RuntimeLimits.referenceTimeout`); past it the request fails like
48
+ * any failure. Left out, a request may take as long as its source does.
49
+ */
50
+ timeout?: number;
51
+ /** The clock the timeout runs on; the ambient one when left out. */
52
+ timers?: Pick<RuntimeEnvironment, 'setTimeout' | 'clearTimeout'>;
53
+ /** A read that failed, for the host to hear of; never a caller's abort. */
54
+ failed(remote: string, error: unknown): void;
55
+ }
56
+ /**
57
+ * Who a lookup is for. A view's own (`screen`: a page, a result's groups,
58
+ * the conditions it shows, a record read whole) goes out before an
59
+ * export's, which takes a slot only while no view's lookup is waiting.
60
+ */
61
+ export type LabelLane = 'screen' | 'export';
62
+ /** What a `want` is asked with: its caller's signal, and its lane. */
63
+ export interface LabelWant extends SourceOptions {
64
+ /** `screen` when left out. */
65
+ lane?: LabelLane;
66
+ }
67
+ /** A lookup that took longer than `RuntimeLimits.referenceTimeout`. */
68
+ export declare class ReferenceLabelTimeoutError extends Error {
69
+ readonly remote: string;
70
+ /** In milliseconds, as `RuntimeLimits.referenceTimeout` says it. */
71
+ readonly timeout: number;
72
+ constructor(remote: string,
73
+ /** In milliseconds, as `RuntimeLimits.referenceTimeout` says it. */
74
+ timeout: number);
75
+ }
76
+ /**
77
+ * An engine's cache: its host's sources (an engine with no `resolveOptions`
78
+ * throws for each, which reads as no source), its batch and concurrency,
79
+ * and a failed read told to `onError` as a `labels` query.
80
+ */
81
+ export declare function engineLabels(engine: {
82
+ resolveOptions(remote: string): OptionSource;
83
+ readonly limits: RuntimeLimits;
84
+ readonly environment: RuntimeEnvironment;
85
+ }): ReferenceLabels;
86
+ /**
87
+ * The labels of reference ids, one cache for the whole engine: every
88
+ * runtime and dashboard panel reads it, so an id one view resolved is known
89
+ * to the next, and the host invalidates it in one call.
90
+ *
91
+ * Callers ask in batches (`want`) — a page's ids, a result's group keys, an
92
+ * export's rows — and read one id at a time (`label`). An id known, or being
93
+ * asked, is never asked again: a caller with ids already in flight joins
94
+ * that request, and the request is called off only when every caller that
95
+ * waits on it has called off. What a source leaves out is remembered as
96
+ * unresolved; a read that failed is forgotten, so the next `want` asks again.
97
+ *
98
+ * At most `concurrency` requests are out at once, whatever their remote: the
99
+ * rest queue in the order they were asked and go out as others settle, so an
100
+ * export of ten thousand rows never fires fifty lookups at once — and a
101
+ * view's own lookups go ahead of an export's, so a file being written never
102
+ * holds back the names on screen. A queued request is joined like one in
103
+ * flight; one whose every caller has called off is dropped before it is
104
+ * sent, and one already sent gives its slot back at once, whether or not
105
+ * its source stops. One past `timeout` fails as any read does.
106
+ */
107
+ export declare class ReferenceLabels implements ReferenceLabelReader {
108
+ private readonly host;
109
+ /** By remote, then id: the option, or `null` for one the source left out. */
110
+ private readonly known;
111
+ private readonly asked;
112
+ private readonly sources;
113
+ private readonly listeners;
114
+ /** Requests waiting for a slot, oldest first. */
115
+ private readonly queue;
116
+ private running;
117
+ private seq;
118
+ constructor(host: ReferenceLabelsHost);
119
+ /**
120
+ * The host's source for `remote`, asked of `resolveOptions` once; `null`
121
+ * when there is none to ask.
122
+ */
123
+ sourceOf(remote: string): OptionSource | null;
124
+ /** What `id` of `remote` reads as now. */
125
+ label(remote: string, id: ReferenceId): ReferenceLabel;
126
+ /** The text `id` reads as: its label once resolved, else the id. */
127
+ text(remote: string, id: ReferenceId): string;
128
+ /**
129
+ * Resolves what of `ids` is not known yet, at most `batch` to a request,
130
+ * and settles once each of them has: resolved, left out, or failed — a
131
+ * failure reads as the id and is told to the host, never thrown. Rejects
132
+ * only with the caller's own abort.
133
+ */
134
+ want(remote: string, ids: Iterable<ReferenceId>, options?: LabelWant): Promise<void>;
135
+ /**
136
+ * Forgets what is known: of one remote, or of every one; of some ids, or
137
+ * all of them. A request in flight still lands, and is read as current.
138
+ */
139
+ invalidate(remote?: string, ids?: Iterable<ReferenceId>): void;
140
+ /** Told after every change to what an id reads as. */
141
+ subscribe(listener: () => void): () => void;
142
+ /** Moves on every change, so a reader can tell a stale reading. */
143
+ get version(): number;
144
+ private inFlight;
145
+ /** A request for `ids`, sent now if a slot is free, else queued. */
146
+ private ask;
147
+ /**
148
+ * Sends what is queued while a slot is free: a view's lookups first, in
149
+ * the order they were asked, then an export's.
150
+ */
151
+ private pump;
152
+ /**
153
+ * `asked` ran past its time: it fails as any read does — told to the
154
+ * host, forgotten, its ids shown as themselves — and is called off, so
155
+ * its late answer is dropped and its slot is free at once.
156
+ */
157
+ private timedOut;
158
+ /** Asks the source, and keeps or forgets what it answers. */
159
+ private resolve;
160
+ /**
161
+ * Nobody waits on `asked` any more: it is called off — dropped, if it is
162
+ * still queued — and its ids are let go at once, so a caller arriving
163
+ * meanwhile asks afresh rather than joining a request that will answer
164
+ * nothing.
165
+ */
166
+ private callOff;
167
+ private letGo;
168
+ private changed;
169
+ }
170
+ //# sourceMappingURL=referenceLabels.d.ts.map
@@ -0,0 +1 @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OAAO,CAAK;IACpB,OAAO,CAAC,GAAG,CAAK;gBAEa,IAAI,EAAE,mBAAmB;IAEtD;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAc7C,0CAA0C;IAC1C,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,GAAG,cAAc;IAQtD,oEAAoE;IACpE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,GAAG,MAAM;IAK7C;;;;;OAKG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,EAC1B,OAAO,GAAE,SAAc,GACtB,OAAO,CAAC,IAAI,CAAC;IAmDhB;;;OAGG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI;IAU9D,sDAAsD;IACtD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO3C,mEAAmE;IACnE,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,OAAO,CAAC,QAAQ;IAMhB,oEAAoE;IACpE,OAAO,CAAC,GAAG;IAoDX;;;OAGG;IACH,OAAO,CAAC,IAAI;IASZ;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAehB,6DAA6D;IAC7D,OAAO,CAAC,OAAO;IAqCf;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAYf,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,OAAO;CAIhB"}
@@ -1,36 +1,27 @@
1
- import { Issue, TextResolver, ViewDefinition } from '../model/index.js';
1
+ import { Issue, RuntimeLimits, TextResolver, ViewDefinition } from '../model/index.js';
2
+ import { FieldKindRegistry } from '../filter/index.js';
2
3
  import { DatasetWordingEditor } from './datasetResources.js';
3
- import { OptionSource, ViewSource } from './source.js';
4
- /** What the engine's resources are read from; see `ViewEngineOptions`. */
5
- export interface ResourceHost {
6
- resources: readonly {
7
- definition: ViewDefinition;
8
- source?: ViewSource;
9
- }[];
10
- resolveOptions?(key: string): OptionSource;
11
- text?(key: string): string | undefined;
12
- onIssue?(issue: Issue): void;
13
- }
4
+ import { DefinitionRegistry } from './definitions.js';
5
+ import { OptionSource, RecordSource } from './source.js';
6
+ import { ViewEngineOptions, ViewResource } from './viewEngineOptions.js';
7
+ /** What the engine's resources are read from: the host's options. */
8
+ type ResourceHost = Pick<ViewEngineOptions, 'resources' | 'resolveOptions' | 'text' | 'onIssue'>;
14
9
  /**
15
- * The half of the engine that is what the host registered
16
- * (host-integration.md 4): each definition's source, by the key its
17
- * definitions name it by, and the words its keys are checked against
18
- * (`EngineText`, D2).
10
+ * What the host registered (host-integration.md 4), held by the engine
11
+ * rather than inherited by it: the definitions and what was said of them
12
+ * (`DefinitionRegistry`), each definition's source by the key its
13
+ * definitions name it by, each dataset's wording editor, the words the
14
+ * keys are checked against (`EngineText`), and where findings go. The
15
+ * engine's members of the same names hand on to these.
19
16
  */
20
- export declare abstract class EngineResources {
17
+ export declare class Resources {
21
18
  private readonly host;
22
- /**
23
- * The definitions as registered, keys and all: the registry's map rather
24
- * than the registry, so the engine's public type names nothing it does
25
- * not export (R2-85).
26
- */
27
- protected abstract readonly registered: ReadonlyMap<string, ViewDefinition>;
28
- /** Where `register` hands a definition to be judged and kept. */
29
- private keep;
19
+ /** The definitions, judged as they are registered. */
20
+ readonly registry: DefinitionRegistry;
30
21
  /** The words the definitions' keys are checked against; see `EngineText`. */
31
22
  private readonly text;
32
23
  private readonly sources;
33
- /** Each dataset's wording editor, by definition id (D91). */
24
+ /** Each dataset's wording editor, by definition id. */
34
25
  private readonly wordings;
35
26
  /** What was told to lack words, by language, code and key; see `setText`. */
36
27
  private readonly lacking;
@@ -38,86 +29,33 @@ export declare abstract class EngineResources {
38
29
  private readonly reporter;
39
30
  /** The ids a binding named that no resource registers, each told once. */
40
31
  private readonly unbound;
41
- constructor(host: ResourceHost);
42
- /**
43
- * Every registered definition, by id, as it was declared: its keys
44
- * (`text(key)`) are said where they are shown (`useSay`, `say`).
45
- */
32
+ constructor(host: ResourceHost, kinds: FieldKindRegistry, limits: RuntimeLimits);
33
+ /** See `ViewEngine.definitions`. */
46
34
  get definitions(): ReadonlyMap<string, ViewDefinition>;
47
- /**
48
- * The words the engine was built with for `key` (`ViewEngineOptions.text`),
49
- * or `undefined`: what a surface says a key in where its Provider's words
50
- * lack it.
51
- */
35
+ /** See `ViewEngine.startingWord`. */
52
36
  startingWord(key: string): string | undefined;
53
- /**
54
- * Checks the words a Provider says the definitions' keys in: its
55
- * `messages`, in its `language` (host-integration.md 3.1, D2). The
56
- * Provider calls this as they change; nothing is redrawn or rebuilt by
57
- * it — the keys are said where they are shown.
58
- *
59
- * The words set are checked on their own: a key they lack reads as
60
- * itself (`definition.text.unknown`), or in the words the engine started
61
- * with (`definition.text.fallback`) — a Chinese page showing an English
62
- * label is a gap too. A fallback is told only of words that say any of
63
- * the definitions' keys at all: words that say none (a Provider with no
64
- * catalogue of the definitions') leave them to the starting words, as
65
- * the host meant. Each key is told once per language, and again once
66
- * that language had it and lacks it again.
67
- */
37
+ /** See `ViewEngine.setText`. */
68
38
  setText(text: TextResolver | undefined, language?: string): void;
69
- /**
70
- * Whether a binding the host made (`bind`, host-integration.md 4) names a
71
- * registered definition. One that names none binds nothing — the routes,
72
- * the reading and the actions it carries would be lost without a word, a
73
- * misspelt id looking like a design — so it is told through `onIssue` as
74
- * `binding.definition.unknown`, once per id. A warning, not an error: a
75
- * binding may be meant for an engine nested further down (bindings pass
76
- * to inner hosts), or for a resource a feature flag left out, and a
77
- * binding that matches nothing breaks nothing. `ViewHost` asks this of
78
- * every binding it is given.
79
- */
39
+ /** See `ViewEngine.checkBinding`. */
80
40
  checkBinding(definitionId: string): boolean;
81
41
  /**
82
42
  * A finding with nobody to reject (`onIssue`), with the resource it is
83
43
  * about where there is one.
84
44
  */
85
- protected report(found: Issue, resource?: string): void;
86
- /**
87
- * Adds a resource at run time, or replaces the one of its definition's
88
- * id (host-integration.md 3.2, D84): a dataset published after the
89
- * engine was built, its definition derived from its descriptor
90
- * (`defineDataset`). It is judged and its findings told as the resources
91
- * given at construction are; views opened after this run on it, those
92
- * already open keep the definition they opened on until reopened.
93
- */
94
- register(resource: {
95
- definition: ViewDefinition;
96
- source?: ViewSource;
97
- /** A dataset's wording editor (D91), given by `DatasetResources` when its store keeps wording. */
98
- wording?: DatasetWordingEditor;
99
- }): void;
100
- /**
101
- * The editor of a dataset's wording (D91), where its resource was
102
- * registered with one: what the view manager's wording tab reads and saves.
103
- */
45
+ report(found: Issue, resource?: string): void;
46
+ /** See `ViewEngine.register`: the resource, without the boards asked again. */
47
+ register(resource: ViewResource): void;
48
+ /** See `ViewEngine.wordingOf`. */
104
49
  wordingOf(definitionId: string): DatasetWordingEditor | undefined;
105
50
  /**
106
- * Removes the resource of `definitionId` (D85): a dataset retired, or one
107
- * the directory no longer lists. Views already open keep running on it;
108
- * opening another reports the definition as not found, as a saved view of
109
- * a resource never registered does. `false` when there was none.
51
+ * See `ViewEngine.unregister`. A source another definition still reads
52
+ * is kept.
110
53
  */
111
54
  unregister(definitionId: string): boolean;
112
- /** Sets where `register` and `unregister` hand a definition: the engine's registry. */
113
- protected keepDefinitionsIn(keep: {
114
- register(definition: ViewDefinition): void;
115
- unregister(definitionId: string): void;
116
- }): void;
117
- /** Whether a resource registered a source under `key`. */
118
- protected hasSource(key: string): boolean;
119
55
  /** The source registered for a definition's `source` key. */
120
- resolveSource(key: string): ViewSource;
56
+ resolveSource(key: string): RecordSource;
57
+ /** See `ViewEngine.resolveOptions`. */
121
58
  resolveOptions(key: string): OptionSource;
122
59
  }
60
+ export {};
123
61
  //# sourceMappingURL=resources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/runtime/resources.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,KAAK,E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E,YAAY,GAAG,SAAS,EAAE,QAAQ,SAAK,GAAG,IAAI;IA6B5D,qCAAqC;IACrC,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAiB3C;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7C,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAStC,kCAAkC;IAClC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIjE;;;OAGG;IACH,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAezC,6DAA6D;IAC7D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IASxC,uCAAuC;IACvC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;CAQ1C"}
@@ -20,7 +20,7 @@ import { RecordViewConfig } from '../model/index.js';
20
20
  */
21
21
  export declare function restyledOnly(ran: RecordViewConfig, next: RecordViewConfig): 'drawn' | 'summaries' | null;
22
22
  /**
23
- * What a kanban asks besides a page's question (D83): that it is one, and
23
+ * What a kanban asks besides a page's question: that it is one, and
24
24
  * which lanes. Table and cards ask the same, so they compare equal here; the
25
25
  * kanban half a table keeps stored asks nothing until it is the layout.
26
26
  */
@@ -1,8 +1,9 @@
1
+ import { ReferenceLabels } from './referenceLabels.js';
1
2
  import { FilterTree, Issue, RuntimeLimits, ViewConfig, ViewDefinition, ViewInstance, ViewScope } from '../model/index.js';
2
3
  import { FieldKindRegistry } from '../filter/index.js';
3
4
  import { RuntimeEnvironment } from './environment.js';
4
5
  import { RequestRunner } from './requestRunner.js';
5
- import { OptionSource, ViewSource } from './source.js';
6
+ import { RecordSource } from './source.js';
6
7
  import { ManagedViewRuntime } from './viewRuntimeTypes.js';
7
8
  import { DefinitionRegistry } from './definitions.js';
8
9
  import { SourceCapabilities } from './capabilities.js';
@@ -20,9 +21,9 @@ interface RuntimeFactoryHost {
20
21
  readonly environment: RuntimeEnvironment;
21
22
  readonly runner: RequestRunner;
22
23
  /** Where a definition's data comes from, by `DataViewDefinition.source`. */
23
- resolveSource(key: string): ViewSource;
24
- /** Remote candidates of `reference` fields; absent when the host wired none. */
25
- resolveOptions?(key: string): OptionSource;
24
+ resolveSource(key: string): RecordSource;
25
+ /** Reference ids read as names, and the sources they are read from. */
26
+ readonly labels: ReferenceLabels;
26
27
  /** One instance, from the definition's code or from the store. */
27
28
  readInstance(instanceId: string): Promise<ViewInstance>;
28
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeFactory.d.ts","sourceRoot":"","sources":["../../src/runtime/runtimeFactory.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAOV,UAAU,EACV,KAAK,EACL,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK5D,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CAC5B;AAED,2DAA2D;AAC3D,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACz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MAAM,GAAG,YAAY,CAAC;IACzC,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,kEAAkE;IAClE,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACxD;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC1C;;;OAGG;IACH,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;AAKD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAK;IACrB,+EAA+E;IAC/E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;gBAEvC,IAAI,EAAE,kBAAkB;IAIpC,KAAK,CACH,UAAU,EAAE,cAAc,EAC1B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,eAAe,EACzB,WAAW,GAAE,UAAU,GAAG,IAAW,GACpC,kBAAkB;IAUrB,OAAO,CAAC,SAAS;IAoCjB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,cAAc;IAwDtB;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;IAsBhB,0EAA0E;IAC1E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAa3B;IAEF;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAW9B;IAEF;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAMhB;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAwBjC;IAEF;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,YAAY;CAGrB"}
@@ -1,72 +1,79 @@
1
- import { AggregationQuery, CursorPage, CursorQuery, FilterPagedQuery, PagedList } from '@ahoo-wang/wow-client/dsl';
2
- import { QueryDescriptorResult } from '../capabilities/cache.js';
1
+ import { AggregationQuery, CursorPage, CursorQuery, DescriptorResult, PagedQuery, PagedList } from '@ahoo-wang/wow-client/dsl';
3
2
  import { FieldOption, Issue, RecordData } from '../model/index.js';
4
3
  import { AnalysisProjection } from '../analysis/index.js';
5
4
  import { RecordProjection, SummaryRow } from '../record/index.js';
6
- export type { QueryDescriptorResult } from '../capabilities/cache.js';
5
+ /** What every read of a source takes: the signal that cancels it. */
6
+ export interface SourceOptions {
7
+ /**
8
+ * Aborted when a newer read takes this one's place or the view that asked
9
+ * is disposed; hand it on to the request.
10
+ */
11
+ readonly signal?: AbortSignal;
12
+ }
7
13
  /**
8
- * Where a definition's data comes from. Three of `QueryApi`'s methods, so a
9
- * Wow snapshot client satisfies it as it is; anything else can be written by
10
- * hand for a test or for a non-Wow backend.
11
- *
12
- * Cancellation is an `AbortController` rather than the `AbortSignal` every
13
- * other port takes (`OptionSource`, `ViewStore`) because that is what
14
- * `QueryApi` accepts, and this port exists so that a wow-client query client
15
- * plugs in unchanged. The controller is the engine's: it aborts it when a
16
- * newer request takes this one's place, or when it is disposed. A source
17
- * written by hand reads `abortController?.signal` and never aborts it. Should
18
- * wow-client move to a signal, this port follows in the same minor
19
- * (extension.md「宿主实现的接口怎样长」).
14
+ * Where a definition's data comes from: the reads of one Wow query route,
15
+ * in wow-client's own shapes, so any `QueryModelClient` — a generated
16
+ * `…SnapshotQueryClient`, a dataset's `DatasetClient.dataset(…)` — is a
17
+ * source as it is, with no adapter (`test/architecture.test.ts` holds both
18
+ * to it). A source written by hand, for a test or another backend, answers
19
+ * the same shapes and hands `options.signal` on.
20
20
  *
21
- * Written out rather than `Pick<QueryApi, 'paged' | 'cursor' | 'aggregate'>`,
22
- * for three reasons that all point the same way — this is the one type every
23
- * source implements, and it must say exactly what this package needs:
24
- *
25
- * - `QueryApi.paged` takes `PagedQueryRequest`, which is
26
- * `FilterPagedQuery | PagedQuery`, and `PagedQuery` is deprecated. Picking
27
- * it would write the deprecated Wow API into the port that every source
28
- * fills, which `test/architecture.test.ts` bans everywhere else;
29
- * - `QueryApi.aggregate` answers whatever row type its caller asserts
30
- * (`Row extends object`), and an asserted row is a row nothing checks.
31
- * Here it is `RecordData`, so every value arrives as `unknown` and is read
32
- * through a field's kind;
33
- * - the pick would spread `QueryApi`'s two type parameters and its per-method
34
- * generics over every implementation, a test's stub included, for no gain:
35
- * all three methods are used at one instantiation only.
36
- *
37
- * What the pick would have bought — noticing upstream drift — is bought
38
- * instead by an assignability assertion the compiler checks
39
- * (`test/architecture.test.ts`, "Wow protocol"): a `QueryApi` must go on
40
- * being a `ViewSource` without an adapter.
21
+ * Rows are `object`: a client's record type is an interface, which a
22
+ * `Record<string, unknown>` would refuse, and the engine reads every value
23
+ * through a field's path and kind anyway. A page's `total` is `null` when
24
+ * the route counts none, and a lower bound unless `exact`: the record
25
+ * runtime keeps both and says so.
41
26
  */
42
27
  export interface ViewSource {
43
- paged(query: FilterPagedQuery, attributes?: Record<string, unknown>, abortController?: AbortController): Promise<PagedList<RecordData>>;
44
- cursor(query: CursorQuery, attributes?: Record<string, unknown>, abortController?: AbortController): Promise<CursorPage<RecordData>>;
45
- aggregate(query: AggregationQuery, attributes?: Record<string, unknown>, abortController?: AbortController): Promise<RecordData[]>;
28
+ paged(query: PagedQuery, options?: SourceOptions): Promise<PagedList<object>>;
29
+ cursor(query: CursorQuery, options?: SourceOptions): Promise<CursorPage<object>>;
30
+ aggregate(query: AggregationQuery, options?: SourceOptions): Promise<object[]>;
46
31
  /**
47
32
  * The source's capability descriptor (capabilities.md 3): given the
48
- * version already held, an unchanged one answers `notModified`.
49
- * wow-view-store's `viewSourceOf` adapts wow-client's
50
- * `QueryModelClient.describe` to it. The engine reads it once per source before the first view over it
51
- * runs, narrows each definition to what it admits and takes its limits,
52
- * and checks it again on its own schedule. Left out, a view runs on the
53
- * definition and the default limits alone, as it did before descriptors.
33
+ * version already held, an unchanged one answers `notModified`. The
34
+ * engine reads it once per source before the first view over it runs,
35
+ * narrows each definition to what it admits and takes its limits, and
36
+ * checks it again on its own schedule. Left out, a view runs on the
37
+ * definition and the default limits alone.
54
38
  */
55
- describe?(previous?: string, attributes?: Record<string, unknown>, abortController?: AbortController): Promise<QueryDescriptorResult>;
39
+ describe?(version?: string, options?: SourceOptions): Promise<DescriptorResult>;
56
40
  }
41
+ /**
42
+ * A source as the engine reads it: the same reads, their rows as records.
43
+ * Internal: `resources` takes each `ViewSource` once, at registration, and
44
+ * every read inside the engine goes through this.
45
+ */
46
+ export interface RecordSource {
47
+ paged(query: PagedQuery, options?: SourceOptions): Promise<PagedList<RecordData>>;
48
+ cursor(query: CursorQuery, options?: SourceOptions): Promise<CursorPage<RecordData>>;
49
+ aggregate(query: AggregationQuery, options?: SourceOptions): Promise<RecordData[]>;
50
+ describe?(version?: string, options?: SourceOptions): Promise<DescriptorResult>;
51
+ }
52
+ /**
53
+ * The engine's view of a source: its rows are read as records, through
54
+ * fields, so the one cast the port's `object` rows need is made here.
55
+ */
56
+ export declare function recordSource(source: ViewSource): RecordSource;
57
57
  /**
58
58
  * Remote candidates of a `reference` field: a paged search, and a lookup by id
59
- * for the values a saved config already holds.
59
+ * that says the values rows and saved configs hold as their labels.
60
60
  */
61
61
  export interface OptionSource {
62
62
  search(input: {
63
63
  query: string;
64
64
  cursor?: string;
65
- }, signal?: AbortSignal): Promise<{
65
+ }, options?: SourceOptions): Promise<{
66
66
  items: FieldOption[];
67
67
  nextCursor: string | null;
68
68
  }>;
69
- resolve(ids: (string | number)[], signal?: AbortSignal): Promise<FieldOption[]>;
69
+ /**
70
+ * The options of `ids`, matched to them by `value`. The engine asks once
71
+ * per page for the ids it does not know yet, at most
72
+ * `RuntimeLimits.referenceBatch` to a request and
73
+ * `RuntimeLimits.referenceConcurrency` requests at a time; an id the
74
+ * answer leaves out is shown as itself.
75
+ */
76
+ resolve(ids: (string | number)[], options?: SourceOptions): Promise<FieldOption[]>;
70
77
  }
71
78
  /**
72
79
  * What one execution produced, already shaped by its kernel. The discriminant