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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/dist/{actions-BWlediub.js → actions-CThpS7Yj.js} +2479 -2437
  2. package/dist/actions-CThpS7Yj.js.map +1 -0
  3. package/dist/analysis/buckets.d.ts.map +1 -1
  4. package/dist/analysis/columns.d.ts +192 -0
  5. package/dist/analysis/columns.d.ts.map +1 -0
  6. package/dist/analysis/index.d.ts +1 -0
  7. package/dist/analysis/index.d.ts.map +1 -1
  8. package/dist/analysis/project.d.ts +2 -152
  9. package/dist/analysis/project.d.ts.map +1 -1
  10. package/dist/capabilities/analysis.d.ts.map +1 -1
  11. package/dist/capabilities/cache.d.ts +13 -0
  12. package/dist/capabilities/cache.d.ts.map +1 -1
  13. package/dist/capabilities/fields.d.ts +3 -17
  14. package/dist/capabilities/fields.d.ts.map +1 -1
  15. package/dist/capabilities/semantic.d.ts +24 -0
  16. package/dist/capabilities/semantic.d.ts.map +1 -0
  17. package/dist/dashboard/index.d.ts +1 -0
  18. package/dist/dashboard/index.d.ts.map +1 -1
  19. package/dist/dashboard/layout.d.ts +8 -40
  20. package/dist/dashboard/layout.d.ts.map +1 -1
  21. package/dist/dashboard/reorder.d.ts +43 -0
  22. package/dist/dashboard/reorder.d.ts.map +1 -0
  23. package/dist/dashboard/shape.d.ts +8 -0
  24. package/dist/dashboard/shape.d.ts.map +1 -0
  25. package/dist/dashboard/tabs.d.ts.map +1 -1
  26. package/dist/dashboard/validate.d.ts.map +1 -1
  27. package/dist/dashboard/validateContent.d.ts +3 -0
  28. package/dist/dashboard/validateContent.d.ts.map +1 -0
  29. package/dist/dashboard/validateFilters.d.ts.map +1 -1
  30. package/dist/{export-BCADqfu6.js → export-D6bnNjrA.js} +2 -2
  31. package/dist/{export-BCADqfu6.js.map → export-D6bnNjrA.js.map} +1 -1
  32. package/dist/filter/kinds/dateTime.d.ts.map +1 -1
  33. package/dist/filter/time.d.ts.map +1 -1
  34. package/dist/index.d.ts +10 -5
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +255 -220
  37. package/dist/index.js.map +1 -1
  38. package/dist/model/cartesian.d.ts +132 -0
  39. package/dist/model/cartesian.d.ts.map +1 -0
  40. package/dist/model/chart.d.ts +1 -130
  41. package/dist/model/chart.d.ts.map +1 -1
  42. package/dist/model/currency.d.ts +1 -1
  43. package/dist/model/currency.d.ts.map +1 -1
  44. package/dist/model/definition.d.ts +9 -0
  45. package/dist/model/definition.d.ts.map +1 -1
  46. package/dist/model/field.d.ts +3 -142
  47. package/dist/model/field.d.ts.map +1 -1
  48. package/dist/model/fieldNumeric.d.ts +78 -0
  49. package/dist/model/fieldNumeric.d.ts.map +1 -0
  50. package/dist/model/fieldTemporal.d.ts +68 -0
  51. package/dist/model/fieldTemporal.d.ts.map +1 -0
  52. package/dist/model/index.d.ts +3 -0
  53. package/dist/model/index.d.ts.map +1 -1
  54. package/dist/react/actionRunner.d.ts +17 -0
  55. package/dist/react/actionRunner.d.ts.map +1 -1
  56. package/dist/react/filterTree.d.ts +109 -0
  57. package/dist/react/filterTree.d.ts.map +1 -0
  58. package/dist/react/followUp.d.ts +105 -0
  59. package/dist/react/followUp.d.ts.map +1 -0
  60. package/dist/react/index.d.ts +6 -3
  61. package/dist/react/index.d.ts.map +1 -1
  62. package/dist/react/rulesClock.d.ts +20 -0
  63. package/dist/react/rulesClock.d.ts.map +1 -0
  64. package/dist/react/useAnalysisResult.d.ts +1 -80
  65. package/dist/react/useAnalysisResult.d.ts.map +1 -1
  66. package/dist/react/useFilterEditor.d.ts +24 -108
  67. package/dist/react/useFilterEditor.d.ts.map +1 -1
  68. package/dist/react/useRecordActions.d.ts +25 -0
  69. package/dist/react/useRecordActions.d.ts.map +1 -1
  70. package/dist/react/useRecordDetail.d.ts.map +1 -1
  71. package/dist/react/useRecordExport.d.ts.map +1 -1
  72. package/dist/react/useRecordTable.d.ts +6 -0
  73. package/dist/react/useRecordTable.d.ts.map +1 -1
  74. package/dist/react/useSaveCommands.d.ts +11 -0
  75. package/dist/react/useSaveCommands.d.ts.map +1 -1
  76. package/dist/react/useSearchBox.d.ts.map +1 -1
  77. package/dist/react/useStale.d.ts +24 -0
  78. package/dist/react/useStale.d.ts.map +1 -0
  79. package/dist/react/useWorkbench.d.ts +3 -61
  80. package/dist/react/useWorkbench.d.ts.map +1 -1
  81. package/dist/react/workbench/handOver.d.ts +1 -1
  82. package/dist/react/workbench/handOver.d.ts.map +1 -1
  83. package/dist/react/workbench/heldView.d.ts +112 -0
  84. package/dist/react/workbench/heldView.d.ts.map +1 -0
  85. package/dist/react/workbench/instanceSync.d.ts +5 -1
  86. package/dist/react/workbench/instanceSync.d.ts.map +1 -1
  87. package/dist/react/workbench/switching.d.ts +29 -0
  88. package/dist/react/workbench/switching.d.ts.map +1 -0
  89. package/dist/react-0RrtrG7t.js +4316 -0
  90. package/dist/react-0RrtrG7t.js.map +1 -0
  91. package/dist/react.js +1 -1
  92. package/dist/record/compile.d.ts +3 -1
  93. package/dist/record/compile.d.ts.map +1 -1
  94. package/dist/record/index.d.ts +1 -0
  95. package/dist/record/index.d.ts.map +1 -1
  96. package/dist/record/kanban.d.ts.map +1 -1
  97. package/dist/record/path.d.ts +10 -0
  98. package/dist/record/path.d.ts.map +1 -1
  99. package/dist/record/project.d.ts +9 -66
  100. package/dist/record/project.d.ts.map +1 -1
  101. package/dist/record/summaries.d.ts +68 -0
  102. package/dist/record/summaries.d.ts.map +1 -0
  103. package/dist/runtime/actions.d.ts +39 -0
  104. package/dist/runtime/actions.d.ts.map +1 -1
  105. package/dist/runtime/autoApply.d.ts +17 -2
  106. package/dist/runtime/autoApply.d.ts.map +1 -1
  107. package/dist/runtime/capabilities.d.ts +15 -1
  108. package/dist/runtime/capabilities.d.ts.map +1 -1
  109. package/dist/runtime/commandChecks.d.ts +8 -4
  110. package/dist/runtime/commandChecks.d.ts.map +1 -1
  111. package/dist/runtime/dashboard/commands.d.ts +3 -1
  112. package/dist/runtime/dashboard/commands.d.ts.map +1 -1
  113. package/dist/runtime/dashboard/editing.d.ts +10 -1
  114. package/dist/runtime/dashboard/editing.d.ts.map +1 -1
  115. package/dist/runtime/dashboard/history.d.ts +8 -0
  116. package/dist/runtime/dashboard/history.d.ts.map +1 -1
  117. package/dist/runtime/dashboard/panelSync.d.ts +57 -0
  118. package/dist/runtime/dashboard/panelSync.d.ts.map +1 -0
  119. package/dist/runtime/dashboardRuntime.d.ts +3 -20
  120. package/dist/runtime/dashboardRuntime.d.ts.map +1 -1
  121. package/dist/runtime/datasetResources.d.ts +29 -1
  122. package/dist/runtime/datasetResources.d.ts.map +1 -1
  123. package/dist/runtime/define/spec.d.ts +2 -1
  124. package/dist/runtime/define/spec.d.ts.map +1 -1
  125. package/dist/runtime/failure/failures.d.ts.map +1 -1
  126. package/dist/runtime/failure/issueReport.d.ts.map +1 -1
  127. package/dist/runtime/generations.d.ts +89 -0
  128. package/dist/runtime/generations.d.ts.map +1 -0
  129. package/dist/runtime/instanceWrites.d.ts.map +1 -1
  130. package/dist/runtime/panelViews.d.ts.map +1 -1
  131. package/dist/runtime/permissions.d.ts.map +1 -1
  132. package/dist/runtime/preferences.d.ts +37 -11
  133. package/dist/runtime/preferences.d.ts.map +1 -1
  134. package/dist/runtime/recordRuntime.d.ts +13 -0
  135. package/dist/runtime/recordRuntime.d.ts.map +1 -1
  136. package/dist/runtime/resources.d.ts +4 -1
  137. package/dist/runtime/resources.d.ts.map +1 -1
  138. package/dist/runtime/restyle.d.ts +17 -12
  139. package/dist/runtime/restyle.d.ts.map +1 -1
  140. package/dist/runtime/summaries.d.ts +16 -2
  141. package/dist/runtime/summaries.d.ts.map +1 -1
  142. package/dist/runtime/tabMemory.d.ts +11 -4
  143. package/dist/runtime/tabMemory.d.ts.map +1 -1
  144. package/dist/runtime/validateDefinition.d.ts.map +1 -1
  145. package/dist/runtime/validateSystemViews.d.ts +10 -0
  146. package/dist/runtime/validateSystemViews.d.ts.map +1 -0
  147. package/dist/runtime/viewEngine.d.ts +11 -6
  148. package/dist/runtime/viewEngine.d.ts.map +1 -1
  149. package/dist/runtime/viewOpening.d.ts +30 -0
  150. package/dist/runtime/viewOpening.d.ts.map +1 -0
  151. package/dist/runtime/viewRuntime.d.ts +3 -1
  152. package/dist/runtime/viewRuntime.d.ts.map +1 -1
  153. package/dist/runtime/viewRuntimeTypes.d.ts +29 -3
  154. package/dist/runtime/viewRuntimeTypes.d.ts.map +1 -1
  155. package/dist/runtime/write.d.ts +11 -0
  156. package/dist/runtime/write.d.ts.map +1 -1
  157. package/dist/runtime/writeEffects.d.ts +16 -0
  158. package/dist/runtime/writeEffects.d.ts.map +1 -0
  159. package/dist/runtime/writeLedger.d.ts +13 -12
  160. package/dist/runtime/writeLedger.d.ts.map +1 -1
  161. package/dist/store/MemoryViewStore.d.ts +8 -0
  162. package/dist/store/MemoryViewStore.d.ts.map +1 -1
  163. package/dist/store/ViewStore.d.ts +16 -0
  164. package/dist/store/ViewStore.d.ts.map +1 -1
  165. package/dist/styles.css +1 -1
  166. package/dist/testing/filter.d.ts +13 -5
  167. package/dist/testing/filter.d.ts.map +1 -1
  168. package/dist/testing/source.d.ts +8 -0
  169. package/dist/testing/source.d.ts.map +1 -1
  170. package/dist/testing.js +133 -134
  171. package/dist/testing.js.map +1 -1
  172. package/dist/theme-check.mjs +206 -222
  173. package/dist/theme-source.css +265 -109
  174. package/dist/theme-tokens.json +293 -441
  175. package/dist/themes/contrast.css +12 -12
  176. package/dist/themes.css +12 -276
  177. package/dist/ui/DashboardWorkbench.d.ts +2 -2
  178. package/dist/ui/DataWorkbench.d.ts +2 -2
  179. package/dist/ui/ViewHost.d.ts +11 -1
  180. package/dist/ui/ViewHost.d.ts.map +1 -1
  181. package/dist/ui/actions/ActionButtons.d.ts +7 -1
  182. package/dist/ui/actions/ActionButtons.d.ts.map +1 -1
  183. package/dist/ui/actions/ActionDialog.d.ts.map +1 -1
  184. package/dist/ui/actions/ActionSurface.d.ts +6 -0
  185. package/dist/ui/actions/ActionSurface.d.ts.map +1 -1
  186. package/dist/ui/actions/BulkStatus.d.ts.map +1 -1
  187. package/dist/ui/analysis/DimensionCard.d.ts.map +1 -1
  188. package/dist/ui/analysis/DisplayTab.d.ts.map +1 -1
  189. package/dist/ui/analysis/ElementsSlot.d.ts.map +1 -1
  190. package/dist/ui/analysis/HavingRows.d.ts.map +1 -1
  191. package/dist/ui/analysis/MetricSlot.d.ts.map +1 -1
  192. package/dist/ui/analysis/RangeSlot.d.ts.map +1 -1
  193. package/dist/ui/analysis/TopRow.d.ts.map +1 -1
  194. package/dist/ui/analysis/cartesianSpec.d.ts +1 -1
  195. package/dist/ui/analysis/exportOffer.d.ts.map +1 -1
  196. package/dist/ui/charts/EChart.d.ts +5 -7
  197. package/dist/ui/charts/EChart.d.ts.map +1 -1
  198. package/dist/ui/charts/MetricCard.d.ts.map +1 -1
  199. package/dist/ui/charts/PieSlices.d.ts.map +1 -1
  200. package/dist/ui/charts/candlestickOption.d.ts +1 -1
  201. package/dist/ui/charts/cartesianPlan.d.ts +0 -30
  202. package/dist/ui/charts/cartesianPlan.d.ts.map +1 -1
  203. package/dist/ui/charts/cartesianStacks.d.ts +36 -0
  204. package/dist/ui/charts/cartesianStacks.d.ts.map +1 -0
  205. package/dist/ui/charts/cartesianTooltip.d.ts.map +1 -1
  206. package/dist/ui/charts/pieOption.d.ts +10 -0
  207. package/dist/ui/charts/pieOption.d.ts.map +1 -1
  208. package/dist/ui/charts/theme.d.ts +35 -12
  209. package/dist/ui/charts/theme.d.ts.map +1 -1
  210. package/dist/ui/charts/waterfallOption.d.ts +4 -3
  211. package/dist/ui/charts/waterfallOption.d.ts.map +1 -1
  212. package/dist/ui/columns/ColumnRegion.d.ts +27 -0
  213. package/dist/ui/columns/ColumnRegion.d.ts.map +1 -0
  214. package/dist/ui/columns/ColumnSettings.d.ts.map +1 -1
  215. package/dist/ui/dashboard/DashboardPanelCard.d.ts.map +1 -1
  216. package/dist/ui/dashboard/FilterSheet.d.ts.map +1 -1
  217. package/dist/ui/dashboard/FilterWiring.d.ts.map +1 -1
  218. package/dist/ui/dashboard/OpensNumber.d.ts +17 -0
  219. package/dist/ui/dashboard/OpensNumber.d.ts.map +1 -0
  220. package/dist/ui/dashboard/PanelHeader.d.ts +18 -0
  221. package/dist/ui/dashboard/PanelHeader.d.ts.map +1 -0
  222. package/dist/ui/dashboard/gridWidth.d.ts +6 -0
  223. package/dist/ui/dashboard/gridWidth.d.ts.map +1 -1
  224. package/dist/ui/embed/EmbeddedAnalysis.d.ts.map +1 -1
  225. package/dist/ui/embed/EmbeddedRecord.d.ts.map +1 -1
  226. package/dist/ui/filter/AppliedBar.d.ts.map +1 -1
  227. package/dist/ui/filter/ConditionPill.d.ts.map +1 -1
  228. package/dist/ui/filter/NestedPredicate.d.ts +23 -0
  229. package/dist/ui/filter/NestedPredicate.d.ts.map +1 -0
  230. package/dist/ui/filter/inputs/number.d.ts +1 -1
  231. package/dist/ui/filter/inputs/number.d.ts.map +1 -1
  232. package/dist/ui/filter/inputs/shared.d.ts +1 -1
  233. package/dist/ui/filter/inputs/shared.d.ts.map +1 -1
  234. package/dist/ui/index.d.ts +3 -2
  235. package/dist/ui/index.d.ts.map +1 -1
  236. package/dist/ui/kit/DragHandle.d.ts +7 -1
  237. package/dist/ui/kit/DragHandle.d.ts.map +1 -1
  238. package/dist/ui/kit/IconButton.d.ts +10 -1
  239. package/dist/ui/kit/IconButton.d.ts.map +1 -1
  240. package/dist/ui/kit/PendingDot.d.ts +2 -1
  241. package/dist/ui/kit/PendingDot.d.ts.map +1 -1
  242. package/dist/ui/kit/alerts.d.ts.map +1 -1
  243. package/dist/ui/kit/characterKeys.d.ts +10 -0
  244. package/dist/ui/kit/characterKeys.d.ts.map +1 -0
  245. package/dist/ui/kit/display.d.ts +0 -31
  246. package/dist/ui/kit/display.d.ts.map +1 -1
  247. package/dist/ui/kit/displayTime.d.ts +58 -0
  248. package/dist/ui/kit/displayTime.d.ts.map +1 -0
  249. package/dist/ui/kit/frames.d.ts +233 -0
  250. package/dist/ui/kit/frames.d.ts.map +1 -0
  251. package/dist/ui/kit/keptFocus.d.ts +35 -0
  252. package/dist/ui/kit/keptFocus.d.ts.map +1 -0
  253. package/dist/ui/kit/pills.d.ts +70 -0
  254. package/dist/ui/kit/pills.d.ts.map +1 -0
  255. package/dist/ui/kit/popupLayer.d.ts +160 -0
  256. package/dist/ui/kit/popupLayer.d.ts.map +1 -0
  257. package/dist/ui/kit/popups.d.ts +20 -3
  258. package/dist/ui/kit/popups.d.ts.map +1 -1
  259. package/dist/ui/kit/presets.d.ts +1 -5
  260. package/dist/ui/kit/presets.d.ts.map +1 -1
  261. package/dist/ui/kit/stale.d.ts +30 -0
  262. package/dist/ui/kit/stale.d.ts.map +1 -0
  263. package/dist/ui/kit/variants.d.ts +11 -313
  264. package/dist/ui/kit/variants.d.ts.map +1 -1
  265. package/dist/ui/manage/ViewManager.d.ts.map +1 -1
  266. package/dist/ui/manage/ViewManagerRow.d.ts.map +1 -1
  267. package/dist/ui/messages/actions.d.ts +1 -0
  268. package/dist/ui/messages/actions.d.ts.map +1 -1
  269. package/dist/ui/messages/analysis.d.ts +1 -438
  270. package/dist/ui/messages/analysis.d.ts.map +1 -1
  271. package/dist/ui/messages/chart.d.ts +257 -0
  272. package/dist/ui/messages/chart.d.ts.map +1 -0
  273. package/dist/ui/messages/chartIssues.d.ts +95 -0
  274. package/dist/ui/messages/chartIssues.d.ts.map +1 -0
  275. package/dist/ui/messages/chartReading.d.ts +112 -0
  276. package/dist/ui/messages/chartReading.d.ts.map +1 -0
  277. package/dist/ui/messages/dashboard.d.ts +1 -0
  278. package/dist/ui/messages/dashboard.d.ts.map +1 -1
  279. package/dist/ui/messages/definition.d.ts +3 -0
  280. package/dist/ui/messages/definition.d.ts.map +1 -1
  281. package/dist/ui/messages/en.d.ts +416 -409
  282. package/dist/ui/messages/en.d.ts.map +1 -1
  283. package/dist/ui/messages/save.d.ts +1 -0
  284. package/dist/ui/messages/save.d.ts.map +1 -1
  285. package/dist/ui/messages/scope.d.ts +1 -0
  286. package/dist/ui/messages/scope.d.ts.map +1 -1
  287. package/dist/ui/messages/view.d.ts +1 -1
  288. package/dist/ui/messages/view.d.ts.map +1 -1
  289. package/dist/ui/messages/zh-CN/actions.d.ts +33 -0
  290. package/dist/ui/messages/zh-CN/actions.d.ts.map +1 -0
  291. package/dist/ui/messages/zh-CN/analysis.d.ts +286 -0
  292. package/dist/ui/messages/zh-CN/analysis.d.ts.map +1 -0
  293. package/dist/ui/messages/zh-CN/building.d.ts +64 -0
  294. package/dist/ui/messages/zh-CN/building.d.ts.map +1 -0
  295. package/dist/ui/messages/zh-CN/bulk.d.ts +28 -0
  296. package/dist/ui/messages/zh-CN/bulk.d.ts.map +1 -0
  297. package/dist/ui/messages/zh-CN/capabilities.d.ts +42 -0
  298. package/dist/ui/messages/zh-CN/capabilities.d.ts.map +1 -0
  299. package/dist/ui/messages/zh-CN/chart.d.ts +256 -0
  300. package/dist/ui/messages/zh-CN/chart.d.ts.map +1 -0
  301. package/dist/ui/messages/zh-CN/chartIssues.d.ts +96 -0
  302. package/dist/ui/messages/zh-CN/chartIssues.d.ts.map +1 -0
  303. package/dist/ui/messages/zh-CN/chartReading.d.ts +112 -0
  304. package/dist/ui/messages/zh-CN/chartReading.d.ts.map +1 -0
  305. package/dist/ui/messages/zh-CN/clicks.d.ts +85 -0
  306. package/dist/ui/messages/zh-CN/clicks.d.ts.map +1 -0
  307. package/dist/ui/messages/zh-CN/config.d.ts +17 -0
  308. package/dist/ui/messages/zh-CN/config.d.ts.map +1 -0
  309. package/dist/ui/messages/zh-CN/dashboard.d.ts +316 -0
  310. package/dist/ui/messages/zh-CN/dashboard.d.ts.map +1 -0
  311. package/dist/ui/messages/zh-CN/datasets.d.ts +15 -0
  312. package/dist/ui/messages/zh-CN/datasets.d.ts.map +1 -0
  313. package/dist/ui/messages/zh-CN/definition.d.ts +78 -0
  314. package/dist/ui/messages/zh-CN/definition.d.ts.map +1 -0
  315. package/dist/ui/messages/zh-CN/embed.d.ts +13 -0
  316. package/dist/ui/messages/zh-CN/embed.d.ts.map +1 -0
  317. package/dist/ui/messages/zh-CN/export.d.ts +46 -0
  318. package/dist/ui/messages/zh-CN/export.d.ts.map +1 -0
  319. package/dist/ui/messages/zh-CN/filter.d.ts +269 -0
  320. package/dist/ui/messages/zh-CN/filter.d.ts.map +1 -0
  321. package/dist/ui/messages/zh-CN/filters.d.ts +80 -0
  322. package/dist/ui/messages/zh-CN/filters.d.ts.map +1 -0
  323. package/dist/ui/messages/zh-CN/header.d.ts +25 -0
  324. package/dist/ui/messages/zh-CN/header.d.ts.map +1 -0
  325. package/dist/ui/messages/zh-CN/manage.d.ts +46 -0
  326. package/dist/ui/messages/zh-CN/manage.d.ts.map +1 -0
  327. package/dist/ui/messages/zh-CN/record.d.ts +205 -0
  328. package/dist/ui/messages/zh-CN/record.d.ts.map +1 -0
  329. package/dist/ui/messages/zh-CN/refresh.d.ts +17 -0
  330. package/dist/ui/messages/zh-CN/refresh.d.ts.map +1 -0
  331. package/dist/ui/messages/zh-CN/render.d.ts +12 -0
  332. package/dist/ui/messages/zh-CN/render.d.ts.map +1 -0
  333. package/dist/ui/messages/zh-CN/reorder.d.ts +14 -0
  334. package/dist/ui/messages/zh-CN/reorder.d.ts.map +1 -0
  335. package/dist/ui/messages/zh-CN/save.d.ts +62 -0
  336. package/dist/ui/messages/zh-CN/save.d.ts.map +1 -0
  337. package/dist/ui/messages/zh-CN/scope.d.ts +27 -0
  338. package/dist/ui/messages/zh-CN/scope.d.ts.map +1 -0
  339. package/dist/ui/messages/zh-CN/status.d.ts +36 -0
  340. package/dist/ui/messages/zh-CN/status.d.ts.map +1 -0
  341. package/dist/ui/messages/zh-CN/view.d.ts +175 -0
  342. package/dist/ui/messages/zh-CN/view.d.ts.map +1 -0
  343. package/dist/ui/messages/zh-CN/workbench.d.ts +18 -0
  344. package/dist/ui/messages/zh-CN/workbench.d.ts.map +1 -0
  345. package/dist/ui/messages/zh-CN.d.ts +4 -0
  346. package/dist/ui/messages/zh-CN.d.ts.map +1 -1
  347. package/dist/ui/record/DetailStructure.d.ts.map +1 -1
  348. package/dist/ui/record/RecordCards.d.ts +3 -1
  349. package/dist/ui/record/RecordCards.d.ts.map +1 -1
  350. package/dist/ui/record/RecordDetail.d.ts +7 -1
  351. package/dist/ui/record/RecordDetail.d.ts.map +1 -1
  352. package/dist/ui/record/RecordKanban.d.ts +3 -1
  353. package/dist/ui/record/RecordKanban.d.ts.map +1 -1
  354. package/dist/ui/record/RecordTable.d.ts +6 -1
  355. package/dist/ui/record/RecordTable.d.ts.map +1 -1
  356. package/dist/ui/record/RowCheckbox.d.ts.map +1 -1
  357. package/dist/ui/record/SortableHeader.d.ts.map +1 -1
  358. package/dist/ui/record/cells.d.ts.map +1 -1
  359. package/dist/ui/record/exportOffer.d.ts.map +1 -1
  360. package/dist/ui/sort/SortSettings.d.ts.map +1 -1
  361. package/dist/ui/sort/SortSummary.d.ts +73 -0
  362. package/dist/ui/sort/SortSummary.d.ts.map +1 -0
  363. package/dist/ui/theme/entry.d.ts +223 -0
  364. package/dist/ui/theme/entry.d.ts.map +1 -0
  365. package/dist/ui/theme/pairs.d.ts +1 -12
  366. package/dist/ui/theme/pairs.d.ts.map +1 -1
  367. package/dist/ui/theme/tokens.d.ts +152 -215
  368. package/dist/ui/theme/tokens.d.ts.map +1 -1
  369. package/dist/ui/workbench/AnalysisParts.d.ts.map +1 -1
  370. package/dist/ui/workbench/MoreViewActions.d.ts.map +1 -1
  371. package/dist/ui/workbench/OpenViewColumn.d.ts +28 -0
  372. package/dist/ui/workbench/OpenViewColumn.d.ts.map +1 -0
  373. package/dist/ui/workbench/OpeningSkeleton.d.ts.map +1 -1
  374. package/dist/ui/workbench/RecordParts.d.ts.map +1 -1
  375. package/dist/ui/workbench/SaveActions.d.ts.map +1 -1
  376. package/dist/ui/workbench/SaveAsDialog.d.ts +7 -1
  377. package/dist/ui/workbench/SaveAsDialog.d.ts.map +1 -1
  378. package/dist/ui/workbench/SearchBox.d.ts.map +1 -1
  379. package/dist/ui/workbench/Sidebar.d.ts.map +1 -1
  380. package/dist/ui/workbench/TitleBar.d.ts.map +1 -1
  381. package/dist/ui/workbench/ViewEngineProvider.d.ts +3 -1
  382. package/dist/ui/workbench/ViewEngineProvider.d.ts.map +1 -1
  383. package/dist/ui/workbench/ViewList.d.ts.map +1 -1
  384. package/dist/ui/workbench/WorkbenchShell.d.ts +6 -9
  385. package/dist/ui/workbench/WorkbenchShell.d.ts.map +1 -1
  386. package/dist/ui/workbench/WriteOutcome.d.ts.map +1 -1
  387. package/dist/ui/workbench/address.d.ts +4 -2
  388. package/dist/ui/workbench/address.d.ts.map +1 -1
  389. package/dist/ui/workbench/useSidebarFold.d.ts +16 -27
  390. package/dist/ui/workbench/useSidebarFold.d.ts.map +1 -1
  391. package/dist/ui/workbench/useWorkbenchFolds.d.ts +1 -1
  392. package/dist/ui/workbench/useWorkbenchFolds.d.ts.map +1 -1
  393. package/dist/ui.js +13891 -13604
  394. package/dist/ui.js.map +1 -1
  395. package/dist/{viewRuntimeTypes-BCdG5xRp.js → viewEngine-DL-S0OAZ.js} +1937 -1622
  396. package/dist/viewEngine-DL-S0OAZ.js.map +1 -0
  397. package/package.json +18 -18
  398. package/dist/actions-BWlediub.js.map +0 -1
  399. package/dist/react-D1wSQhlr.js +0 -4196
  400. package/dist/react-D1wSQhlr.js.map +0 -1
  401. package/dist/themes/azure.css +0 -126
  402. package/dist/themes/porcelain.css +0 -136
  403. package/dist/viewRuntimeTypes-BCdG5xRp.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldNumeric.d.ts","sourceRoot":"","sources":["../../src/model/fieldNumeric.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;;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oo-wang/wow-client/dsl';
2
+ import { FieldDefinition, FieldKindId } from './field.js';
3
+ /**
4
+ * How a time field keeps its time, which is how a condition on it has to
5
+ * write one — Wow's own `QuerySemanticType` for time, named as Wow names it.
6
+ *
7
+ * - `epoch` is Wow's `TEMPORAL_EPOCH`: an integer count of `timeUnit` since
8
+ * the epoch, milliseconds when unsaid. Every time a Wow snapshot carries —
9
+ * `eventTime`, `firstEventTime`, an aggregate's `@QueryTemporal` longs — is
10
+ * one, and Wow's schema validation refuses anything but an integer there.
11
+ * - `date` is Wow's `TEMPORAL_DATE`: the store's own date type, which a query
12
+ * names in ISO 8601 text.
13
+ *
14
+ * Wow's third, `TEMPORAL_FORMATTED`, a string under a pattern, is not
15
+ * modelled: no definition has needed one, and a bound written under the
16
+ * wrong pattern would be compared as text and match the wrong rows quietly.
17
+ */
18
+ export type FieldTemporal = EpochTemporal | DateTemporal;
19
+ export interface EpochTemporal {
20
+ type: 'epoch';
21
+ /** Wow's `timeUnit`; milliseconds when unsaid, as Wow's own default is. */
22
+ timeUnit?: EpochTimeUnit;
23
+ }
24
+ export interface DateTemporal {
25
+ type: 'date';
26
+ }
27
+ /** The units of `TimeUnit` an epoch time is kept in, as Wow spells them. */
28
+ export type EpochTimeUnit = `${TimeUnit.MILLISECONDS | TimeUnit.SECONDS}`;
29
+ export declare const EPOCH_TIME_UNITS: readonly EpochTimeUnit[];
30
+ export declare const TEMPORAL_TYPES: readonly FieldTemporal['type'][];
31
+ /** The kinds whose conditions write a time, and so may declare `temporal`. */
32
+ export declare const TEMPORAL_FIELD_KIND_IDS: readonly FieldKindId[];
33
+ /**
34
+ * How finely a table cell writes a time of day (`FieldDefinition.timePrecision`).
35
+ *
36
+ * - `minute`, the default: a column of times is read for when something
37
+ * happened, and the seconds made every such column some 180 pixels wide —
38
+ * the largest source of sideways scrolling in a record workbench (second
39
+ * review R2-23). The cell drops the year within the current one, too.
40
+ * - `second`: for a field whose seconds are the point, an event stream's
41
+ * times above all, where two events a few seconds apart are the story.
42
+ *
43
+ * Only the table's cell is short. Its title, the record's detail, a card and
44
+ * a file keep the whole time, seconds included.
45
+ */
46
+ export type TimePrecision = 'minute' | 'second';
47
+ export declare const TIME_PRECISIONS: readonly TimePrecision[];
48
+ /**
49
+ * What a time field that declares nothing is: epoch milliseconds.
50
+ *
51
+ * The default is the engine's audience rather than the fixtures' habit. A
52
+ * Wow snapshot keeps every time as epoch milliseconds, and a definition
53
+ * written from a Wow query schema should come out right without the author
54
+ * having to remember one more member on each of them; a store that keeps a
55
+ * native date is the case that says so.
56
+ */
57
+ export declare const DEFAULT_TEMPORAL: Required<EpochTemporal>;
58
+ /** How this field keeps its time: its declaration, or the default. */
59
+ export declare function temporalOf(field: FieldDefinition): FieldTemporal;
60
+ /**
61
+ * The unit this field's epoch numbers count in, where it is not the
62
+ * default milliseconds — `undefined` for milliseconds and for a field that
63
+ * keeps no epoch at all. What reads a value as a time (`readInstant`) takes
64
+ * it, so a cell, a footer and an earliest agree with the condition that
65
+ * wrote the time in that unit.
66
+ */
67
+ export declare function epochUnitOf(field: Pick<FieldDefinition, 'kind' | 'cell' | 'temporal'>): EpochTimeUnit | undefined;
68
+ //# sourceMappingURL=fieldTemporal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldTemporal.d.ts","sourceRoot":"","sources":["../../src/model/fieldTemporal.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,YAAY,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG,GAAG,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;AAE1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAGpD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,aAAa,CAAC,MAAM,CAAC,EAG1D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,EAAE,SAAS,WAAW,EAGzD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAAyB,CAAC;AAE9E;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,aAAa,CAGpD,CAAC;AAEF,sEAAsE;AACtE,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,CAEhE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,GACzD,aAAa,GAAG,SAAS,CAK3B"}
@@ -4,12 +4,15 @@
4
4
  * this layer describes the first two and depends on nothing else.
5
5
  */
6
6
  export * from './analysis.js';
7
+ export * from './cartesian.js';
7
8
  export * from './chart.js';
8
9
  export * from './config.js';
9
10
  export type { CurrencyReading } from './currency.js';
10
11
  export * from './dashboard.js';
11
12
  export * from './definition.js';
12
13
  export * from './field.js';
14
+ export * from './fieldNumeric.js';
15
+ export * from './fieldTemporal.js';
13
16
  export * from './filter.js';
14
17
  export * from './instance.js';
15
18
  export * from './issue.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAE5B,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,cAAc,WAAW,CAAC"}
@@ -16,6 +16,19 @@ export interface BulkRun {
16
16
  title: string;
17
17
  /** Words said into `title`'s `{name}`s, each itself said first. */
18
18
  values?: Readonly<Record<string, string>>;
19
+ /**
20
+ * What the outcome line says of the records the command was done for, in
21
+ * place of 「已完成」/"done": a declared action's `done`, said with
22
+ * `{count}` and, for one record, `{record}`.
23
+ */
24
+ done?: string;
25
+ /**
26
+ * What the outcome line calls each record, where the definition names
27
+ * rows (`RecordCapability.rowName`): read when the command is pressed,
28
+ * so it still names a record the refresh after took off the page. The
29
+ * key where it has none.
30
+ */
31
+ names?: ReadonlyMap<RecordKey, string>;
19
32
  /**
20
33
  * Sends one record's command. `signal` aborts when the run stops waiting
21
34
  * for it — past `timeout`, or on the second Stop — so a host can cancel
@@ -55,6 +68,8 @@ export interface BulkProgress {
55
68
  export interface BulkOutcome {
56
69
  title: string;
57
70
  values?: Readonly<Record<string, string>>;
71
+ /** The command's own words for what was done (`BulkRun.done`). */
72
+ done?: string;
58
73
  succeeded: readonly RecordKey[];
59
74
  /** Sent, and refused by the source: the source's reason for each. */
60
75
  failed: readonly BulkFailure[];
@@ -77,6 +92,8 @@ export interface BulkOutcome {
77
92
  * started, in the order picked; none for a record's own command.
78
93
  */
79
94
  kept: readonly RecordKey[];
95
+ /** What each record is called (`BulkRun.names`); the key where absent. */
96
+ names?: ReadonlyMap<RecordKey, string>;
80
97
  }
81
98
  /**
82
99
  * The records a command runs over, and what a command does to them
@@ -1 +1 @@
1
- {"version":3,"file":"actionRunner.d.ts","sourceRoot":"","sources":["../../src/react/actionRunner.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAcnD;;;;;;;;GAQG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;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AE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAOrC"}
@@ -0,0 +1,109 @@
1
+ import { FieldDefinition, FieldGroupDefinition, FilterGroupOperator, FilterLeaf, FilterOperatorName, FilterTree, Issue } from '../model/index.js';
2
+ import { EditorDescriptor, FieldKindRegistry, FilterPath } from '../filter/index.js';
3
+ import { OptionSource, ValueCandidateSource } from '../runtime/index.js';
4
+ /**
5
+ * The part of the controller that edits a tree, and nothing about the view
6
+ * around it.
7
+ *
8
+ * `useFilterEditor` is one implementation, bound to a runtime's draft. A
9
+ * condition that holds a condition — an element match — is another, bound to
10
+ * a leaf's value, and the two render through the same components because the
11
+ * thing being edited is the same thing.
12
+ */
13
+ export interface FilterTreeController {
14
+ tree: FilterTree;
15
+ fields: readonly FieldDefinition[];
16
+ /** The picker groups the definition declares; none for a dashboard's or an element's fields. */
17
+ fieldGroups: readonly FieldGroupDefinition[];
18
+ /** The registry admission used, so a nested editor admits by the same one. */
19
+ kinds: FieldKindRegistry | undefined;
20
+ issues: Issue[];
21
+ addLeaf(field: string, parent?: FilterPath): void;
22
+ /**
23
+ * Fields a new condition may be added on under `parent`: every field not
24
+ * already a condition of that group, since a group holds one condition per
25
+ * field, and of a kind the registry knows, since a condition cannot be made
26
+ * on one it does not. The picker lists these rather than `fields`.
27
+ */
28
+ fieldsFor(parent?: FilterPath): FieldDefinition[];
29
+ /**
30
+ * Sets a condition back to "nothing said yet": its value becomes the
31
+ * kind's empty value for its operator, so the row stays and the condition
32
+ * leaves the query. On a group, every condition in it. This is what the
33
+ * applied summary's remove does — it takes a condition out of force without
34
+ * taking the field away from the editor.
35
+ */
36
+ clearValue(path: FilterPath): void;
37
+ updateLeaf(path: FilterPath, patch: Partial<FilterLeaf>): void;
38
+ addGroup(op: FilterGroupOperator, parent?: FilterPath): void;
39
+ updateGroup(path: FilterPath, op: FilterGroupOperator): void;
40
+ /**
41
+ * Flips the condition at `path` between itself and "not itself": a leaf is
42
+ * wrapped in a `nor` group of its own, a leaf already alone in one is
43
+ * unwrapped. `path` is the leaf's, as the pill holds it. This is simple
44
+ * mode's switch (D18-7); advanced mode has the group operator for it.
45
+ */
46
+ negate(path: FilterPath): void;
47
+ /**
48
+ * Takes out whatever `path` names — and the negation around it, when the
49
+ * path is that of a leaf alone in one. A caller holds a condition by its
50
+ * leaf's path whether or not it is negated, so this is the only removal
51
+ * either kind of pill needs (`removeConditionAt`).
52
+ */
53
+ remove(path: FilterPath): void;
54
+ operatorsFor(field: string): FilterOperatorName[];
55
+ editorFor(path: FilterPath): EditorDescriptor | null;
56
+ /**
57
+ * The remote candidates behind a `remote` editor's key, from the runtime
58
+ * this editor is bound to; `null` where the host wired none, and absent
59
+ * on a controller with no runtime at all. A nested editor over a leaf's
60
+ * value shares its parent's.
61
+ */
62
+ optionSource?(remote: string): OptionSource | null;
63
+ /**
64
+ * The values the condition at `path` may be picked from, counted from the
65
+ * data (`ViewRuntime.valueCandidates`), or `null` where none are offered:
66
+ * its field is not one the data can list, or its operator takes something
67
+ * other than one of the field's own values — a substring, a range, no
68
+ * value at all. Absent on a controller whose fields are not the view's
69
+ * own: a nested predicate's are an element's, which the view's data does
70
+ * not count.
71
+ */
72
+ valueCandidates?(path: FilterPath): ValueCandidateSource | null;
73
+ }
74
+ interface TreeControllerInput {
75
+ tree: FilterTree;
76
+ fields: readonly FieldDefinition[];
77
+ fieldGroups?: readonly FieldGroupDefinition[];
78
+ kinds: FieldKindRegistry | undefined;
79
+ /** Issues already rebased onto this tree. */
80
+ issues: Issue[];
81
+ /**
82
+ * The tree an action reads at the moment it runs, where that is not the
83
+ * `tree` it was built over: an editor bound to a runtime reads the draft
84
+ * the runtime holds at the click, so two edits in one event compose —
85
+ * adding a group and then a leaf inside it works. Left out, actions read
86
+ * `tree`, which is what a nested editor over a leaf's value wants.
87
+ */
88
+ current?(): FilterTree;
89
+ onChange(tree: FilterTree): void;
90
+ /** See `FilterTreeController.optionSource`. */
91
+ optionSource?(remote: string): OptionSource | null;
92
+ /** The candidate source of a field by name; see `FilterTreeController.valueCandidates`. */
93
+ valueCandidates?(field: string): ValueCandidateSource | null;
94
+ /**
95
+ * Whether a condition here may be a time since another moment (N3's
96
+ * `EXPRESSION`). Left out, it may; one entry of an element is asked
97
+ * nothing of the kind — Wow keeps it out of `ELEMENT_MATCH` — so the
98
+ * predicate block says `false`.
99
+ */
100
+ durations?: boolean;
101
+ }
102
+ /**
103
+ * A controller over any tree. It holds no state: every action produces the
104
+ * next tree and hands it to `onChange`, which is what lets a nested one write
105
+ * straight back into the leaf that carries it.
106
+ */
107
+ export declare function treeController(input: TreeControllerInput): FilterTreeController;
108
+ export {};
109
+ //# sourceMappingURL=filterTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterTree.d.ts","sourceRoot":"","sources":["../../src/react/filterTree.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EAEV,kBAAkB,EAClB,UAAU,EACV,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAiD9E;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;IACnC,gGAAgG;IAChG,WAAW,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC7C,8EAA8E;IAC9E,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClD;;;;;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C;IAC/C,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IACnD,2FAA2F;IAC3F,eAAe,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAAC;IAC7D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA2ED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,mBAAmB,GACzB,oBAAoB,CA+FtB"}
@@ -0,0 +1,105 @@
1
+ import { drillGap } from '../analysis/drill.js';
2
+ import { FilterSummaryItem } from '../filter/index.js';
3
+ import { AnalysisViewConfig, ChartSpec, RecordData } from '../model/index.js';
4
+ import { ViewRuntime } from '../runtime/index.js';
5
+ import { FollowUpHost } from './usePanelFollowUps.js';
6
+ import { AnalysisResultInput } from './useAnalysisResult.js';
7
+ /** Stable identity for "nothing asked yet", so the memos below stay quiet. */
8
+ /** A dimension a group can be split by: a field the result is not grouped on. */
9
+ export interface SplitOption {
10
+ field: string;
11
+ label: string;
12
+ }
13
+ /**
14
+ * One thing the follow-up menu offers on a group. The menu draws
15
+ * each kind its own way — an icon and a word are a host's to choose — and
16
+ * runs it; which kinds are offered, in what order, and what running one
17
+ * does are decided here, so a new follow-up is a new member of this union
18
+ * and one more entry in `followUp`, not another pair of props on the menu.
19
+ */
20
+ export type FollowUpAction =
21
+ /**
22
+ * Open the records behind the group, in a record view of their own. The
23
+ * view is named `title`: wording, so the menu says it — of `subject`, the
24
+ * definition's name for its records, and the group.
25
+ *
26
+ * With `gap`, offered and greyed with the reason it cannot run (D38): a
27
+ * group counted over elements of elements, which no condition over the
28
+ * records reaches (`drillGap`) — the menu says so rather than leave the
29
+ * reader to wonder where 「查看这些记录」 went — and `run` does nothing.
30
+ */
31
+ {
32
+ kind: 'records';
33
+ subject: string;
34
+ run(title: string): void;
35
+ gap?: 'nested-elements';
36
+ }
37
+ /**
38
+ * Ask the same question of the group by another dimension, as a view of
39
+ * its own beside this one (`WorkbenchController.follow`), as `focus`
40
+ * does. Named `title`, of `subject` — this view's name — and the group.
41
+ */
42
+ | {
43
+ kind: 'split';
44
+ subject: string;
45
+ options: readonly SplitOption[];
46
+ run(field: string, title: string): void;
47
+ }
48
+ /**
49
+ * Ask the same question of the group alone, as a view of its own beside
50
+ * this one (`WorkbenchController.follow`), so the way back is this result
51
+ * as it stands. Named `title`, of `subject` — this view's name — and the
52
+ * group.
53
+ */
54
+ | {
55
+ kind: 'focus';
56
+ subject: string;
57
+ run(title: string): void;
58
+ }
59
+ /**
60
+ * Set a board's filter to the stretch of time the menu is about (D33
61
+ * Q52): offered on a dashboard panel only, over a span, for each date
62
+ * filter wired to the field it spans. The panel it was set from keeps
63
+ * every group, as a press that sets a filter leaves it (D23 Q18). `filter`
64
+ * is that filter's label, for the item to name it by.
65
+ */
66
+ | {
67
+ kind: 'filter';
68
+ filter: string;
69
+ run(): void;
70
+ };
71
+ /** One dimension of the group pressed, for the menu to name it by. */
72
+ export interface FollowUpGroup {
73
+ /**
74
+ * The conditions that select it, as the applied bar names them — a date
75
+ * bucket's range as its period, a number band's two comparisons as the
76
+ * one segment they bound — so the menu, the name of a view opened from it
77
+ * and that view's applied bar say one sentence.
78
+ */
79
+ conditions: readonly FilterSummaryItem[];
80
+ }
81
+ /** What the menu over one pressed group shows. */
82
+ export interface FollowUp {
83
+ /** The group, one dimension each, in the order the result is grouped. */
84
+ groups: readonly FollowUpGroup[];
85
+ actions: readonly FollowUpAction[];
86
+ }
87
+ /** What a follow-up is read off: the result that ran and the screen over it. */
88
+ export interface FollowUpSource {
89
+ pickable: boolean;
90
+ ran: AnalysisViewConfig | undefined;
91
+ runtime: ViewRuntime<AnalysisViewConfig> | null;
92
+ workbench: FollowUpHost;
93
+ analysis: Pick<AnalysisResultInput, 'fields' | 'layout'>;
94
+ chart: ChartSpec;
95
+ gap: ReturnType<typeof drillGap> | undefined;
96
+ expanded: boolean;
97
+ moments: ReadonlySet<string>;
98
+ }
99
+ /**
100
+ * What a press on `row` (or on the span from `row` to `through`) offers:
101
+ * the records behind the group, the group split by another field, the
102
+ * group alone (`AnalysisResultController.followUp`).
103
+ */
104
+ export declare function followUpOf({ pickable, ran, runtime, workbench, analysis, chart, gap, expanded, moments, }: FollowUpSource, row: RecordData, through?: RecordData): FollowUp | null;
105
+ //# sourceMappingURL=followUp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followUp.d.ts","sourceRoot":"","sources":["../../src/react/followUp.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMrD,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EAET,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,8EAA8E;AAE9E,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc;AACxB;;;;;;;;;GASG;AACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,CAAC,EAAE,iBAAiB,CAAC;CACzB;AACH;;;;GAIG;GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG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,GAAG,IAAI,CAyFjB"}
@@ -11,7 +11,8 @@ export { type AnalysisEditorController, useAnalysisEditor, } from './useAnalysis
11
11
  export type { AnalysisFieldOption } from './analysisFields.js';
12
12
  export type { DropCause, QuestionEditing, Reshape, ReshapeProposal, } from './analysisEditing.js';
13
13
  export type { DropNotice, MetricRemoval } from './useReshape.js';
14
- export { type AnalysisResultController, type AnalysisResultInput, type AnalysisResultOptions, type FollowUp, type FollowUpAction, type FollowUpGroup, type SplitOption, useAnalysisResult, } from './useAnalysisResult.js';
14
+ export { type AnalysisResultController, type AnalysisResultInput, type AnalysisResultOptions, useAnalysisResult, } from './useAnalysisResult.js';
15
+ export { type FollowUp, type FollowUpAction, type FollowUpGroup, type SplitOption, } from './followUp.js';
15
16
  export { type RefreshController, useAutoRefresh, useRefreshCountdown, } from './useAutoRefresh.js';
16
17
  export { type ActionFailureContext, type ActionRunner, type BulkFailure, type BulkOutcome, type BulkProgress, type BulkRun, type BulkRunning, type BulkSelection, } from './actionRunner.js';
17
18
  export { type BulkActionView, type PendingAction, type RecordActionTable, type RecordActionsController, type RecordActionsOptions, type RowActionView, useRecordActions, } from './useRecordActions.js';
@@ -21,7 +22,8 @@ export { type UnavailableController, useUnavailable, } from './useUnavailable.js
21
22
  export { type DashboardController, type DashboardPanelView, useDashboard, } from './useDashboard.js';
22
23
  export { type DatasetsReading, type DatasetsState, useDatasets, } from './useDatasets.js';
23
24
  export { type FollowUpHost, type PanelFollowUpsOptions, usePanelFollowUps, } from './usePanelFollowUps.js';
24
- export { type FilterEditorController, type FilterTreeController, useFilterEditor, } from './useFilterEditor.js';
25
+ export { type FilterEditorController, useFilterEditor, } from './useFilterEditor.js';
26
+ export { type FilterTreeController } from './filterTree.js';
25
27
  export { type RecordDetailControl, type RecordDetailController, useRecordDetail, } from './useRecordDetail.js';
26
28
  export { type RecordExportController, type RecordExportOptions, type RecordExportOutcome, type RecordExportProgress, type RecordExportScope, type RecordExportScopes, type RecordExportTable, useRecordExport, } from './useRecordExport.js';
27
29
  export { type RecordKanbanController, useRecordKanban, } from './useRecordKanban.js';
@@ -36,7 +38,8 @@ export { type ViewListOptions, type ViewListPreferences, type ViewListReloadOpti
36
38
  export { type ViewManagerController, type ViewManagerOptions, useViewManager, } from './useViewManager.js';
37
39
  export type { ManagedInstanceAbilities, ViewManagerAbilities, } from './manager/abilities.js';
38
40
  export type { ManagedWording } from './manager/wording.js';
39
- export { type DrillTarget, type HeldView, type ViewOrigin, type WorkbenchController, type WorkbenchOptions, useWorkbench, } from './useWorkbench.js';
41
+ export { type WorkbenchController, type WorkbenchOptions, useWorkbench, } from './useWorkbench.js';
42
+ export { type DrillTarget, type HeldView, type ViewOrigin, } from './workbench/heldView.js';
40
43
  export type { RecoveredWrite, SettledWrite } from './writes.js';
41
44
  export { type InstanceSyncOptions, useInstanceSync, } from './workbench/instanceSync.js';
42
45
  export { type LeaveGuard, type LeaveGuardOptions, type LeaveGuardState, useLeaveGuard, } from './workbench/leaveGuard.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,wBAAwB,EAC7B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,m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AAC;AAC3D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EACL,KAAK,mBAAmB,EACxB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,qBAAqB,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,oBAAoB,EACzB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,wBAAwB,EAC7B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAA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AAwB,CAAC;AAChC,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EACL,KAAK,mBAAmB,EACxB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,qBAAqB,EAC1B,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,oBAAoB,EACzB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { RecordRow } from '../record/index.js';
2
+ import { RecordActions } from '../runtime/actions.js';
3
+ import { RuntimeEnvironment } from '../runtime/environment.js';
4
+ /** The clock when the host gives none. */
5
+ export declare const SYSTEM_CLOCK: Pick<RuntimeEnvironment, 'now'>;
6
+ /**
7
+ * The moment the rules are asked at, read off the clock it came from, and
8
+ * the way to move it on; a moment the clock still stands at renders
9
+ * nothing. A new clock (the engine's, once the surface has its runtime) is
10
+ * read at once, so no rule is asked at a moment of the old one.
11
+ */
12
+ export declare function useAskedAt(clock: Pick<RuntimeEnvironment, 'now'>): [Date, (at: Date) => void];
13
+ /**
14
+ * The next moment any record on screen changes on its own, and a timer
15
+ * that moves the clock there. A clock left behind while rows came in is
16
+ * only ever early: a rule asked too early refuses, and says when it will
17
+ * change, which is at once.
18
+ */
19
+ export declare function useRulesClock(actions: RecordActions | undefined, rows: readonly RecordRow[], also: readonly RecordRow[], now: Date, clock: Pick<RuntimeEnvironment, 'now'>, setNow: (at: Date) => void): void;
20
+ //# sourceMappingURL=rulesClock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rulesClock.d.ts","sourceRoot":"","sources":["../../src/react/rulesClock.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,0CAA0C;AAC1C,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAExD,CAAC;AAUF;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GACrC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,IAAI,CAAC,CAe5B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,aAAa,GAAG,SAAS,EAClC,IAAI,EAAE,SAAS,SAAS,EAAE,EAC1B,IAAI,EAAE,SAAS,SAAS,EAAE,EAC1B,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EACtC,MAAM,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,IAAI,GACzB,IAAI,CAkBN"}
@@ -1,88 +1,9 @@
1
1
  import { AnalysisColumnView, AnalysisProjection, ChartData, ChartFit, Picked } from '../analysis/index.js';
2
- import { FilterSummaryItem } from '../filter/index.js';
3
2
  import { AnalysisViewConfig, ChartSpec, ChartType, RecordData } from '../model/index.js';
4
3
  import { ViewRuntime } from '../runtime/index.js';
5
4
  import { AnalysisEditorController } from './useAnalysisEditor.js';
6
5
  import { FollowUpHost } from './usePanelFollowUps.js';
7
- /** A dimension a group can be split by: a field the result is not grouped on. */
8
- export interface SplitOption {
9
- field: string;
10
- label: string;
11
- }
12
- /**
13
- * One thing the follow-up menu offers on a group. The menu draws
14
- * each kind its own way — an icon and a word are a host's to choose — and
15
- * runs it; which kinds are offered, in what order, and what running one
16
- * does are decided here, so a new follow-up is a new member of this union
17
- * and one more entry in `followUp`, not another pair of props on the menu.
18
- */
19
- export type FollowUpAction =
20
- /**
21
- * Open the records behind the group, in a record view of their own. The
22
- * view is named `title`: wording, so the menu says it — of `subject`, the
23
- * definition's name for its records, and the group.
24
- *
25
- * With `gap`, offered and greyed with the reason it cannot run (D38): a
26
- * group counted over elements of elements, which no condition over the
27
- * records reaches (`drillGap`) — the menu says so rather than leave the
28
- * reader to wonder where 「查看这些记录」 went — and `run` does nothing.
29
- */
30
- {
31
- kind: 'records';
32
- subject: string;
33
- run(title: string): void;
34
- gap?: 'nested-elements';
35
- }
36
- /**
37
- * Ask the same question of the group by another dimension, as a view of
38
- * its own beside this one (`WorkbenchController.follow`), as `focus`
39
- * does. Named `title`, of `subject` — this view's name — and the group.
40
- */
41
- | {
42
- kind: 'split';
43
- subject: string;
44
- options: readonly SplitOption[];
45
- run(field: string, title: string): void;
46
- }
47
- /**
48
- * Ask the same question of the group alone, as a view of its own beside
49
- * this one (`WorkbenchController.follow`), so the way back is this result
50
- * as it stands. Named `title`, of `subject` — this view's name — and the
51
- * group.
52
- */
53
- | {
54
- kind: 'focus';
55
- subject: string;
56
- run(title: string): void;
57
- }
58
- /**
59
- * Set a board's filter to the stretch of time the menu is about (D33
60
- * Q52): offered on a dashboard panel only, over a span, for each date
61
- * filter wired to the field it spans. The panel it was set from keeps
62
- * every group, as a press that sets a filter leaves it (D23 Q18). `filter`
63
- * is that filter's label, for the item to name it by.
64
- */
65
- | {
66
- kind: 'filter';
67
- filter: string;
68
- run(): void;
69
- };
70
- /** One dimension of the group pressed, for the menu to name it by. */
71
- export interface FollowUpGroup {
72
- /**
73
- * The conditions that select it, as the applied bar names them — a date
74
- * bucket's range as its period, a number band's two comparisons as the
75
- * one segment they bound — so the menu, the name of a view opened from it
76
- * and that view's applied bar say one sentence.
77
- */
78
- conditions: readonly FilterSummaryItem[];
79
- }
80
- /** What the menu over one pressed group shows. */
81
- export interface FollowUp {
82
- /** The group, one dimension each, in the order the result is grouped. */
83
- groups: readonly FollowUpGroup[];
84
- actions: readonly FollowUpAction[];
85
- }
6
+ import { FollowUp } from './followUp.js';
86
7
  /**
87
8
  * What of the analysis editor the result reads and drives: the draft's
88
9
  * shape and look, and the commands a chart pick and a repair call.
@@ -1 +1 @@
1
- {"version":3,"file":"useAnalysisResult.d.ts","sourceRoot":"","sources":["../../src/react/useAnalysisResult.ts"],"names":[],"mappings":"AAcA,OAAO,EAeL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,MAAM,EACZ,MAAM,sBAAsB,CAAC;AAW9B,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,EAEV,kBAAkB,EAClB,SAAS,EACT,SAAS,EAET,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAK3D,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc;AACxB;;;;;;;;;GASG;AACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,CA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