@volvel/docs 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (585) hide show
  1. package/THIRD_PARTY_NOTICES.md +21 -3
  2. package/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
  3. package/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
  4. package/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
  5. package/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
  6. package/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
  7. package/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
  8. package/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
  9. package/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
  10. package/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
  11. package/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
  12. package/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
  13. package/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
  14. package/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
  15. package/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
  16. package/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
  17. package/{dist/assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
  18. package/{dist/assets/screenshots/console/app-builder-list.light.85064d6742d4.png → assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
  19. package/{dist/assets/screenshots/console/apps-list.dark.6580be4c6f17.png → assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
  20. package/{dist/assets/screenshots/console/apps-list.light.35ac9711c9a0.png → assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
  21. package/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
  22. package/{dist/assets/screenshots/console/apps-share.light.eddc9c058c37.png → assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
  23. package/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
  24. package/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
  25. package/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
  26. package/{dist/assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
  27. package/{dist/assets/screenshots/console/configure-alerts.light.24608f63f849.png → assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
  28. package/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
  29. package/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
  30. package/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
  31. package/{dist/assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
  32. package/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
  33. package/{dist/assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
  34. package/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
  35. package/{dist/assets/screenshots/console/extensions-list.light.f65bb930d029.png → assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
  36. package/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
  37. package/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
  38. package/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
  39. package/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
  40. package/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
  41. package/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
  42. package/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
  43. package/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
  44. package/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
  45. package/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
  46. package/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
  47. package/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
  48. package/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
  49. package/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
  50. package/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
  51. package/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
  52. package/{dist/assets/screenshots/console/releases-review.light.7f7eea72fc90.png → assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
  53. package/{dist/assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
  54. package/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
  55. package/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
  56. package/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
  57. package/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
  58. package/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
  59. package/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
  60. package/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
  61. package/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
  62. package/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
  63. package/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
  64. package/{dist/assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
  65. package/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
  66. package/{dist/assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
  67. package/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
  68. package/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
  69. package/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
  70. package/assets/screenshots/index.json +94 -94
  71. package/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
  72. package/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
  73. package/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
  74. package/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
  75. package/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
  76. package/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
  77. package/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
  78. package/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
  79. package/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
  80. package/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
  81. package/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
  82. package/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
  83. package/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
  84. package/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
  85. package/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
  86. package/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
  87. package/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
  88. package/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
  89. package/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
  90. package/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
  91. package/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
  92. package/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
  93. package/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
  94. package/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
  95. package/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
  96. package/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
  97. package/content/administer/explanation/sso/how-single-sign-on-works.md +2 -0
  98. package/content/administer/how-to/access/invite-end-users.md +8 -0
  99. package/content/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
  100. package/content/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
  101. package/content/administer/how-to/sso/provision-people-with-scim.md +1 -1
  102. package/content/administer/reference/screens/branding.md +1 -1
  103. package/content/administer/reference/screens/end-users.md +3 -1
  104. package/content/administer/reference/screens/overview.md +21 -0
  105. package/content/administer/reference/screens/retention.md +3 -2
  106. package/content/administer/reference/screens/single-sign-on.md +1 -1
  107. package/content/console/how-to/app-builder/publish-an-app.md +0 -1
  108. package/content/console/how-to/data/row-rules.md +1 -0
  109. package/content/console/reference/screens/build/published-apps.md +1 -2
  110. package/content/console/reference/screens/data/tables.md +1 -1
  111. package/content/console/reference/screens/home/tenants.md +1 -1
  112. package/content/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
  113. package/content/develop/explanation/apps/app-access.md +29 -10
  114. package/content/develop/explanation/scripts/how-scripts-run.md +1 -1
  115. package/content/develop/how-to/apps/write-an-app.md +1 -1
  116. package/content/develop/how-to/cli/install-from-source.md +1 -1
  117. package/content/develop/how-to/cli/install-the-cli.md +1 -1
  118. package/content/develop/how-to/cli/test-a-script.md +1 -1
  119. package/content/develop/how-to/configure/set-up-from-a-script.md +1 -1
  120. package/content/develop/reference/access/mcp.md +11 -1
  121. package/content/develop/reference/apps/app-client.md +10 -8
  122. package/content/develop/reference/apps/content-policy.md +8 -3
  123. package/content/develop/reference/queries/data-as-code.md +12 -0
  124. package/content/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
  125. package/content/develop/tutorials/cli/quickstart.md +1 -1
  126. package/content/self-host/explanation/access/index.md +1 -0
  127. package/content/self-host/explanation/access/instance-service-accounts.md +66 -0
  128. package/content/self-host/explanation/access/who-runs-what.md +2 -0
  129. package/content/self-host/explanation/running/architecture.md +1 -1
  130. package/content/self-host/explanation/running/egress-and-offline.md +1 -1
  131. package/content/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
  132. package/content/self-host/explanation/running/security-hardening.md +9 -8
  133. package/content/self-host/explanation/running/sizing-and-scaling.md +29 -0
  134. package/content/self-host/how-to/instance/moving-a-tenant.md +12 -0
  135. package/content/self-host/how-to/running/back-up-an-instance.md +1 -1
  136. package/content/self-host/how-to/running/build-the-image.md +1 -1
  137. package/content/self-host/how-to/running/install-on-fly.md +27 -10
  138. package/content/self-host/how-to/running/install-with-compose.md +4 -4
  139. package/content/self-host/how-to/running/monitor-an-instance.md +2 -0
  140. package/content/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
  141. package/content/self-host/how-to/running/restore-an-instance.md +34 -5
  142. package/content/self-host/how-to/running/run-a-standalone-worker.md +2 -2
  143. package/content/self-host/how-to/running/set-up-mail.md +13 -6
  144. package/content/self-host/reference/console/health.md +21 -1
  145. package/content/self-host/reference/running/configuration.md +1 -1
  146. package/content/self-host/reference/running/requirements.md +9 -2
  147. package/content/self-host/reference/running/retention.md +2 -1
  148. package/content/self-host/reference/running/troubleshooting.md +6 -1
  149. package/content/self-host/reference/running/versions-and-support.md +9 -1
  150. package/content/self-host/tutorials/install-on-one-machine.md +1 -1
  151. package/content/start/how-to/example/set-up-the-fernhill-example.md +26 -3
  152. package/content/start/index.md +11 -1
  153. package/content/start/reference/accessibility.md +35 -0
  154. package/content/start/reference/index.md +1 -0
  155. package/content/start/tutorials/index.md +6 -1
  156. package/content/start/tutorials/your-first-script.md +0 -1
  157. package/content/start/tutorials/your-first-table.md +2 -2
  158. package/dist/assets/screenshots/administer/access-changes.dark.5bf247ce0f19.png +0 -0
  159. package/dist/assets/screenshots/administer/access-changes.light.ed91948531ce.png +0 -0
  160. package/dist/assets/screenshots/administer/access-end-users.dark.4d9a5acba896.png +0 -0
  161. package/dist/assets/screenshots/administer/access-end-users.light.cef020771af1.png +0 -0
  162. package/dist/assets/screenshots/administer/access-groups.dark.aaf84e089c11.png +0 -0
  163. package/dist/assets/screenshots/administer/sso-audit-filters.dark.9aa82a2ac9c5.png +0 -0
  164. package/dist/assets/screenshots/administer/sso-audit-filters.light.5ecfdb651ace.png +0 -0
  165. package/dist/assets/screenshots/administer/{sso-branding-theme.dark.80bc3ce901a4.png → sso-branding-theme.dark.9a2c0482b3c2.png} +0 -0
  166. package/dist/assets/screenshots/administer/{sso-branding-theme.light.f48bd968481c.png → sso-branding-theme.light.7be432359625.png} +0 -0
  167. package/dist/assets/screenshots/administer/{sso-provider-setup.dark.8834ae797a50.png → sso-provider-setup.dark.bc7d126f135d.png} +0 -0
  168. package/dist/assets/screenshots/administer/sso-provider-setup.light.0cbda9279747.png +0 -0
  169. package/dist/assets/screenshots/administer/sso-workers-pools.dark.43f043620615.png +0 -0
  170. package/dist/assets/screenshots/administer/sso-workers-pools.light.25b0e09b2ff0.png +0 -0
  171. package/dist/assets/screenshots/console/account-sessions.dark.05dbf87d40a9.png +0 -0
  172. package/dist/assets/screenshots/console/account-sessions.light.2ef44c907ee5.png +0 -0
  173. package/{assets/screenshots/console/app-builder-list.dark.48340ac81e11.png → dist/assets/screenshots/console/app-builder-list.dark.124cca05b904.png} +0 -0
  174. package/{assets/screenshots/console/app-builder-list.light.85064d6742d4.png → dist/assets/screenshots/console/app-builder-list.light.082ae0464cbe.png} +0 -0
  175. package/{assets/screenshots/console/apps-list.dark.6580be4c6f17.png → dist/assets/screenshots/console/apps-list.dark.b24bb8a4fe8f.png} +0 -0
  176. package/{assets/screenshots/console/apps-list.light.35ac9711c9a0.png → dist/assets/screenshots/console/apps-list.light.fa8996fe55ff.png} +0 -0
  177. package/dist/assets/screenshots/console/{apps-share.dark.cf87c470cec4.png → apps-share.dark.0bb1a7899419.png} +0 -0
  178. package/{assets/screenshots/console/apps-share.light.eddc9c058c37.png → dist/assets/screenshots/console/apps-share.light.f26f075b3680.png} +0 -0
  179. package/dist/assets/screenshots/console/{basics-workspace-overview.dark.75d4329d6bd9.png → basics-workspace-overview.dark.678c40fa9f2a.png} +0 -0
  180. package/dist/assets/screenshots/console/{basics-workspace-overview.light.0a097241dfcb.png → basics-workspace-overview.light.86f7922860c9.png} +0 -0
  181. package/dist/assets/screenshots/console/configure-alerts-default.dark.8a2c534aa415.png +0 -0
  182. package/{assets/screenshots/console/configure-alerts.dark.3e4b58238bd2.png → dist/assets/screenshots/console/configure-alerts.dark.314fe8d7e0c6.png} +0 -0
  183. package/{assets/screenshots/console/configure-alerts.light.24608f63f849.png → dist/assets/screenshots/console/configure-alerts.light.ff5022a76eca.png} +0 -0
  184. package/dist/assets/screenshots/console/{configure-connection-sheet.dark.a8ae26d592fb.png → configure-connection-sheet.dark.41ba4383632c.png} +0 -0
  185. package/dist/assets/screenshots/console/configure-connections.dark.52147265a170.png +0 -0
  186. package/dist/assets/screenshots/console/{configure-connections.light.c3c1ec8eca52.png → configure-connections.light.8b15826634f1.png} +0 -0
  187. package/{assets/screenshots/console/dashboard-resource.dark.532f219609cc.png → dist/assets/screenshots/console/dashboard-resource.dark.4188f2810be1.png} +0 -0
  188. package/dist/assets/screenshots/console/dashboard-resource.light.8211fe9f380e.png +0 -0
  189. package/{assets/screenshots/console/dashboards-list.light.bb704dd75a30.png → dist/assets/screenshots/console/dashboards-list.light.438e3d23c888.png} +0 -0
  190. package/dist/assets/screenshots/console/extensions-editor.dark.4e5246f282e2.png +0 -0
  191. package/{assets/screenshots/console/extensions-list.light.f65bb930d029.png → dist/assets/screenshots/console/extensions-list.light.a1703d257ceb.png} +0 -0
  192. package/dist/assets/screenshots/console/flow-editor.dark.00229a94001e.png +0 -0
  193. package/dist/assets/screenshots/console/flow-editor.light.5eb68a339e84.png +0 -0
  194. package/dist/assets/screenshots/console/operate-approvals.light.1501cede2f94.png +0 -0
  195. package/dist/assets/screenshots/console/operate-cancel-by-age.dark.419042b822db.png +0 -0
  196. package/dist/assets/screenshots/console/operate-cancel-by-age.light.7d48915e9922.png +0 -0
  197. package/dist/assets/screenshots/console/operate-events.dark.2589975f7f46.png +0 -0
  198. package/dist/assets/screenshots/console/operate-events.light.c4d8d8ae8748.png +0 -0
  199. package/dist/assets/screenshots/console/operate-run-failed.dark.09addb030b58.png +0 -0
  200. package/dist/assets/screenshots/console/{operate-run-failed.light.482db87101aa.png → operate-run-failed.light.6163d2f9d3b3.png} +0 -0
  201. package/dist/assets/screenshots/console/operate-runs.dark.3bf1250f1f59.png +0 -0
  202. package/dist/assets/screenshots/console/{operate-runs.light.bccafcd93196.png → operate-runs.light.235f6baf6f3d.png} +0 -0
  203. package/dist/assets/screenshots/console/page-editor.light.3ec1f9d43475.png +0 -0
  204. package/dist/assets/screenshots/console/queries-editor.dark.ee99f9050a23.png +0 -0
  205. package/dist/assets/screenshots/console/queries-editor.light.67bd22086115.png +0 -0
  206. package/dist/assets/screenshots/console/queries-parameters.light.c471d505bbd1.png +0 -0
  207. package/dist/assets/screenshots/console/{releases-review.dark.34ec540432dc.png → releases-review.dark.091d815aa9c9.png} +0 -0
  208. package/{assets/screenshots/console/releases-review.light.7f7eea72fc90.png → dist/assets/screenshots/console/releases-review.light.a440c30d08b2.png} +0 -0
  209. package/{assets/screenshots/console/script-settings-tab.dark.976df3a2aaf0.png → dist/assets/screenshots/console/script-settings-tab.dark.5e96eedd9889.png} +0 -0
  210. package/dist/assets/screenshots/console/{scripts-test-pane.dark.6112678956ed.png → scripts-test-pane.dark.63dcff509936.png} +0 -0
  211. package/dist/assets/screenshots/console/{scripts-test-pane.light.2e1b637a8c7a.png → scripts-test-pane.light.bcef48f905b0.png} +0 -0
  212. package/dist/assets/screenshots/console/table-definition.light.b97883e1b6e0.png +0 -0
  213. package/dist/assets/screenshots/console/table-help.dark.da3a47215e6b.png +0 -0
  214. package/dist/assets/screenshots/console/table-help.light.07c67e63ef2e.png +0 -0
  215. package/dist/assets/screenshots/console/table-rows-filtered.dark.c61524c872a5.png +0 -0
  216. package/dist/assets/screenshots/console/table-rows-filtered.light.787e71f743dd.png +0 -0
  217. package/dist/assets/screenshots/console/table-rows.dark.19e2afeb688e.png +0 -0
  218. package/dist/assets/screenshots/console/table-rows.light.a9249d7b9bd5.png +0 -0
  219. package/dist/assets/screenshots/console/tut-visit-mix.dark.f1dd71da8937.png +0 -0
  220. package/{assets/screenshots/console/widgets-chart-scatter.light.e57e41675d8d.png → dist/assets/screenshots/console/widgets-chart-scatter.light.85ea38faaed8.png} +0 -0
  221. package/dist/assets/screenshots/console/widgets-phone-page.dark.360a39e459c7.png +0 -0
  222. package/{assets/screenshots/console/workspace-settings.light.3ac3bbfd9f4e.png → dist/assets/screenshots/console/workspace-settings.light.c56e7f5d80f8.png} +0 -0
  223. package/dist/assets/screenshots/docs/draft-conflict.dark.597b616abec7.png +0 -0
  224. package/dist/assets/screenshots/docs/draft-conflict.light.6d326a37e8bc.png +0 -0
  225. package/dist/assets/screenshots/docs/page-details-type.dark.2e382c8f131e.png +0 -0
  226. package/dist/assets/screenshots/self-host/extensions-component-kit.dark.ba673f636a8f.png +0 -0
  227. package/dist/assets/screenshots/self-host/extensions-component-kit.light.282da6a4c589.png +0 -0
  228. package/dist/assets/screenshots/self-host/instance-audit.dark.21de79247590.png +0 -0
  229. package/dist/assets/screenshots/self-host/instance-audit.light.dba4eaa712ed.png +0 -0
  230. package/dist/assets/screenshots/self-host/instance-branding.dark.0ddd4c2df652.png +0 -0
  231. package/dist/assets/screenshots/self-host/instance-branding.light.c3b7ffef6d4e.png +0 -0
  232. package/dist/assets/screenshots/self-host/instance-databases.dark.dd2403f84456.png +0 -0
  233. package/dist/assets/screenshots/self-host/instance-databases.light.3248546636cf.png +0 -0
  234. package/dist/assets/screenshots/self-host/instance-health.dark.5791805f72b7.png +0 -0
  235. package/dist/assets/screenshots/self-host/instance-health.light.cbfad910fc8e.png +0 -0
  236. package/dist/assets/screenshots/self-host/instance-import-check.dark.11ccf001d9f8.png +0 -0
  237. package/dist/assets/screenshots/self-host/instance-import-check.light.efbbef163d80.png +0 -0
  238. package/dist/assets/screenshots/self-host/instance-members.dark.d9fa55d364fd.png +0 -0
  239. package/dist/assets/screenshots/self-host/instance-members.light.7af6bfa48914.png +0 -0
  240. package/dist/assets/screenshots/self-host/instance-operators.dark.1326e9460224.png +0 -0
  241. package/dist/assets/screenshots/self-host/instance-operators.light.3f2cac001fb5.png +0 -0
  242. package/dist/assets/screenshots/self-host/instance-tenants.dark.ba860dc98c90.png +0 -0
  243. package/dist/assets/screenshots/self-host/instance-tenants.light.6a63877c41b3.png +0 -0
  244. package/dist/assets/screenshots/self-host/instance-triggers.dark.f2bba07895f2.png +0 -0
  245. package/dist/assets/screenshots/self-host/instance-triggers.light.dddb827e214a.png +0 -0
  246. package/dist/assets/screenshots/start/basics-finding-your-way.dark.5cc80a2d591f.png +0 -0
  247. package/dist/assets/screenshots/start/basics-finding-your-way.light.dddf72e4ad38.png +0 -0
  248. package/dist/assets/screenshots/start/tut-approve-step.dark.5b773354ba35.png +0 -0
  249. package/dist/assets/screenshots/start/tut-approve-step.light.b0224c9b1133.png +0 -0
  250. package/dist/assets/screenshots/start/visit-notes-filtered.dark.f6fb7a707e2f.png +0 -0
  251. package/dist/assets/screenshots/start/visit-notes-filtered.light.a4b4d64a7fc2.png +0 -0
  252. package/dist/fields.json +1 -1
  253. package/dist/manifest.json +1 -1
  254. package/dist/md/administer/explanation/sso/how-single-sign-on-works.md +2 -0
  255. package/dist/md/administer/how-to/access/invite-end-users.md +8 -0
  256. package/dist/md/administer/how-to/access/rule-rows-by-group-or-attribute.md +7 -0
  257. package/dist/md/administer/how-to/apps/give-an-app-a-hostname.md +1 -1
  258. package/dist/md/administer/how-to/sso/provision-people-with-scim.md +1 -1
  259. package/dist/md/administer/reference/audit-actions.md +1 -0
  260. package/dist/md/administer/reference/permissions.md +1 -0
  261. package/dist/md/administer/reference/screens/branding.md +1 -1
  262. package/dist/md/administer/reference/screens/end-users.md +3 -1
  263. package/dist/md/administer/reference/screens/overview.md +21 -0
  264. package/dist/md/administer/reference/screens/retention.md +3 -2
  265. package/dist/md/administer/reference/screens/single-sign-on.md +1 -1
  266. package/dist/md/console/how-to/app-builder/publish-an-app.md +0 -1
  267. package/dist/md/console/how-to/data/row-rules.md +1 -0
  268. package/dist/md/console/reference/screens/build/published-apps.md +1 -2
  269. package/dist/md/console/reference/screens/data/tables.md +1 -1
  270. package/dist/md/console/reference/screens/home/tenants.md +1 -1
  271. package/dist/md/develop/explanation/api/how-the-api-knows-who-is-calling.md +10 -3
  272. package/dist/md/develop/explanation/apps/app-access.md +29 -10
  273. package/dist/md/develop/explanation/scripts/how-scripts-run.md +1 -1
  274. package/dist/md/develop/how-to/apps/write-an-app.md +1 -1
  275. package/dist/md/develop/how-to/cli/install-from-source.md +1 -1
  276. package/dist/md/develop/how-to/cli/install-the-cli.md +1 -1
  277. package/dist/md/develop/how-to/cli/test-a-script.md +1 -1
  278. package/dist/md/develop/how-to/configure/set-up-from-a-script.md +1 -1
  279. package/dist/md/develop/reference/access/mcp.md +11 -1
  280. package/dist/md/develop/reference/api/agents.md +27 -1
  281. package/dist/md/develop/reference/api/apps.md +25 -1
  282. package/dist/md/develop/reference/api/end-users.md +71 -6
  283. package/dist/md/develop/reference/api/figures.md +160 -0
  284. package/dist/md/develop/reference/api/identity.md +318 -1
  285. package/dist/md/develop/reference/api/index.md +7 -6
  286. package/dist/md/develop/reference/api/instance.md +59 -1
  287. package/dist/md/develop/reference/api/permissions.md +13 -4
  288. package/dist/md/develop/reference/api/tenancy.md +13 -0
  289. package/dist/md/develop/reference/apps/app-client.md +10 -8
  290. package/dist/md/develop/reference/apps/content-policy.md +8 -3
  291. package/dist/md/develop/reference/errors.md +6 -0
  292. package/dist/md/develop/reference/kinds/dashboard.md +10 -0
  293. package/dist/md/develop/reference/kinds/interface.md +10 -0
  294. package/dist/md/develop/reference/kinds/widget.md +1 -1
  295. package/dist/md/develop/reference/queries/data-as-code.md +12 -0
  296. package/dist/md/develop/reference/sdk/sdk.md +1 -1
  297. package/dist/md/develop/reference/sdk/widgets-page.md +13 -0
  298. package/dist/md/develop/reference/sdk/widgets.md +2 -2
  299. package/dist/md/develop/reference/tenant-widgets/what-a-view-is-given.md +1 -1
  300. package/dist/md/develop/reference/widgets/chart.md +1 -1
  301. package/dist/md/develop/reference/widgets/goal.md +1 -1
  302. package/dist/md/develop/reference/widgets/pivot.md +1 -1
  303. package/dist/md/develop/reference/widgets/stat.md +1 -1
  304. package/dist/md/develop/tutorials/cli/quickstart.md +1 -1
  305. package/dist/md/self-host/explanation/access/index.md +1 -0
  306. package/dist/md/self-host/explanation/access/instance-service-accounts.md +66 -0
  307. package/dist/md/self-host/explanation/access/who-runs-what.md +2 -0
  308. package/dist/md/self-host/explanation/running/architecture.md +1 -1
  309. package/dist/md/self-host/explanation/running/egress-and-offline.md +1 -1
  310. package/dist/md/self-host/explanation/running/managed-workers-and-isolation.md +35 -8
  311. package/dist/md/self-host/explanation/running/security-hardening.md +9 -8
  312. package/dist/md/self-host/explanation/running/sizing-and-scaling.md +29 -0
  313. package/dist/md/self-host/how-to/instance/moving-a-tenant.md +12 -0
  314. package/dist/md/self-host/how-to/running/back-up-an-instance.md +1 -1
  315. package/dist/md/self-host/how-to/running/build-the-image.md +1 -1
  316. package/dist/md/self-host/how-to/running/install-on-fly.md +27 -10
  317. package/dist/md/self-host/how-to/running/install-with-compose.md +4 -4
  318. package/dist/md/self-host/how-to/running/monitor-an-instance.md +2 -0
  319. package/dist/md/self-host/how-to/running/put-a-proxy-in-front.md +7 -8
  320. package/dist/md/self-host/how-to/running/restore-an-instance.md +34 -5
  321. package/dist/md/self-host/how-to/running/run-a-standalone-worker.md +2 -2
  322. package/dist/md/self-host/how-to/running/set-up-mail.md +13 -6
  323. package/dist/md/self-host/reference/console/health.md +21 -1
  324. package/dist/md/self-host/reference/running/configuration.md +1 -1
  325. package/dist/md/self-host/reference/running/requirements.md +9 -2
  326. package/dist/md/self-host/reference/running/retention.md +2 -1
  327. package/dist/md/self-host/reference/running/troubleshooting.md +6 -1
  328. package/dist/md/self-host/reference/running/versions-and-support.md +9 -1
  329. package/dist/md/self-host/reference/settings.md +2 -2
  330. package/dist/md/self-host/tutorials/install-on-one-machine.md +1 -1
  331. package/dist/md/start/how-to/example/set-up-the-fernhill-example.md +26 -3
  332. package/dist/md/start/index.md +11 -1
  333. package/dist/md/start/reference/accessibility.md +35 -0
  334. package/dist/md/start/reference/changelog/0-7-0.md +208 -0
  335. package/dist/md/start/reference/index.md +1 -0
  336. package/dist/md/start/tutorials/index.md +6 -1
  337. package/dist/md/start/tutorials/your-first-script.md +0 -1
  338. package/dist/md/start/tutorials/your-first-table.md +2 -2
  339. package/dist/pages/administer/explanation/sso/how-single-sign-on-works.json +1 -1
  340. package/dist/pages/administer/how-to/access/invite-end-users.json +1 -1
  341. package/dist/pages/administer/how-to/access/rule-rows-by-group-or-attribute.json +1 -1
  342. package/dist/pages/administer/how-to/apps/give-an-app-a-hostname.json +1 -1
  343. package/dist/pages/administer/how-to/sso/provision-people-with-scim.json +1 -1
  344. package/dist/pages/administer/reference/audit-actions.json +1 -1
  345. package/dist/pages/administer/reference/permissions.json +1 -1
  346. package/dist/pages/administer/reference/screens/branding.json +1 -1
  347. package/dist/pages/administer/reference/screens/end-users.json +1 -1
  348. package/dist/pages/administer/reference/screens/overview.json +1 -1
  349. package/dist/pages/administer/reference/screens/retention.json +1 -1
  350. package/dist/pages/administer/reference/screens/single-sign-on.json +1 -1
  351. package/dist/pages/console/how-to/app-builder/publish-an-app.json +1 -1
  352. package/dist/pages/console/how-to/data/row-rules.json +1 -1
  353. package/dist/pages/console/reference/screens/build/published-apps.json +1 -1
  354. package/dist/pages/console/reference/screens/data/tables.json +1 -1
  355. package/dist/pages/console/reference/screens/home/tenants.json +1 -1
  356. package/dist/pages/develop/explanation/api/how-the-api-knows-who-is-calling.json +1 -1
  357. package/dist/pages/develop/explanation/apps/app-access.json +1 -1
  358. package/dist/pages/develop/explanation/scripts/how-scripts-run.json +1 -1
  359. package/dist/pages/develop/how-to/apps/write-an-app.json +1 -1
  360. package/dist/pages/develop/how-to/cli/install-from-source.json +1 -1
  361. package/dist/pages/develop/how-to/cli/install-the-cli.json +1 -1
  362. package/dist/pages/develop/how-to/cli/test-a-script.json +1 -1
  363. package/dist/pages/develop/how-to/configure/set-up-from-a-script.json +1 -1
  364. package/dist/pages/develop/reference/access/mcp.json +1 -1
  365. package/dist/pages/develop/reference/api/agents.json +1 -1
  366. package/dist/pages/develop/reference/api/apps.json +1 -1
  367. package/dist/pages/develop/reference/api/end-users.json +1 -1
  368. package/dist/pages/develop/reference/api/figures.json +1 -0
  369. package/dist/pages/develop/reference/api/identity.json +1 -1
  370. package/dist/pages/develop/reference/api/index.json +1 -1
  371. package/dist/pages/develop/reference/api/instance.json +1 -1
  372. package/dist/pages/develop/reference/api/permissions.json +1 -1
  373. package/dist/pages/develop/reference/api/tenancy.json +1 -1
  374. package/dist/pages/develop/reference/apps/app-client.json +1 -1
  375. package/dist/pages/develop/reference/apps/content-policy.json +1 -1
  376. package/dist/pages/develop/reference/errors.json +1 -1
  377. package/dist/pages/develop/reference/kinds/dashboard.json +1 -1
  378. package/dist/pages/develop/reference/kinds/interface.json +1 -1
  379. package/dist/pages/develop/reference/kinds/widget.json +1 -1
  380. package/dist/pages/develop/reference/queries/data-as-code.json +1 -1
  381. package/dist/pages/develop/reference/sdk/sdk.json +1 -1
  382. package/dist/pages/develop/reference/sdk/widgets-page.json +1 -1
  383. package/dist/pages/develop/reference/sdk/widgets.json +1 -1
  384. package/dist/pages/develop/reference/tenant-widgets/what-a-view-is-given.json +1 -1
  385. package/dist/pages/develop/reference/widgets/chart.json +1 -1
  386. package/dist/pages/develop/reference/widgets/goal.json +1 -1
  387. package/dist/pages/develop/reference/widgets/pivot.json +1 -1
  388. package/dist/pages/develop/reference/widgets/stat.json +1 -1
  389. package/dist/pages/develop/tutorials/cli/quickstart.json +1 -1
  390. package/dist/pages/self-host/explanation/access/index.json +1 -1
  391. package/dist/pages/self-host/explanation/access/instance-service-accounts.json +1 -0
  392. package/dist/pages/self-host/explanation/access/who-runs-what.json +1 -1
  393. package/dist/pages/self-host/explanation/running/architecture.json +1 -1
  394. package/dist/pages/self-host/explanation/running/egress-and-offline.json +1 -1
  395. package/dist/pages/self-host/explanation/running/managed-workers-and-isolation.json +1 -1
  396. package/dist/pages/self-host/explanation/running/security-hardening.json +1 -1
  397. package/dist/pages/self-host/explanation/running/sizing-and-scaling.json +1 -1
  398. package/dist/pages/self-host/how-to/instance/moving-a-tenant.json +1 -1
  399. package/dist/pages/self-host/how-to/running/back-up-an-instance.json +1 -1
  400. package/dist/pages/self-host/how-to/running/build-the-image.json +1 -1
  401. package/dist/pages/self-host/how-to/running/install-on-fly.json +1 -1
  402. package/dist/pages/self-host/how-to/running/install-with-compose.json +1 -1
  403. package/dist/pages/self-host/how-to/running/monitor-an-instance.json +1 -1
  404. package/dist/pages/self-host/how-to/running/put-a-proxy-in-front.json +1 -1
  405. package/dist/pages/self-host/how-to/running/restore-an-instance.json +1 -1
  406. package/dist/pages/self-host/how-to/running/run-a-standalone-worker.json +1 -1
  407. package/dist/pages/self-host/how-to/running/set-up-mail.json +1 -1
  408. package/dist/pages/self-host/reference/console/health.json +1 -1
  409. package/dist/pages/self-host/reference/running/configuration.json +1 -1
  410. package/dist/pages/self-host/reference/running/requirements.json +1 -1
  411. package/dist/pages/self-host/reference/running/retention.json +1 -1
  412. package/dist/pages/self-host/reference/running/troubleshooting.json +1 -1
  413. package/dist/pages/self-host/reference/running/versions-and-support.json +1 -1
  414. package/dist/pages/self-host/reference/settings.json +1 -1
  415. package/dist/pages/self-host/tutorials/install-on-one-machine.json +1 -1
  416. package/dist/pages/start/how-to/example/set-up-the-fernhill-example.json +1 -1
  417. package/dist/pages/start/index.json +1 -1
  418. package/dist/pages/start/reference/accessibility.json +1 -0
  419. package/dist/pages/start/reference/changelog/0-7-0.json +1 -0
  420. package/dist/pages/start/reference/index.json +1 -1
  421. package/dist/pages/start/tutorials/index.json +1 -1
  422. package/dist/pages/start/tutorials/your-first-script.json +1 -1
  423. package/dist/pages/start/tutorials/your-first-table.json +1 -1
  424. package/dist/redirects.json +1 -1
  425. package/dist/search.json +1 -1
  426. package/generated/administer/reference/audit-actions.md +1 -0
  427. package/generated/administer/reference/permissions.md +1 -0
  428. package/generated/develop/reference/api/agents.md +27 -1
  429. package/generated/develop/reference/api/apps.md +25 -1
  430. package/generated/develop/reference/api/end-users.md +71 -6
  431. package/generated/develop/reference/api/figures.md +160 -0
  432. package/generated/develop/reference/api/identity.md +318 -1
  433. package/generated/develop/reference/api/index.md +7 -6
  434. package/generated/develop/reference/api/instance.md +59 -1
  435. package/generated/develop/reference/api/permissions.md +13 -4
  436. package/generated/develop/reference/api/tenancy.md +13 -0
  437. package/generated/develop/reference/errors.md +6 -0
  438. package/generated/develop/reference/kinds/dashboard.md +10 -0
  439. package/generated/develop/reference/kinds/interface.md +10 -0
  440. package/generated/develop/reference/kinds/widget.md +1 -1
  441. package/generated/develop/reference/sdk/sdk.md +1 -1
  442. package/generated/develop/reference/sdk/widgets-page.md +13 -0
  443. package/generated/develop/reference/sdk/widgets.md +2 -2
  444. package/generated/develop/reference/widgets/chart.md +1 -1
  445. package/generated/develop/reference/widgets/goal.md +1 -1
  446. package/generated/develop/reference/widgets/pivot.md +1 -1
  447. package/generated/develop/reference/widgets/stat.md +1 -1
  448. package/generated/openapi.json +4899 -1734
  449. package/generated/self-host/reference/settings.md +2 -2
  450. package/generated/start/reference/changelog/0-7-0.md +208 -0
  451. package/package.json +11 -6
  452. package/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
  453. package/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
  454. package/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
  455. package/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
  456. package/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
  457. package/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
  458. package/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
  459. package/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
  460. package/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
  461. package/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
  462. package/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
  463. package/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
  464. package/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
  465. package/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
  466. package/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
  467. package/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
  468. package/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
  469. package/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
  470. package/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
  471. package/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
  472. package/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
  473. package/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
  474. package/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
  475. package/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
  476. package/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
  477. package/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
  478. package/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
  479. package/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
  480. package/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
  481. package/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
  482. package/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
  483. package/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
  484. package/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
  485. package/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
  486. package/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
  487. package/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
  488. package/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
  489. package/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
  490. package/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
  491. package/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
  492. package/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
  493. package/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
  494. package/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
  495. package/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
  496. package/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
  497. package/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
  498. package/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
  499. package/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
  500. package/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
  501. package/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
  502. package/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
  503. package/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
  504. package/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
  505. package/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
  506. package/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
  507. package/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
  508. package/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
  509. package/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
  510. package/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
  511. package/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
  512. package/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
  513. package/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
  514. package/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
  515. package/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
  516. package/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
  517. package/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
  518. package/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
  519. package/dist/assets/screenshots/administer/access-changes.dark.5b3255fafe5c.png +0 -0
  520. package/dist/assets/screenshots/administer/access-changes.light.cff6913107a3.png +0 -0
  521. package/dist/assets/screenshots/administer/access-end-users.dark.c0d4e526952b.png +0 -0
  522. package/dist/assets/screenshots/administer/access-end-users.light.b3368747a4d3.png +0 -0
  523. package/dist/assets/screenshots/administer/access-groups.dark.bff155b79a2c.png +0 -0
  524. package/dist/assets/screenshots/administer/sso-audit-filters.dark.b6a4dc01aa2c.png +0 -0
  525. package/dist/assets/screenshots/administer/sso-audit-filters.light.1a295f8a94ff.png +0 -0
  526. package/dist/assets/screenshots/administer/sso-provider-setup.light.b7e337ee30fb.png +0 -0
  527. package/dist/assets/screenshots/administer/sso-workers-pools.dark.2270cb13aaab.png +0 -0
  528. package/dist/assets/screenshots/administer/sso-workers-pools.light.1efebb29f50c.png +0 -0
  529. package/dist/assets/screenshots/console/account-sessions.dark.678e11711e06.png +0 -0
  530. package/dist/assets/screenshots/console/account-sessions.light.d742e8f3d3d1.png +0 -0
  531. package/dist/assets/screenshots/console/configure-alerts-default.dark.425955f71c50.png +0 -0
  532. package/dist/assets/screenshots/console/configure-connections.dark.7b64ffab4c8c.png +0 -0
  533. package/dist/assets/screenshots/console/dashboard-resource.light.55b36abe8e0e.png +0 -0
  534. package/dist/assets/screenshots/console/extensions-editor.dark.ebb816369d53.png +0 -0
  535. package/dist/assets/screenshots/console/flow-editor.dark.caab11f209cb.png +0 -0
  536. package/dist/assets/screenshots/console/flow-editor.light.bfc7e6b366dc.png +0 -0
  537. package/dist/assets/screenshots/console/operate-approvals.light.36987d0a4c62.png +0 -0
  538. package/dist/assets/screenshots/console/operate-cancel-by-age.dark.2786b42ecfbe.png +0 -0
  539. package/dist/assets/screenshots/console/operate-cancel-by-age.light.8ef6601ebbe7.png +0 -0
  540. package/dist/assets/screenshots/console/operate-events.dark.7067e88d771e.png +0 -0
  541. package/dist/assets/screenshots/console/operate-events.light.b58a8c7f0b04.png +0 -0
  542. package/dist/assets/screenshots/console/operate-run-failed.dark.eb8c52a9fcf7.png +0 -0
  543. package/dist/assets/screenshots/console/operate-runs.dark.ae45d93820b3.png +0 -0
  544. package/dist/assets/screenshots/console/page-editor.light.2023b176d1a0.png +0 -0
  545. package/dist/assets/screenshots/console/queries-editor.dark.b0ef383c3b90.png +0 -0
  546. package/dist/assets/screenshots/console/queries-editor.light.8e413390ad34.png +0 -0
  547. package/dist/assets/screenshots/console/queries-parameters.light.9bca851e025c.png +0 -0
  548. package/dist/assets/screenshots/console/table-definition.light.ff11cce13c18.png +0 -0
  549. package/dist/assets/screenshots/console/table-help.dark.bc35e748426c.png +0 -0
  550. package/dist/assets/screenshots/console/table-help.light.fb1b109ee396.png +0 -0
  551. package/dist/assets/screenshots/console/table-rows-filtered.dark.6fab42faa122.png +0 -0
  552. package/dist/assets/screenshots/console/table-rows-filtered.light.aa9881d95f4d.png +0 -0
  553. package/dist/assets/screenshots/console/table-rows.dark.4ce02d5478c9.png +0 -0
  554. package/dist/assets/screenshots/console/table-rows.light.a1f7d91a9e77.png +0 -0
  555. package/dist/assets/screenshots/console/tut-visit-mix.dark.724c62999f95.png +0 -0
  556. package/dist/assets/screenshots/console/widgets-phone-page.dark.386738c3e5fb.png +0 -0
  557. package/dist/assets/screenshots/docs/draft-conflict.dark.894a4f116020.png +0 -0
  558. package/dist/assets/screenshots/docs/draft-conflict.light.c5187649da9a.png +0 -0
  559. package/dist/assets/screenshots/docs/page-details-type.dark.26fda0943a41.png +0 -0
  560. package/dist/assets/screenshots/self-host/extensions-component-kit.dark.95cf642b62b6.png +0 -0
  561. package/dist/assets/screenshots/self-host/extensions-component-kit.light.d4d7ae43474d.png +0 -0
  562. package/dist/assets/screenshots/self-host/instance-audit.dark.eabb7e1545a2.png +0 -0
  563. package/dist/assets/screenshots/self-host/instance-audit.light.e0704c3e2f3c.png +0 -0
  564. package/dist/assets/screenshots/self-host/instance-branding.dark.65706ba2f266.png +0 -0
  565. package/dist/assets/screenshots/self-host/instance-branding.light.53ef9943efc1.png +0 -0
  566. package/dist/assets/screenshots/self-host/instance-databases.dark.17e36475132c.png +0 -0
  567. package/dist/assets/screenshots/self-host/instance-databases.light.6bd31df9f812.png +0 -0
  568. package/dist/assets/screenshots/self-host/instance-health.dark.7ddc9725c6e5.png +0 -0
  569. package/dist/assets/screenshots/self-host/instance-health.light.5d8697f0135a.png +0 -0
  570. package/dist/assets/screenshots/self-host/instance-import-check.dark.b54f53b17e5e.png +0 -0
  571. package/dist/assets/screenshots/self-host/instance-import-check.light.b33217f8efdf.png +0 -0
  572. package/dist/assets/screenshots/self-host/instance-members.dark.3f319a2912d7.png +0 -0
  573. package/dist/assets/screenshots/self-host/instance-members.light.3f90be8b0556.png +0 -0
  574. package/dist/assets/screenshots/self-host/instance-operators.dark.fb0fcc88cc66.png +0 -0
  575. package/dist/assets/screenshots/self-host/instance-operators.light.038f3f725bec.png +0 -0
  576. package/dist/assets/screenshots/self-host/instance-tenants.dark.1f2501ef99c1.png +0 -0
  577. package/dist/assets/screenshots/self-host/instance-tenants.light.9c1b997a9f5b.png +0 -0
  578. package/dist/assets/screenshots/self-host/instance-triggers.dark.2c3cffed2649.png +0 -0
  579. package/dist/assets/screenshots/self-host/instance-triggers.light.b0a06ee78d65.png +0 -0
  580. package/dist/assets/screenshots/start/basics-finding-your-way.dark.05cc7d67b47c.png +0 -0
  581. package/dist/assets/screenshots/start/basics-finding-your-way.light.45790efbcb57.png +0 -0
  582. package/dist/assets/screenshots/start/tut-approve-step.dark.dc691e002e9e.png +0 -0
  583. package/dist/assets/screenshots/start/tut-approve-step.light.9c219b4d2d1a.png +0 -0
  584. package/dist/assets/screenshots/start/visit-notes-filtered.dark.f26ec0b4168c.png +0 -0
  585. package/dist/assets/screenshots/start/visit-notes-filtered.light.841ac7004f1c.png +0 -0
@@ -1 +1 @@
1
- {"path":"develop/reference/sdk/widgets","title":"@volvel/widgets","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"inlineCode","value":"import { … } from \"@volvel/widgets\"","line":8}],"line":8},{"type":"heading","depth":2,"id":"functions","children":[{"type":"text","value":"Functions","line":10}],"line":10},{"type":"heading","depth":3,"id":"choicewords","children":[{"type":"text","value":"choiceWords","line":12}],"line":12},{"type":"paragraph","children":[{"type":"text","value":"What a choice value is called: the label its table gives it, else the value with a first-letter","line":14},{"type":"break","hard":false,"line":14},{"type":"text","value":"capital. For choice columns and badges only: free text (a clinic's name) is drawn as it is.","line":15}],"line":14},{"type":"code","value":"function choiceWords(column: {\n values?: readonly {\n value: string;\n label?: string;\n }[];\n} | undefined, value: unknown): string","lang":"ts","line":17},{"type":"heading","depth":3,"id":"compareversions","children":[{"type":"text","value":"compareVersions","line":26}],"line":26},{"type":"paragraph","children":[{"type":"text","value":"Orders two ","line":28},{"type":"inlineCode","value":"major.minor.patch","line":28},{"type":"text","value":" versions as numbers (a build or prerelease suffix is ignored).","line":28}],"line":28},{"type":"code","value":"function compareVersions(a: string, b: string): number","lang":"ts","line":30},{"type":"heading","depth":3,"id":"counttext","children":[{"type":"text","value":"countText","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"A count as the reader writes it: 1,204 in the US, 1.204 in Germany.","line":36}],"line":36},{"type":"code","value":"function countText(count: number): string","lang":"ts","line":38},{"type":"heading","depth":3,"id":"definewidget","children":[{"type":"text","value":"defineWidget","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Declares a widget. Throws when the definition is wrong, so a pack fails when it is built, not when a page is drawn.","line":44}],"line":44},{"type":"code","value":"function defineWidget<const D extends WidgetDefinition>(definition: D): D","lang":"ts","line":46},{"type":"heading","depth":3,"id":"definitionproblems","children":[{"type":"text","value":"definitionProblems","line":50}],"line":50},{"type":"paragraph","children":[{"type":"text","value":"What is wrong with a definition, as sentences; empty when nothing is.","line":52}],"line":52},{"type":"code","value":"function definitionProblems(definition: WidgetDefinition): string[]","lang":"ts","line":54},{"type":"heading","depth":3,"id":"formatday","children":[{"type":"text","value":"formatDay","line":58}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"A day as the boards write it: \"Nov 20\", and \"Nov 20, 2025\" when it is not this year. The one","line":60},{"type":"break","hard":false,"line":60},{"type":"text","value":"way every widget and every drawer says a date; ","line":61},{"type":"inlineCode","value":"undefined","line":61},{"type":"text","value":" for text that is not a day.","line":61}],"line":60},{"type":"code","value":"function formatDay(value: unknown, now?: Date): string | undefined","lang":"ts","line":63},{"type":"heading","depth":3,"id":"formatmoment","children":[{"type":"text","value":"formatMoment","line":67}],"line":67},{"type":"paragraph","children":[{"type":"text","value":"A moment as the reader's own clock reads it: \"Dec 3, 6:20 PM\", or \"Dec 3\" without the time, and","line":69},{"type":"break","hard":false,"line":69},{"type":"text","value":"the year when it is not this one. The one way a cell and a confirmation say a timestamp, so","line":70},{"type":"break","hard":false,"line":70},{"type":"text","value":"they never name different days; ","line":71},{"type":"inlineCode","value":"undefined","line":71},{"type":"text","value":" for text that is not a moment.","line":71}],"line":69},{"type":"code","value":"function formatMoment(value: unknown, withTime?: boolean, now?: Date): string | undefined","lang":"ts","line":73},{"type":"heading","depth":3,"id":"formatnumber","children":[{"type":"text","value":"formatNumber","line":77}],"line":77},{"type":"paragraph","children":[{"type":"text","value":"A number as a person reads it; anything else as it is, and nothing as a dash.","line":79}],"line":79},{"type":"code","value":"function formatNumber(value: unknown, format?: ValueFormat, locale?: string): string","lang":"ts","line":81},{"type":"heading","depth":3,"id":"formatvalue","children":[{"type":"text","value":"formatValue","line":85}],"line":85},{"type":"paragraph","children":[{"type":"inlineCode","value":"12.5%","line":87},{"type":"text","value":", ","line":87},{"type":"inlineCode","value":"$1,234.56","line":87},{"type":"text","value":", ","line":87},{"type":"inlineCode","value":"1,204","line":87},{"type":"text","value":", as the reader's locale writes them (US English where it is","line":87},{"type":"break","hard":false,"line":87},{"type":"text","value":"not known): ","line":88},{"type":"inlineCode","value":"1.234,56 €","line":88},{"type":"text","value":" in German. Undefined for a value that is not a number.","line":88},{"type":"break","hard":false,"line":88},{"type":"inlineCode","value":"locale","line":89},{"type":"text","value":" is the reader's, the browser's when left out.","line":89}],"line":87},{"type":"code","value":"function formatValue(value: unknown, format: ValueFormat | undefined, locale?: string): string | undefined","lang":"ts","line":91},{"type":"heading","depth":3,"id":"moneyformatof","children":[{"type":"text","value":"moneyFormatOf","line":95}],"line":95},{"type":"paragraph","children":[{"type":"text","value":"How a number column is money, as its table says it: what its definition holds (\"What is owed,","line":97},{"type":"break","hard":false,"line":97},{"type":"text","value":"in cents.\", \"The price in euros\"). Cents (or minor units) are kept as whole cents; the other","line":98},{"type":"break","hard":false,"line":98},{"type":"text","value":"words are money kept in whole units. ","line":99},{"type":"inlineCode","value":"undefined","line":99},{"type":"text","value":" for a column that does not say so, and for","line":99},{"type":"break","hard":false,"line":99},{"type":"text","value":"one that is not a number. The one rule the table, list, detail, form and the builder share.","line":100}],"line":97},{"type":"code","value":"function moneyFormatOf(column: MoneyColumn | undefined): ValueFormat | undefined","lang":"ts","line":102},{"type":"heading","depth":3,"id":"moneytext","children":[{"type":"text","value":"moneyText","line":106}],"line":106},{"type":"paragraph","children":[{"type":"text","value":"A stored amount as it is typed: 12345 cents is \"123.45\" (\"123,45\" where a comma is written).","line":108}],"line":108},{"type":"code","value":"function moneyText(value: number, options?: MoneyOptions): string","lang":"ts","line":110},{"type":"heading","depth":3,"id":"mustgive","children":[{"type":"text","value":"mustGive","line":114}],"line":114},{"type":"paragraph","children":[{"type":"text","value":"Whether a person must give this column a value when they add a row: the data server's own","line":116},{"type":"break","hard":false,"line":116},{"type":"text","value":"rule, a column that is required (NOT NULL) and has no default. One that has a default is","line":117},{"type":"break","hard":false,"line":117},{"type":"text","value":"filled in by the server when left out, so it is not asked for, and a form starts with it.","line":118},{"type":"break","hard":false,"line":118},{"type":"text","value":"Every form, and every list of what a form asks, uses this one rule.","line":119}],"line":116},{"type":"code","value":"function mustGive(column: {\n required?: boolean | undefined;\n default?: unknown;\n}): boolean","lang":"ts","line":121},{"type":"heading","depth":3,"id":"numberof","children":[{"type":"text","value":"numberOf","line":128}],"line":128},{"type":"paragraph","children":[{"type":"text","value":"A number from a value: totals can arrive as text, from the database's exact numbers.","line":130}],"line":130},{"type":"code","value":"function numberOf(value: unknown): number | undefined","lang":"ts","line":132},{"type":"heading","depth":3,"id":"parsemoney","children":[{"type":"text","value":"parseMoney","line":136}],"line":136},{"type":"paragraph","children":[{"type":"text","value":"An amount a person typed, read as the column keeps it, with no float error: \"123.45\" or, where","line":138},{"type":"break","hard":false,"line":138},{"type":"text","value":"a comma is written, \"123,45\", is 12345 cents. Empty is no amount. More than two decimals, or","line":139},{"type":"break","hard":false,"line":139},{"type":"text","value":"text that is not an amount, is a problem in words, not a guess.","line":140}],"line":138},{"type":"code","value":"function parseMoney(text: string, options?: MoneyOptions): {\n ok: true;\n value: number | undefined;\n} | {\n ok: false;\n message: string;\n}","lang":"ts","line":142},{"type":"heading","depth":3,"id":"readerlocale","children":[{"type":"text","value":"readerLocale","line":152}],"line":152},{"type":"paragraph","children":[{"type":"text","value":"The locale the person reading a page writes numbers in: the browser's first preferred","line":154},{"type":"break","hard":false,"line":154},{"type":"text","value":"language, and US English where there is no browser or it says nothing. The one place","line":155},{"type":"break","hard":false,"line":155},{"type":"text","value":"numbers take their marks from, so a figure reads back as it was typed (D38).","line":156}],"line":154},{"type":"code","value":"function readerLocale(): string","lang":"ts","line":158},{"type":"heading","depth":3,"id":"sentencecase","children":[{"type":"text","value":"sentenceCase","line":162}],"line":162},{"type":"paragraph","children":[{"type":"text","value":"A stored word as a chip reads it: \"no_show\" is \"No show\", \"paid\" is \"Paid\".","line":164}],"line":164},{"type":"code","value":"function sentenceCase(value: string): string","lang":"ts","line":166},{"type":"heading","depth":3,"id":"tenantdefinitionproblems","children":[{"type":"text","value":"tenantDefinitionProblems","line":170}],"line":170},{"type":"paragraph","children":[{"type":"text","value":"What is wrong with a definition of a developer's widget: everything ","line":172},{"type":"inlineCode","value":"definitionProblems","line":172},{"type":"break","hard":false,"line":172},{"type":"text","value":"finds, and a type outside the tenant's namespace. A tenant cannot make a widget of the","line":173},{"type":"break","hard":false,"line":173},{"type":"text","value":"platform's packs, nor of any other name that could be taken for one.","line":174}],"line":172},{"type":"code","value":"function tenantDefinitionProblems(definition: WidgetDefinition): string[]","lang":"ts","line":176},{"type":"heading","depth":3,"id":"updatenotes","children":[{"type":"text","value":"updateNotes","line":180}],"line":180},{"type":"paragraph","children":[{"type":"text","value":"What moving a placed widget from one version to another changes in what it is configured with.","line":182}],"line":182},{"type":"code","value":"function updateNotes(from: WidgetDefinition, to: WidgetDefinition): {\n added: string[];\n removed: string[];\n}","lang":"ts","line":184},{"type":"heading","depth":2,"id":"classes","children":[{"type":"text","value":"Classes","line":191}],"line":191},{"type":"heading","depth":3,"id":"widgetregistry","children":[{"type":"text","value":"WidgetRegistry","line":193}],"line":193},{"type":"paragraph","children":[{"type":"text","value":"A set of widget definitions, by type.","line":195}],"line":195},{"type":"code","value":"class WidgetRegistry","lang":"ts","line":197},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":201}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":201}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":201}]}],"line":201},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"constructor","line":203}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(definitions?: Iterable<WidgetDefinition>)","line":203}]},{"type":"tableCell","children":[]}],"line":203},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"add","line":204}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(definition: WidgetDefinition): this","line":204}]},{"type":"tableCell","children":[{"type":"text","value":"Adds a definition. Two of one type is a mistake, never a replacement.","line":204}]}],"line":204},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"withDeployed","line":205}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(deployed: Iterable<DeployedWidget>): WidgetRegistry","line":205}]},{"type":"tableCell","children":[{"type":"text","value":"A registry of this one's widgets and the tenant widgets a workspace deployed (the answer of ","line":205},{"type":"inlineCode","value":"GET .../widgets","line":205},{"type":"text","value":"). The one it is made from is left alone: the platform's registry is shared, a workspace's is its own. A tenant widget answers by its current version.","line":205}]}],"line":205},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"get","line":206}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string, version?: string): WidgetDefinition | undefined","line":206}]},{"type":"tableCell","children":[{"type":"text","value":"A widget by its type: a tenant's at ","line":206},{"type":"inlineCode","value":"version","line":206},{"type":"text","value":" when it is given, else its current one.","line":206}]}],"line":206},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"versionsOf","line":207}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string): string[]","line":207}]},{"type":"tableCell","children":[{"type":"text","value":"The versions of a tenant's widget that are deployed, oldest first; none for a platform widget.","line":207}]}],"line":207},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"list","line":208}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(surface?: Surface): WidgetDefinition[]","line":208}]},{"type":"tableCell","children":[{"type":"text","value":"In the order they were added; offered on ","line":208},{"type":"inlineCode","value":"surface","line":208},{"type":"text","value":" when one is given.","line":208}]}],"line":208},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"packOf","line":209}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string): string","line":209}]},{"type":"tableCell","children":[{"type":"text","value":"The pack a type comes from: ","line":209},{"type":"inlineCode","value":"core","line":209},{"type":"text","value":" for ","line":209},{"type":"inlineCode","value":"core/chart","line":209},{"type":"text","value":".","line":209}]}],"line":209}],"line":201},{"type":"heading","depth":2,"id":"constants","children":[{"type":"text","value":"Constants","line":211}],"line":211},{"type":"heading","depth":3,"id":"breakdown_cadences","children":[{"type":"text","value":"BREAKDOWN_CADENCES","line":213}],"line":213},{"type":"paragraph","children":[{"type":"text","value":"How long the periods are when a summary is broken down by a date or a time.","line":215}],"line":215},{"type":"code","value":"const BREAKDOWN_CADENCES: readonly [\"day\", \"week\", \"month\", \"quarter\", \"year\"]","lang":"ts","line":217},{"type":"heading","depth":3,"id":"cadence_words","children":[{"type":"text","value":"CADENCE_WORDS","line":221}],"line":221},{"type":"paragraph","children":[{"type":"text","value":"What each of the breakdown periods is called, as a title.","line":223}],"line":223},{"type":"code","value":"const CADENCE_WORDS: Record<(typeof BREAKDOWN_CADENCES)[number], string>","lang":"ts","line":225},{"type":"heading","depth":3,"id":"categories","children":[{"type":"text","value":"CATEGORIES","line":229}],"line":229},{"type":"paragraph","children":[{"type":"text","value":"What a widget is for, which is how \"Add to page\" groups widgets.","line":231}],"line":231},{"type":"code","value":"const CATEGORIES: readonly [\"records\", \"action\", \"understand\", \"organize\", \"content\"]","lang":"ts","line":233},{"type":"heading","depth":3,"id":"category_titles","children":[{"type":"text","value":"CATEGORY_TITLES","line":237}],"line":237},{"type":"paragraph","children":[{"type":"text","value":"What \"Add to page\" calls each category.","line":239}],"line":239},{"type":"code","value":"const CATEGORY_TITLES: Record<Category, string>","lang":"ts","line":241},{"type":"heading","depth":3,"id":"controls","children":[{"type":"text","value":"CONTROLS","line":245}],"line":245},{"type":"paragraph","children":[{"type":"text","value":"The controls the inspector draws a setting with. A widget names one; it","line":247},{"type":"break","hard":false,"line":247},{"type":"text","value":"can't bring its own. Most are drawn for a property of ","line":248},{"type":"inlineCode","value":"config","line":248},{"type":"text","value":"; the data","line":248},{"type":"break","hard":false,"line":248},{"type":"text","value":"controls (","line":249},{"type":"inlineCode","value":"measure","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"breakdown","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"columns","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"conditions","line":249},{"type":"text","value":") are drawn for a","line":249},{"type":"break","hard":false,"line":249},{"type":"text","value":"data input, named by ","line":250},{"type":"inlineCode","value":"of","line":250},{"type":"text","value":".","line":250}],"line":247},{"type":"code","value":"const CONTROLS: readonly [\"text\", \"markdown\", \"number\", \"switch\", \"choice\", \"segmented\", \"format\", \"column\", \"columns\", \n/** One of the page's filters, chosen by name: a figure is compared across a range of dates. */\n\"filter\", \n/** An action: steps run when the widget is used (a button's). Edited in the Actions tab. */\n\"action\", \n/** A list of labelled actions, each with when it may be pressed (a table's row actions). */\n\"actions\", \n/** A page of the interface, chosen by name. */\n\"page\", \n/** A container's tabs, in order, each with its title (Tabs'). */\n\"tabs\", \n/** The filters whoever reads the page sets, each with its type and what it offers (Search and filter's). */\n\"pageFilters\", \n/** Where it sits in its own cell: a 3 × 3 grid of positions (a button's, an action group's). */\n\"position\", \n/** One of a few choices drawn as tiles to choose by looking (a button's style, a chart's type, a text's callout). */\n\"tiles\", \n/** Columns placed into named places on a sample row (a list's title, line under it, right, badge, picture). */\n\"slots\", \n/** An icon from the kit's set, by name. */\n\"icon\", \n/** Groups of people, by path (who may run an action, who sees a widget). */\n\"groups\", \n/** Fields of a table, in order, each with its label and help (a form's, a record detail's). */\n\"fields\", \n/** The column a list's or a table's rows are kept together by. */\n\"groupRows\", \"source\", \"measure\", \"breakdown\", \"conditions\", \"sort\", \"limit\"]","lang":"ts","line":252},{"type":"heading","depth":3,"id":"data_shapes","children":[{"type":"text","value":"DATA_SHAPES","line":282}],"line":282},{"type":"paragraph","children":[{"type":"text","value":"The shape of data a widget takes, read for it by the platform:","line":284}],"line":284},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"rows","line":286},{"type":"text","value":": rows of a table or a query, a page at a time;","line":286}],"line":286},{"type":"listItem","children":[{"type":"inlineCode","value":"summary","line":287},{"type":"text","value":": rows gathered into groups with values worked out for each","line":287},{"type":"break","hard":false,"line":287},{"type":"text","value":"(a total, a count, an average), or one line of values with no groups;","line":288}],"line":287},{"type":"listItem","children":[{"type":"inlineCode","value":"record","line":289},{"type":"text","value":": one row;","line":289}],"line":289},{"type":"listItem","children":[{"type":"inlineCode","value":"approvals","line":290},{"type":"text","value":": the steps of the workspace's flows that wait for someone's decision (a","line":290},{"type":"break","hard":false,"line":290},{"type":"text","value":"widget that reads this is read for a member only, by ","line":291},{"type":"inlineCode","value":"approval:read","line":291},{"type":"text","value":", and decides by its","line":291},{"type":"break","hard":false,"line":291},{"type":"text","value":"own route: decision 0007).","line":292}],"line":290}],"line":286},{"type":"code","value":"const DATA_SHAPES: readonly [\"rows\", \"summary\", \"record\", \"approvals\"]","lang":"ts","line":294},{"type":"heading","depth":3,"id":"event_gives","children":[{"type":"text","value":"EVENT_GIVES","line":298}],"line":298},{"type":"paragraph","children":[{"type":"text","value":"What an event gives the page when it is raised:","line":300}],"line":300},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"record","line":301},{"type":"text","value":": a row, by its id (a table's row clicked);","line":301}],"line":301},{"type":"listItem","children":[{"type":"inlineCode","value":"group","line":302},{"type":"text","value":": the values of a group's breakdown (a bar or a point clicked);","line":302}],"line":302},{"type":"listItem","children":[{"type":"inlineCode","value":"nothing","line":303},{"type":"text","value":".","line":303}],"line":303}],"line":301},{"type":"code","value":"const EVENT_GIVES: readonly [\"record\", \"group\", \"nothing\"]","lang":"ts","line":305},{"type":"heading","depth":3,"id":"format_schema","children":[{"type":"text","value":"FORMAT_SCHEMA","line":309}],"line":309},{"type":"paragraph","children":[{"type":"text","value":"The JSON Schema of a ","line":311},{"type":"inlineCode","value":"format","line":311},{"type":"text","value":" setting. A pack spreads it into its config with an ","line":311},{"type":"inlineCode","value":"x-volvel","line":311},{"type":"text","value":" hint.","line":311}],"line":311},{"type":"code","value":"const FORMAT_SCHEMA: {\n readonly type: \"object\";\n readonly properties: {\n readonly style: {\n readonly enum: readonly [\"number\", \"currency\", \"percent\"];\n };\n readonly currency: {\n readonly type: \"string\";\n readonly pattern: \"^[A-Z]{3}$\";\n };\n readonly minorUnits: {\n readonly type: \"boolean\";\n };\n readonly decimals: {\n readonly type: \"integer\";\n readonly minimum: 0;\n readonly maximum: 6;\n };\n readonly notation: {\n readonly enum: readonly [\"compact\"];\n };\n readonly grouping: {\n readonly const: false;\n };\n };\n readonly required: readonly [\"style\"];\n readonly additionalProperties: false;\n}","lang":"ts","line":313},{"type":"heading","depth":3,"id":"formatofcolumn","children":[{"type":"text","value":"formatOfColumn","line":344}],"line":344},{"type":"paragraph","children":[{"type":"text","value":"The format a column is drawn in: the widget's own, else what its table says it holds.","line":346}],"line":346},{"type":"code","value":"const formatOfColumn: (own: ValueFormat | undefined, column: MoneyColumn | undefined) => ValueFormat | undefined","lang":"ts","line":348},{"type":"heading","depth":3,"id":"measure_functions","children":[{"type":"text","value":"MEASURE_FUNCTIONS","line":352}],"line":352},{"type":"paragraph","children":[{"type":"text","value":"What the inspector writes as a measure, a breakdown and a condition. The manifest checks them.","line":354}],"line":354},{"type":"code","value":"const MEASURE_FUNCTIONS: readonly [\"count\", \"count_distinct\", \"sum\", \"avg\", \"min\", \"max\"]","lang":"ts","line":356},{"type":"heading","depth":3,"id":"measure_words","children":[{"type":"text","value":"MEASURE_WORDS","line":360}],"line":360},{"type":"paragraph","children":[{"type":"text","value":"What a measure is called in a sentence: \"Sum of Total\".","line":362}],"line":362},{"type":"code","value":"const MEASURE_WORDS: Record<(typeof MEASURE_FUNCTIONS)[number], string>","lang":"ts","line":364},{"type":"heading","depth":3,"id":"phone_behaviours","children":[{"type":"text","value":"PHONE_BEHAVIOURS","line":368}],"line":368},{"type":"paragraph","children":[{"type":"text","value":"What a widget does on a narrow screen when nobody has said:","line":370}],"line":370},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"stack","line":371},{"type":"text","value":": full width, in reading order;","line":371}],"line":371},{"type":"listItem","children":[{"type":"inlineCode","value":"list","line":372},{"type":"text","value":": as ","line":372},{"type":"inlineCode","value":"stack","line":372},{"type":"text","value":", drawn by its view as a list (a table as rows of cards);","line":372}],"line":372},{"type":"listItem","children":[{"type":"inlineCode","value":"hide","line":373},{"type":"text","value":": not shown on phones.","line":373}],"line":373}],"line":371},{"type":"code","value":"const PHONE_BEHAVIOURS: readonly [\"stack\", \"list\", \"hide\"]","lang":"ts","line":375},{"type":"heading","depth":3,"id":"source_kinds","children":[{"type":"text","value":"SOURCE_KINDS","line":379}],"line":379},{"type":"paragraph","children":[{"type":"text","value":"Where a data input may come from. SQL is never offered on an app's page.","line":381}],"line":381},{"type":"code","value":"const SOURCE_KINDS: readonly [\"table\", \"query\", \"sql\", \"approvals\"]","lang":"ts","line":383},{"type":"heading","depth":3,"id":"surfaces","children":[{"type":"text","value":"SURFACES","line":387}],"line":387},{"type":"paragraph","children":[{"type":"text","value":"Where a widget is offered. A dashboard only reads.","line":389}],"line":389},{"type":"code","value":"const SURFACES: readonly [\"app\", \"dashboard\"]","lang":"ts","line":391},{"type":"heading","depth":3,"id":"tab_titles","children":[{"type":"text","value":"TAB_TITLES","line":395}],"line":395},{"type":"paragraph","children":[{"type":"text","value":"What the inspector calls each tab.","line":397}],"line":397},{"type":"code","value":"const TAB_TITLES: Record<Tab, string>","lang":"ts","line":399},{"type":"heading","depth":3,"id":"tabs","children":[{"type":"text","value":"TABS","line":403}],"line":403},{"type":"paragraph","children":[{"type":"text","value":"The inspector's tabs, in order.","line":405}],"line":405},{"type":"code","value":"const TABS: readonly [\"data\", \"display\", \"actions\", \"rules\"]","lang":"ts","line":407},{"type":"heading","depth":3,"id":"tenant_pack","children":[{"type":"text","value":"TENANT_PACK","line":411}],"line":411},{"type":"paragraph","children":[{"type":"text","value":"The pack every developer's widget is in, in the tenant's own namespace: ","line":413},{"type":"inlineCode","value":"x/<name>","line":413},{"type":"text","value":". ","line":413},{"type":"inlineCode","value":"core","line":413},{"type":"text","value":" and ","line":413},{"type":"inlineCode","value":"labs","line":413},{"type":"text","value":" are Volvel's.","line":413}],"line":413},{"type":"code","value":"const TENANT_PACK = \"x\"","lang":"ts","line":415},{"type":"heading","depth":3,"id":"widget_roles","children":[{"type":"text","value":"WIDGET_ROLES","line":419}],"line":419},{"type":"paragraph","children":[{"type":"text","value":"What the platform gives a widget beyond its data: to hold other widgets, or to set the page's filters.","line":421}],"line":421},{"type":"code","value":"const WIDGET_ROLES: readonly [\"container\", \"filters\"]","lang":"ts","line":423},{"type":"heading","depth":2,"id":"interfaces","children":[{"type":"text","value":"Interfaces","line":427}],"line":427},{"type":"heading","depth":3,"id":"approvalitem","children":[{"type":"text","value":"ApprovalItem","line":429}],"line":429},{"type":"paragraph","children":[{"type":"text","value":"One step waiting for a decision, or decided. The fields are the step's detail as the server","line":431},{"type":"break","hard":false,"line":431},{"type":"text","value":"redacted and limited it; ","line":432},{"type":"inlineCode","value":"mayDecide","line":432},{"type":"text","value":" is the server's answer for this viewer, and the buttons","line":432},{"type":"break","hard":false,"line":432},{"type":"text","value":"are drawn from it, but the server decides again.","line":433}],"line":431},{"type":"code","value":"interface ApprovalItem","lang":"ts","line":435},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":439}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":439}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":439}]}],"line":439},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"id","line":441}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":441}]},{"type":"tableCell","children":[{"type":"text","value":"Names the step to ","line":441},{"type":"inlineCode","value":"decide","line":441},{"type":"text","value":": the flow run and the step. Nothing to read into.","line":441}]}],"line":441},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title","line":442}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":442}]},{"type":"tableCell","children":[]}],"line":442},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"flow","line":443}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ path: string; title: string; }","line":443}]},{"type":"tableCell","children":[]}],"line":443},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"fields","line":444}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { name: string; label: string; value: unknown; }[]","line":444}]},{"type":"tableCell","children":[]}],"line":444},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"waitingSince","line":445}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":445}]},{"type":"tableCell","children":[{"type":"text","value":"An ISO time.","line":445}]}],"line":445},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"timesOutAt","line":446}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":446}]},{"type":"tableCell","children":[]}],"line":446},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"mayDecide","line":447}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":447}]},{"type":"tableCell","children":[]}],"line":447},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"approvers","line":448}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":448}]},{"type":"tableCell","children":[{"type":"text","value":"Who may decide, in words (\"the practice-managers group\"), or null when anyone holding the permission may.","line":448}]}],"line":448},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decision?","line":449}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ approved: boolean; by: string; at: string | null; comment: string | null; via: \"app\" | \"console\" | \"email\"; }","line":449}]},{"type":"tableCell","children":[{"type":"text","value":"Set on a decided one. ","line":449},{"type":"inlineCode","value":"via","line":449},{"type":"text","value":" is where: the app, the console, or a link in the mail.","line":449}]}],"line":449}],"line":439},{"type":"heading","depth":3,"id":"approvalsdata","children":[{"type":"text","value":"ApprovalsData","line":451}],"line":451},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads approvals is given: the steps of the workspace's flows that wait for a decision.","line":453}],"line":453},{"type":"code","value":"interface ApprovalsData","lang":"ts","line":455},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":459}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":459}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":459}]}],"line":459},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":461}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"approvals\"","line":461}]},{"type":"tableCell","children":[]}],"line":461},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decideIn?","line":462}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ console: string; name: string; }","line":462}]},{"type":"tableCell","children":[{"type":"text","value":"Set when the requests are decided in the console and not here: where, and what it is called.","line":462}]}],"line":462},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"waiting","line":463}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ApprovalItem[]","line":463}]},{"type":"tableCell","children":[]}],"line":463},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decided","line":464}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ApprovalItem[]","line":464}]},{"type":"tableCell","children":[]}],"line":464},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"more","line":465}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":465}]},{"type":"tableCell","children":[{"type":"text","value":"There are more waiting than were sent.","line":465}]}],"line":465}],"line":459},{"type":"heading","depth":3,"id":"cellsize","children":[{"type":"text","value":"CellSize","line":467}],"line":467},{"type":"paragraph","children":[{"type":"text","value":"Sizes in the page's grid: twelve columns, rows of 40 pixels.","line":469}],"line":469},{"type":"code","value":"interface CellSize","lang":"ts","line":471},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":475}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":475}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":475}]}],"line":475},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"w","line":477}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":477}]},{"type":"tableCell","children":[]}],"line":477},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"h","line":478}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":478}]},{"type":"tableCell","children":[]}],"line":478}],"line":475},{"type":"heading","depth":3,"id":"choice","children":[{"type":"text","value":"Choice","line":480}],"line":480},{"type":"paragraph","children":[{"type":"text","value":"A value a reference or choice column offers.","line":482}],"line":482},{"type":"code","value":"interface Choice","lang":"ts","line":484},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":488}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":488}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":488}]}],"line":488},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"value","line":490}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":490}]},{"type":"tableCell","children":[]}],"line":490},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":491}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":491}]},{"type":"tableCell","children":[]}],"line":491}],"line":488},{"type":"heading","depth":3,"id":"columninfo","children":[{"type":"text","value":"ColumnInfo","line":493}],"line":493},{"type":"paragraph","children":[{"type":"text","value":"A column of what was read, as the view should draw it.","line":495}],"line":495},{"type":"code","value":"interface ColumnInfo","lang":"ts","line":497},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":501}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":501}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":501}]}],"line":501},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"name","line":503}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":503}]},{"type":"tableCell","children":[]}],"line":503},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":504}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":504}]},{"type":"tableCell","children":[{"type":"text","value":"What it is called, in the reader's words.","line":504}]}],"line":504},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":505}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":505}]},{"type":"tableCell","children":[{"type":"text","value":"The column's type: text, integer, number, boolean, date, timestamp, enum, reference, json, uuid.","line":505}]}],"line":505},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description?","line":506}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":506}]},{"type":"tableCell","children":[{"type":"text","value":"What the column holds, as its table's definition says: the help behind its heading.","line":506}]}],"line":506},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values?","line":507}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { value: string; label?: string; color?: string; }[]","line":507}]},{"type":"tableCell","children":[{"type":"text","value":"For an enum: its values, and the color each is drawn in.","line":507}]}],"line":507},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":508}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":508}]},{"type":"tableCell","children":[{"type":"text","value":"Whether a row must have a value here, as its table's definition says. Left out for what is not a column of a table.","line":508}]}],"line":508},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"default?","line":509}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"unknown","line":509}]},{"type":"tableCell","children":[{"type":"text","value":"What a new row gets when it gives none, as its table's definition says.","line":509}]}],"line":509},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"references?","line":510}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":510}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the table it points to, by its path.","line":510}]}],"line":510}],"line":501},{"type":"heading","depth":3,"id":"configschema","children":[{"type":"text","value":"ConfigSchema","line":512}],"line":512},{"type":"paragraph","children":[{"type":"text","value":"A JSON Schema object for a widget's configuration, with an ","line":514},{"type":"inlineCode","value":"x-volvel","line":514},{"type":"text","value":" hint on each property.","line":514}],"line":514},{"type":"code","value":"interface ConfigSchema","lang":"ts","line":516},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":520}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":520}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":520}]}],"line":520},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":522}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"object\"","line":522}]},{"type":"tableCell","children":[]}],"line":522},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"properties","line":523}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, Record<string, unknown> & { \"x-volvel\"?: InspectorHint; }>","line":523}]},{"type":"tableCell","children":[]}],"line":523},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":524}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":524}]},{"type":"tableCell","children":[]}],"line":524},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"additionalProperties?","line":525}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":525}]},{"type":"tableCell","children":[]}],"line":525}],"line":520},{"type":"heading","depth":3,"id":"datahints","children":[{"type":"text","value":"DataHints","line":527}],"line":527},{"type":"paragraph","children":[{"type":"text","value":"A data input's controls, drawn in the Data tab in this order.","line":529}],"line":529},{"type":"code","value":"interface DataHints","lang":"ts","line":531},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":535}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":535}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":535}]}],"line":535},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"of","line":537}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":537}]},{"type":"tableCell","children":[]}],"line":537},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"controls","line":538}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { control: Extract<Control, \"source\" | \"measure\" | \"breakdown\" | \"conditions\" | \"sort\" | \"limit\">; level?: \"main\" | \"more\"; label: string; help?: string; }[]","line":538}]},{"type":"tableCell","children":[]}],"line":538}],"line":535},{"type":"heading","depth":3,"id":"datainputdeclaration","children":[{"type":"text","value":"DataInputDeclaration","line":540}],"line":540},{"type":"paragraph","children":[{"type":"text","value":"One thing a widget reads: its shape, what it is called, whether it is needed and where it may come from.","line":542}],"line":542},{"type":"code","value":"interface DataInputDeclaration","lang":"ts","line":544},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":548}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":548}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":548}]}],"line":548},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":550}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DataShape","line":550}]},{"type":"tableCell","children":[]}],"line":550},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label?","line":551}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":551}]},{"type":"tableCell","children":[{"type":"text","value":"What the inspector calls it when a widget has more than one. Left out: \"Source\".","line":551}]}],"line":551},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":552}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":552}]},{"type":"tableCell","children":[{"type":"text","value":"A widget can't draw without it. Default true.","line":552}]}],"line":552},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sources?","line":553}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly SourceKind[]","line":553}]},{"type":"tableCell","children":[{"type":"text","value":"Where it may come from. Default: table and query, and SQL on a dashboard.","line":553}]}],"line":553},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values?","line":554}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ min: number; max: number; }","line":554}]},{"type":"tableCell","children":[{"type":"text","value":"For a summary: how many values it may work out. Default 1 to 1.","line":554}]}],"line":554},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"breakdowns?","line":555}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ min: number; max: number; }","line":555}]},{"type":"tableCell","children":[{"type":"text","value":"For a summary: how many ways it may be broken down. Default 0 to 1.","line":555}]}],"line":555}],"line":548},{"type":"heading","depth":3,"id":"deployedwidget","children":[{"type":"text","value":"DeployedWidget","line":557}],"line":557},{"type":"paragraph","children":[{"type":"text","value":"A tenant's widget as a workspace has it deployed: the versions kept (a page names the one","line":559},{"type":"break","hard":false,"line":559},{"type":"text","value":"it was built with), and which of them is the newest.","line":560}],"line":559},{"type":"code","value":"interface DeployedWidget","lang":"ts","line":562},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":566}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":566}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":566}]}],"line":566},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":568}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":568}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"x/<name>","line":568},{"type":"text","value":".","line":568}]}],"line":568},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"current","line":569}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":569}]},{"type":"tableCell","children":[{"type":"text","value":"The version the repository defines now: what \"Add to page\" places and \"Update\" moves to. Null once the widget is removed, while pages still place a version of it.","line":569}]}],"line":569},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"versions","line":570}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DeployedWidgetVersion[]","line":570}]},{"type":"tableCell","children":[{"type":"text","value":"Every deployed version, with the definition each had.","line":570}]}],"line":570}],"line":566},{"type":"heading","depth":3,"id":"deployedwidgetversion","children":[{"type":"text","value":"DeployedWidgetVersion","line":572}],"line":572},{"type":"paragraph","children":[{"type":"text","value":"One deployed version of a tenant's widget, as ","line":574},{"type":"inlineCode","value":"GET .../widgets","line":574},{"type":"text","value":" lists it.","line":574}],"line":574},{"type":"code","value":"interface DeployedWidgetVersion","lang":"ts","line":576},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":580}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":580}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":580}]}],"line":580},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version","line":582}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":582}]},{"type":"tableCell","children":[]}],"line":582},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"definition","line":583}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetDefinition","line":583}]},{"type":"tableCell","children":[]}],"line":583},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"current?","line":584}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":584}]},{"type":"tableCell","children":[{"type":"text","value":"Whether it is the version the repository defines now.","line":584}]}],"line":584},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"deployedAt?","line":585}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":585}]},{"type":"tableCell","children":[]}],"line":585},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"placements?","line":586}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":586}]},{"type":"tableCell","children":[{"type":"text","value":"How many widgets on pages place this version.","line":586}]}],"line":586}],"line":580},{"type":"heading","depth":3,"id":"eventdeclaration","children":[{"type":"text","value":"EventDeclaration","line":588}],"line":588},{"type":"paragraph","children":[{"type":"text","value":"One thing that can happen to a widget, such as a click, that an action may be attached to.","line":590}],"line":590},{"type":"code","value":"interface EventDeclaration","lang":"ts","line":592},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":596}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":596}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":596}]}],"line":596},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"gives","line":598}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"EventGives","line":598}]},{"type":"tableCell","children":[]}],"line":598},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":599}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":599}]},{"type":"tableCell","children":[{"type":"text","value":"Said in the Actions tab: \"When a row is clicked\".","line":599}]}],"line":599},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"payload?","line":600}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":600}]},{"type":"tableCell","children":[{"type":"text","value":"For a developer's widget: a JSON Schema for what its frame sends with the event. The host checks the payload against it and drops what does not fit. Left out: the shape ","line":600},{"type":"inlineCode","value":"gives","line":600},{"type":"text","value":" names.","line":600}]}],"line":600}],"line":596},{"type":"heading","depth":3,"id":"filterhost","children":[{"type":"text","value":"FilterHost","line":602}],"line":602},{"type":"paragraph","children":[{"type":"text","value":"What a filter widget is given: the page's values of its filters, and a way to change them.","line":604}],"line":604},{"type":"code","value":"interface FilterHost","lang":"ts","line":606},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":610}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":610}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":610}]}],"line":610},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values","line":612}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":612}]},{"type":"tableCell","children":[{"type":"text","value":"The value of each filter, by name, as the reader set it or as it starts.","line":612}]}],"line":612},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"set","line":613}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(name: string, value: unknown) => void","line":613}]},{"type":"tableCell","children":[{"type":"text","value":"Sets one filter. Every widget it narrows is read again. ","line":613},{"type":"inlineCode","value":"undefined","line":613},{"type":"text","value":" puts it back to how it starts.","line":613}]}],"line":613},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"reset","line":614}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":614}]},{"type":"tableCell","children":[{"type":"text","value":"Puts every filter of this widget back to how it starts.","line":614}]}],"line":614},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"options?","line":615}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(name: string, search: string) => Promise<readonly Choice[]>","line":615}]},{"type":"tableCell","children":[{"type":"text","value":"What a choice filter offers when it names the column its values come from, read for whoever is looking.","line":615}]}],"line":615}],"line":610},{"type":"heading","depth":3,"id":"inspectorhint","children":[{"type":"text","value":"InspectorHint","line":617}],"line":617},{"type":"paragraph","children":[{"type":"text","value":"How the inspector draws one setting. Kept on a config property as ","line":619},{"type":"inlineCode","value":"x-volvel","line":619},{"type":"text","value":".","line":619}],"line":619},{"type":"code","value":"interface InspectorHint","lang":"ts","line":621},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":625}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":625}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":625}]}],"line":625},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"tab","line":627}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Tab","line":627}]},{"type":"tableCell","children":[]}],"line":627},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"group?","line":628}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":628}]},{"type":"tableCell","children":[{"type":"text","value":"The group of rows it is drawn in, in its tab (board 8: \"Rows it uses\", \"What it shows\", \"Look\", \"Compare\"). Rows of a group are drawn together, under its name, in ","line":628},{"type":"inlineCode","value":"order","line":628},{"type":"text","value":".","line":628}]}],"line":628},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"level?","line":629}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"main\" | \"more\"","line":629}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"main","line":629},{"type":"text","value":" is shown at once; ","line":629},{"type":"inlineCode","value":"more","line":629},{"type":"text","value":" under \"More … options\", one level and no deeper.","line":629}]}],"line":629},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"control","line":630}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Control","line":630}]},{"type":"tableCell","children":[]}],"line":630},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":631}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":631}]},{"type":"tableCell","children":[]}],"line":631},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"help?","line":632}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":632}]},{"type":"tableCell","children":[]}],"line":632},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"of?","line":633}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":633}]},{"type":"tableCell","children":[{"type":"text","value":"For a column or a data control: which data input it belongs to.","line":633}]}],"line":633},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"types?","line":634}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":634}]},{"type":"tableCell","children":[{"type":"text","value":"For a column: only columns of these types are offered.","line":634}]}],"line":634},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"choices?","line":635}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, string>","line":635}]},{"type":"tableCell","children":[{"type":"text","value":"For ","line":635},{"type":"inlineCode","value":"choice","line":635},{"type":"text","value":" and ","line":635},{"type":"inlineCode","value":"segmented","line":635},{"type":"text","value":": what each value is called.","line":635}]}],"line":635},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"when?","line":636}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, unknown>","line":636}]},{"type":"tableCell","children":[{"type":"text","value":"Only shown when other properties of config have these values. Equality; a list is any of its values, and ","line":636},{"type":"inlineCode","value":"null","line":636},{"type":"text","value":" in it is the property left unset.","line":636}]}],"line":636},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"order?","line":637}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":637}]},{"type":"tableCell","children":[{"type":"text","value":"Where it is in its tab, lower first.","line":637}]}],"line":637}],"line":625},{"type":"heading","depth":3,"id":"layoutdeclaration","children":[{"type":"text","value":"LayoutDeclaration","line":639}],"line":639},{"type":"paragraph","children":[{"type":"text","value":"A widget's size in the page's grid, and what it does on a phone.","line":641}],"line":641},{"type":"code","value":"interface LayoutDeclaration","lang":"ts","line":643},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":647}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":647}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":647}]}],"line":647},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"min","line":649}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":649}]},{"type":"tableCell","children":[]}],"line":649},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"default","line":650}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":650}]},{"type":"tableCell","children":[]}],"line":650},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"max?","line":651}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":651}]},{"type":"tableCell","children":[]}],"line":651},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"phone?","line":652}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"PhoneBehaviour","line":652}]},{"type":"tableCell","children":[]}],"line":652},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"frame?","line":653}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"card\" | \"none\"","line":653}]},{"type":"tableCell","children":[{"type":"text","value":"How the page frames it: ","line":653},{"type":"inlineCode","value":"card","line":653},{"type":"text","value":" (the default) draws it on a card with its title; ","line":653},{"type":"inlineCode","value":"none","line":653},{"type":"text","value":" draws it on the page as it is, as a button stands (its title only while it is renamed).","line":653}]}],"line":653}],"line":647},{"type":"heading","depth":3,"id":"moneycolumn","children":[{"type":"text","value":"MoneyColumn","line":655}],"line":655},{"type":"paragraph","children":[{"type":"text","value":"What a column says of itself: enough to know whether it holds money.","line":657}],"line":657},{"type":"code","value":"interface MoneyColumn","lang":"ts","line":659},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":663}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":663}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":663}]}],"line":663},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type?","line":665}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":665}]},{"type":"tableCell","children":[]}],"line":665},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description?","line":666}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":666}]},{"type":"tableCell","children":[]}],"line":666}],"line":663},{"type":"heading","depth":3,"id":"moneyoptions","children":[{"type":"text","value":"MoneyOptions","line":668}],"line":668},{"type":"paragraph","children":[{"type":"text","value":"How an amount is read: whether it is kept in cents, the currency its problems are worded in, and the reader's locale.","line":670}],"line":670},{"type":"code","value":"interface MoneyOptions","lang":"ts","line":672},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":676}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":676}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":676}]}],"line":676},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"minorUnits?","line":678}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean | undefined","line":678}]},{"type":"tableCell","children":[{"type":"text","value":"The column keeps cents (the default for money): 12345 is 123.45. ","line":678},{"type":"inlineCode","value":"false","line":678},{"type":"text","value":": whole units.","line":678}]}],"line":678},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"currency?","line":679}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":679}]},{"type":"tableCell","children":[{"type":"text","value":"An ISO 4217 code, for the words of a problem.","line":679}]}],"line":679},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"locale?","line":680}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":680}]},{"type":"tableCell","children":[{"type":"text","value":"The person's locale; the browser's when left out.","line":680}]}],"line":680}],"line":676},{"type":"heading","depth":3,"id":"recorddata","children":[{"type":"text","value":"RecordData","line":682}],"line":682},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads one record is given: its columns and its values.","line":684}],"line":684},{"type":"code","value":"interface RecordData","lang":"ts","line":686},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":690}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":690}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":690}]}],"line":690},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":692}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"record\"","line":692}]},{"type":"tableCell","children":[]}],"line":692},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":693}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":693}]},{"type":"tableCell","children":[]}],"line":693},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"record","line":694}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>> | null","line":694}]},{"type":"tableCell","children":[]}],"line":694},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"names?","line":695}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, Readonly<Record<string, string>>>>","line":695}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the name of the row each id points to.","line":695}]}],"line":695}],"line":690},{"type":"heading","depth":3,"id":"rowsdata","children":[{"type":"text","value":"RowsData","line":697}],"line":697},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads rows is given: the columns and a page of rows, and a way to ask for the next.","line":699}],"line":699},{"type":"code","value":"interface RowsData","lang":"ts","line":701},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":705}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":705}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":705}]}],"line":705},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":707}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"rows\"","line":707}]},{"type":"tableCell","children":[]}],"line":707},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":708}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":708}]},{"type":"tableCell","children":[]}],"line":708},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"rows","line":709}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":709}]},{"type":"tableCell","children":[]}],"line":709},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"more?","line":710}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":710}]},{"type":"tableCell","children":[{"type":"text","value":"Asks for the next page, when there is one.","line":710}]}],"line":710},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"total?","line":711}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":711}]},{"type":"tableCell","children":[{"type":"text","value":"With a next page: how many rows there are in all, as the filters leave them.","line":711}]}],"line":711},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"groups?","line":712}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { key: unknown; count: number; }[]","line":712}]},{"type":"tableCell","children":[{"type":"text","value":"For rows grouped by a column, with a next page: how many rows each group has in all, by what the group is.","line":712}]}],"line":712},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sortBy?","line":713}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(sort: { column: string; descending: boolean; } | undefined) => void","line":713}]},{"type":"tableCell","children":[{"type":"text","value":"A table's rows in the order of one column, read from the server over all its rows, not the page's. Left out when every row is here already and the view may sort them itself.","line":713}]}],"line":713},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sorted?","line":714}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ column: string; descending: boolean; }","line":714}]},{"type":"tableCell","children":[{"type":"text","value":"The order the rows were read in, when ","line":714},{"type":"inlineCode","value":"sortBy","line":714},{"type":"text","value":" set one.","line":714}]}],"line":714},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"names?","line":715}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, Readonly<Record<string, string>>>>","line":715}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the name of the row each id points to.","line":715}]}],"line":715}],"line":705},{"type":"heading","depth":3,"id":"summarydata","children":[{"type":"text","value":"SummaryData","line":717}],"line":717},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads a summary is given: rows gathered into groups with the values worked out for each.","line":719}],"line":719},{"type":"code","value":"interface SummaryData","lang":"ts","line":721},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":725}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":725}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":725}]}],"line":725},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":727}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"summary\"","line":727}]},{"type":"tableCell","children":[]}],"line":727},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":728}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":728}]},{"type":"tableCell","children":[{"type":"text","value":"The breakdowns' columns, then the values', as the view should draw them.","line":728}]}],"line":728},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"breakdowns","line":729}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":729}]},{"type":"tableCell","children":[{"type":"text","value":"The names of the columns that are breakdowns, in order.","line":729}]}],"line":729},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values","line":730}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":730}]},{"type":"tableCell","children":[{"type":"text","value":"The names of the columns that are values, in order.","line":730}]}],"line":730},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"rows","line":731}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":731}]},{"type":"tableCell","children":[]}],"line":731},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"previous?","line":732}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":732}]},{"type":"tableCell","children":[{"type":"text","value":"For a widget that compares: the same values for the period before.","line":732}]}],"line":732},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"measures?","line":733}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, \"count\" | \"sum\" | \"avg\" | \"min\" | \"max\" | \"count_distinct\" | undefined>>","line":733}]},{"type":"tableCell","children":[{"type":"text","value":"The function each value is, by the value's name, when the query is a visual one: what a total of it can be made of.","line":733}]}],"line":733},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"buckets?","line":734}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, \"day\" | \"week\" | \"month\" | \"quarter\" | \"year\">>","line":734}]},{"type":"tableCell","children":[{"type":"text","value":"The period each date breakdown is cut into, by the breakdown's name: what \"include periods with nothing\" steps by.","line":734}]}],"line":734},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"span?","line":735}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ from: string; to: string; }","line":735}]},{"type":"tableCell","children":[{"type":"text","value":"The days the page's date filter gives the first date breakdown, both ends: where a filled chart begins and ends.","line":735}]}],"line":735},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"trend?","line":736}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { at: string; value: number; }[]","line":736}]},{"type":"tableCell","children":[{"type":"text","value":"For a figure with a trend: its first value over the time it covers, oldest first. ","line":736},{"type":"inlineCode","value":"at","line":736},{"type":"text","value":" is a day.","line":736}]}],"line":736}],"line":725},{"type":"heading","depth":3,"id":"valueformat","children":[{"type":"text","value":"ValueFormat","line":738}],"line":738},{"type":"paragraph","children":[{"type":"text","value":"How a number is written. Money kept in cents is shown with ","line":740},{"type":"inlineCode","value":"minorUnits","line":740},{"type":"text","value":".","line":740}],"line":740},{"type":"code","value":"interface ValueFormat","lang":"ts","line":742},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":746}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":746}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":746}]}],"line":746},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"style","line":748}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"number\" | \"currency\" | \"percent\"","line":748}]},{"type":"tableCell","children":[]}],"line":748},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"currency?","line":749}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":749}]},{"type":"tableCell","children":[{"type":"text","value":"ISO 4217, for ","line":749},{"type":"inlineCode","value":"currency","line":749},{"type":"text","value":". Default ","line":749},{"type":"inlineCode","value":"USD","line":749},{"type":"text","value":".","line":749}]}],"line":749},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"minorUnits?","line":750}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":750}]},{"type":"tableCell","children":[]}],"line":750},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decimals?","line":751}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":751}]},{"type":"tableCell","children":[]}],"line":751},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"notation?","line":752}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"compact\"","line":752}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"compact","line":752},{"type":"text","value":" writes 43,120 as 43.1K.","line":752}]}],"line":752},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"grouping?","line":753}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":753}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":753},{"type":"text","value":" writes 43120, not 43,120 (the picker's \"Plain\").","line":753}]}],"line":753}],"line":746},{"type":"heading","depth":3,"id":"viewsize","children":[{"type":"text","value":"ViewSize","line":755}],"line":755},{"type":"paragraph","children":[{"type":"text","value":"A view is drawn inside a CSS container named ","line":757},{"type":"inlineCode","value":"cell","line":757},{"type":"text","value":", the widget's own box, so it","line":757},{"type":"break","hard":false,"line":757},{"type":"text","value":"can size what it draws by the room it has (","line":758},{"type":"inlineCode","value":"@[14rem]/cell:…","line":758},{"type":"text","value":") rather than by the","line":758},{"type":"break","hard":false,"line":758},{"type":"text","value":"window's width or a count of columns.","line":759}],"line":757},{"type":"code","value":"interface ViewSize","lang":"ts","line":761},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":765}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":765}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":765}]}],"line":765},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"w","line":767}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":767}]},{"type":"tableCell","children":[{"type":"text","value":"In cells.","line":767}]}],"line":767},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"h","line":768}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":768}]},{"type":"tableCell","children":[]}],"line":768},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"narrow","line":769}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":769}]},{"type":"tableCell","children":[{"type":"text","value":"The page is a phone's width or so: one column.","line":769}]}],"line":769}],"line":765},{"type":"heading","depth":3,"id":"widgetdefinition","children":[{"type":"text","value":"WidgetDefinition","line":771}],"line":771},{"type":"paragraph","children":[{"type":"text","value":"What a widget declares: its type and words, what it reads, its settings, its events and its size. The editor, the checks and the documentation are all drawn from it.","line":773}],"line":773},{"type":"code","value":"interface WidgetDefinition","lang":"ts","line":775},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":779}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":779}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":779}]}],"line":779},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":781}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":781}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"pack/name","line":781},{"type":"text","value":": ","line":781},{"type":"inlineCode","value":"core/chart","line":781},{"type":"text","value":". The pack ","line":781},{"type":"inlineCode","value":"core","line":781},{"type":"text","value":" is the platform's, and ","line":781},{"type":"inlineCode","value":"labs","line":781},{"type":"text","value":" its trials.","line":781}]}],"line":781},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version","line":782}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":782}]},{"type":"tableCell","children":[{"type":"text","value":"Semver. A page names a type; a deploy pins the version it was checked against.","line":782}]}],"line":782},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title","line":783}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":783}]},{"type":"tableCell","children":[]}],"line":783},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description","line":784}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":784}]},{"type":"tableCell","children":[{"type":"text","value":"One line, said in \"Add to page\": \"A trend or a comparison\".","line":784}]}],"line":784},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"category","line":785}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Category","line":785}]},{"type":"tableCell","children":[]}],"line":785},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"icon","line":786}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":786}]},{"type":"tableCell","children":[{"type":"text","value":"The name of an icon from the kit's set: the names of the platform's widgets, the page icons (","line":786},{"type":"inlineCode","value":"PAGE_ICONS","line":786},{"type":"text","value":" in ","line":786},{"type":"inlineCode","value":"@volvel/ui","line":786},{"type":"text","value":") and ","line":786},{"type":"inlineCode","value":"globe","line":786},{"type":"text","value":", ","line":786},{"type":"inlineCode","value":"radio","line":786},{"type":"text","value":" and ","line":786},{"type":"inlineCode","value":"table-2","line":786},{"type":"text","value":". The builder draws any other name as a puzzle piece.","line":786}]}],"line":786},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"surfaces","line":787}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Surface[]","line":787}]},{"type":"tableCell","children":[]}],"line":787},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"data","line":788}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, DataInputDeclaration>>","line":788}]},{"type":"tableCell","children":[]}],"line":788},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"dataHints?","line":789}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly DataHints[]","line":789}]},{"type":"tableCell","children":[{"type":"text","value":"The Data tab's controls for each input, in order.","line":789}]}],"line":789},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"config","line":790}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"ConfigSchema","line":790}]},{"type":"tableCell","children":[]}],"line":790},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"words?","line":791}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, string>>","line":791}]},{"type":"tableCell","children":[{"type":"text","value":"What each setting is, by its path in ","line":791},{"type":"inlineCode","value":"config","line":791},{"type":"text","value":" (","line":791},{"type":"inlineCode","value":"columns.*.label","line":791},{"type":"text","value":", with ","line":791},{"type":"inlineCode","value":"*","line":791},{"type":"text","value":" for a place in a list or under any name), where the schema does not say. The documentation draws its page for the widget from this and from the hints, so a setting with neither is a gap there.","line":791}]}],"line":791},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"defaults?","line":792}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":792}]},{"type":"tableCell","children":[{"type":"text","value":"What the widget is when it is added, before anyone changes it.","line":792}]}],"line":792},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"initialData?","line":793}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, { source: unknown; }>>","line":793}]},{"type":"tableCell","children":[{"type":"text","value":"The data inputs it is added with, by name, as a page stores them (","line":793},{"type":"inlineCode","value":"{ source: … }","line":793},{"type":"text","value":"), for a widget whose source needs no choosing: Approvals reads the workspace's approvals.","line":793}]}],"line":793},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"events","line":794}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, EventDeclaration>>","line":794}]},{"type":"tableCell","children":[]}],"line":794},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"layout","line":795}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"LayoutDeclaration","line":795}]},{"type":"tableCell","children":[]}],"line":795},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"role?","line":796}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetRole","line":796}]},{"type":"tableCell","children":[{"type":"text","value":"What the platform gives it beyond its data (the ","line":796},{"type":"inlineCode","value":"core","line":796},{"type":"text","value":" pack only): - ","line":796},{"type":"inlineCode","value":"container","line":796},{"type":"text","value":": other widgets of the page are placed in it, on its own grid of twelve columns, one level deep. A container with a ","line":796},{"type":"inlineCode","value":"tabs","line":796},{"type":"text","value":" config holds them by tab. - ","line":796},{"type":"inlineCode","value":"filters","line":796},{"type":"text","value":": its ","line":796},{"type":"inlineCode","value":"config.filters","line":796},{"type":"text","value":" are filters whoever reads the page sets; the page's widgets are narrowed by them. Its view is given ","line":796},{"type":"inlineCode","value":"filters","line":796},{"type":"text","value":".","line":796}]}],"line":796}],"line":779},{"type":"heading","depth":3,"id":"widgetpack","children":[{"type":"text","value":"WidgetPack","line":798}],"line":798},{"type":"paragraph","children":[{"type":"text","value":"A pack as a page renderer takes it: its definitions, and a view for each.","line":800},{"type":"break","hard":false,"line":800},{"type":"inlineCode","value":"View","line":801},{"type":"text","value":" is the renderer's component type (React's, for the platform's own).","line":801}],"line":800},{"type":"code","value":"interface WidgetPack<View = unknown>","lang":"ts","line":803},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":807}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":807}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":807}]}],"line":807},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"definitions","line":809}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly WidgetDefinition[]","line":809}]},{"type":"tableCell","children":[]}],"line":809},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"views","line":810}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, View>>","line":810}]},{"type":"tableCell","children":[]}],"line":810}],"line":807},{"type":"heading","depth":3,"id":"widgetviewprops","children":[{"type":"text","value":"WidgetViewProps","line":812}],"line":812},{"type":"paragraph","children":[{"type":"text","value":"The props of a widget's view.","line":814}],"line":814},{"type":"code","value":"interface WidgetViewProps<Config = Record<string, unknown>>","lang":"ts","line":816},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":820}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":820}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":820}]}],"line":820},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"config","line":822}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Config","line":822}]},{"type":"tableCell","children":[{"type":"text","value":"The widget's configuration, with its definition's defaults filled in.","line":822}]}],"line":822},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"data","line":823}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, WidgetData>>","line":823}]},{"type":"tableCell","children":[{"type":"text","value":"Each data input, read, by name. An input not yet read is absent.","line":823}]}],"line":823},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"state?","line":824}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetState","line":824}]},{"type":"tableCell","children":[{"type":"text","value":"For a tenant's widget (","line":824},{"type":"inlineCode","value":"x/...","line":824},{"type":"text","value":"): what the page's read of the data is, so the view can draw its own loading, empty and failed states. Left out: ready. A platform widget is drawn by the frame around it only when ready.","line":824}]}],"line":824},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"size","line":825}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"ViewSize","line":825}]},{"type":"tableCell","children":[]}],"line":825},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"emit","line":826}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(event: string, payload: EventPayload) => void","line":826}]},{"type":"tableCell","children":[{"type":"text","value":"Raises a declared event. The host does what the page says, or nothing.","line":826}]}],"line":826},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version?","line":827}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":827}]},{"type":"tableCell","children":[{"type":"text","value":"For a tenant's widget (","line":827},{"type":"inlineCode","value":"x/...","line":827},{"type":"text","value":"): the version the page names. A platform widget has none.","line":827}]}],"line":827},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"building","line":828}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":828}]},{"type":"tableCell","children":[{"type":"text","value":"Whether the page is being built. A view may draw hints for the builder, never different data.","line":828}]}],"line":828},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"viewing?","line":829}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":829}]},{"type":"tableCell","children":[{"type":"text","value":"While building, \"View as\" a group: an action the group may run is drawn pressable (it still runs nothing here), and one it may not is grayed with the reason, as it will be served.","line":829}]}],"line":829},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title?","line":830}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":830}]},{"type":"tableCell","children":[{"type":"text","value":"The widget's title, as the page draws it over the view: what a view names its own parts by (\"Visits\", for a tab strip).","line":830}]}],"line":830},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"act?","line":831}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, given?: { record?: string; /** Several rows chosen in a table or list: the action runs on each of them. */ records?: readonly string[]; inputs?: Readonly<Record<string, unknown>>; }) => Promise<ActOutcome>","line":831}]},{"type":"tableCell","children":[{"type":"text","value":"Runs an action the widget holds, named by where it is: ","line":831},{"type":"inlineCode","value":"on/<event>","line":831},{"type":"text","value":", or a config property the definition marks ","line":831},{"type":"inlineCode","value":"action","line":831},{"type":"text","value":" (","line":831},{"type":"inlineCode","value":"config/<property>","line":831},{"type":"text","value":") or ","line":831},{"type":"inlineCode","value":"actions","line":831},{"type":"text","value":" (","line":831},{"type":"inlineCode","value":"config/<property>/<index>/action","line":831},{"type":"text","value":"). The host asks to confirm, runs it on the server, and does what follows (open a page, say something). A form gives what was typed as ","line":831},{"type":"inlineCode","value":"inputs","line":831},{"type":"text","value":". A table with rows chosen gives their ids as ","line":831},{"type":"inlineCode","value":"records","line":831},{"type":"text","value":". Absent while building, and on a host that runs no actions.","line":831}]}],"line":831},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decide?","line":832}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(id: string, decision: \"approve\" | \"reject\", comment?: string) => Promise<DecideOutcome>","line":832}]},{"type":"tableCell","children":[{"type":"text","value":"Decides a waiting approval of the widget's data, by the item's ","line":832},{"type":"inlineCode","value":"id","line":832},{"type":"text","value":". The server checks the viewer's own standing and records who decided. Absent while building, and on a host that cannot decide (nothing is then drawn as pressable).","line":832}]}],"line":832},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"refresh?","line":833}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":833}]},{"type":"tableCell","children":[{"type":"text","value":"Reads the widget's data again: when the person comes back from deciding elsewhere.","line":833}]}],"line":833},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"can?","line":834}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, row?: Readonly<Record<string, unknown>>) => boolean","line":834}]},{"type":"tableCell","children":[{"type":"text","value":"Whether an action the widget holds may be pressed now, for a row: its ","line":834},{"type":"inlineCode","value":"when","line":834},{"type":"text","value":", as the host reads it.","line":834}]}],"line":834},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"why?","line":835}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, row?: Readonly<Record<string, unknown>>) => string | undefined","line":835}]},{"type":"tableCell","children":[{"type":"text","value":"Why an action can't be pressed now, in the reader's words (\"Status is Unpaid\"); nothing when it can.","line":835}]}],"line":835},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"close?","line":836}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":836}]},{"type":"tableCell","children":[{"type":"text","value":"Closes the side sheet or modal the widget is shown in; absent when it is on a page.","line":836}]}],"line":836},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"viewer?","line":837}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ id: string; email?: string; name?: string; }","line":837}]},{"type":"tableCell","children":[{"type":"text","value":"The person looking, where the host knows who: a form starts a field with them.","line":837}]}],"line":837},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"selectedRecord?","line":838}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":838}]},{"type":"tableCell","children":[{"type":"text","value":"The record whose side sheet or modal is open over the page: a list marks its row.","line":838}]}],"line":838},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"listens?","line":839}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(event: string) => boolean","line":839}]},{"type":"tableCell","children":[{"type":"text","value":"Whether the page does something when this event is raised: then the view draws it as pressable.","line":839}]}],"line":839},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"choices?","line":840}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(input: string, column: string, search: string) => Promise<readonly Choice[]>","line":840}]},{"type":"tableCell","children":[{"type":"text","value":"What a reference or choice column of a data input offers, read for whoever is looking.","line":840}]}],"line":840},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"place?","line":841}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(tab?: string) => unknown","line":841}]},{"type":"tableCell","children":[{"type":"text","value":"A container's (","line":841},{"type":"inlineCode","value":"role: \"container\"","line":841},{"type":"text","value":"): the host's drawing of the widgets placed in it, on its grid; for a container with tabs, of those in ","line":841},{"type":"inlineCode","value":"tab","line":841},{"type":"text","value":". A view renders what it returns as a child (it is a React node; the contract does not depend on React).","line":841}]}],"line":841},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"tab?","line":842}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ open: string | undefined; choose: (tab: string) => void; }","line":842}]},{"type":"tableCell","children":[{"type":"text","value":"The tab of a container with tabs that is open, as the host keeps it (in the address, so a reload and a link keep it), and how to open another.","line":842}]}],"line":842},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"filters?","line":843}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"FilterHost","line":843}]},{"type":"tableCell","children":[{"type":"text","value":"A filter widget's (","line":843},{"type":"inlineCode","value":"role: \"filters\"","line":843},{"type":"text","value":"): what is set now, and how to set it.","line":843}]}],"line":843}],"line":820},{"type":"heading","depth":3,"id":"workspacewidgets","children":[{"type":"text","value":"WorkspaceWidgets","line":845}],"line":845},{"type":"paragraph","children":[{"type":"text","value":"The answer of ","line":847},{"type":"inlineCode","value":"GET /tenants/:t/workspaces/:w/widgets","line":847},{"type":"text","value":".","line":847}],"line":847},{"type":"code","value":"interface WorkspaceWidgets","lang":"ts","line":849},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":853}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":853}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":853}]}],"line":853},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"items","line":855}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DeployedWidget[]","line":855}]},{"type":"tableCell","children":[]}],"line":855}],"line":853},{"type":"heading","depth":2,"id":"types","children":[{"type":"text","value":"Types","line":857}],"line":857},{"type":"heading","depth":3,"id":"actoutcome","children":[{"type":"text","value":"ActOutcome","line":859}],"line":859},{"type":"paragraph","children":[{"type":"text","value":"How running an action went. ","line":861},{"type":"inlineCode","value":"fields","line":861},{"type":"text","value":" says what was wrong with what was typed,","line":861},{"type":"break","hard":false,"line":861},{"type":"text","value":"by field name, for a form to draw beside each field.","line":862}],"line":861},{"type":"code","value":"type ActOutcome = {\n ok: true;\n} | {\n ok: false;\n cancelled: true;\n} | {\n ok: false;\n message: string;\n fields?: Readonly<Record<string, string>>;\n}","lang":"ts","line":864},{"type":"heading","depth":3,"id":"category","children":[{"type":"text","value":"Category","line":877}],"line":877},{"type":"paragraph","children":[{"type":"text","value":"The group a widget is offered under in the editor's list.","line":879}],"line":879},{"type":"code","value":"type Category = (typeof CATEGORIES)[number]","lang":"ts","line":881},{"type":"heading","depth":3,"id":"control","children":[{"type":"text","value":"Control","line":885}],"line":885},{"type":"paragraph","children":[{"type":"text","value":"One of the controls the inspector draws a setting with.","line":887}],"line":887},{"type":"code","value":"type Control = (typeof CONTROLS)[number]","lang":"ts","line":889},{"type":"heading","depth":3,"id":"datashape","children":[{"type":"text","value":"DataShape","line":893}],"line":893},{"type":"paragraph","children":[{"type":"text","value":"The shape of what a widget reads: rows, a summary, one record or approvals.","line":895}],"line":895},{"type":"code","value":"type DataShape = (typeof DATA_SHAPES)[number]","lang":"ts","line":897},{"type":"heading","depth":3,"id":"decideoutcome","children":[{"type":"text","value":"DecideOutcome","line":901}],"line":901},{"type":"paragraph","children":[{"type":"text","value":"How deciding went. A refusal says why in the server's words; a ","line":903},{"type":"inlineCode","value":"conflict","line":903},{"type":"text","value":" is someone else","line":903},{"type":"break","hard":false,"line":903},{"type":"text","value":"having decided it first, and the words say who and what.","line":904}],"line":903},{"type":"code","value":"type DecideOutcome = {\n ok: true;\n message: string;\n} | {\n ok: false;\n conflict: true;\n message: string;\n} | {\n ok: false;\n conflict?: false;\n message: string;\n}","lang":"ts","line":906},{"type":"heading","depth":3,"id":"eventgives","children":[{"type":"text","value":"EventGives","line":921}],"line":921},{"type":"paragraph","children":[{"type":"text","value":"What an event of a widget gives the action attached to it: a record, a group, or nothing.","line":923}],"line":923},{"type":"code","value":"type EventGives = (typeof EVENT_GIVES)[number]","lang":"ts","line":925},{"type":"heading","depth":3,"id":"eventpayload","children":[{"type":"text","value":"EventPayload","line":929}],"line":929},{"type":"paragraph","children":[{"type":"text","value":"What raising an event gives. Checked by the host against the event's declaration.","line":931}],"line":931},{"type":"code","value":"type EventPayload = {\n record: string;\n} | {\n group: Readonly<Record<string, unknown>>;\n} | Record<string, never>","lang":"ts","line":933},{"type":"heading","depth":3,"id":"phonebehaviour","children":[{"type":"text","value":"PhoneBehaviour","line":941}],"line":941},{"type":"paragraph","children":[{"type":"text","value":"What a widget does on a narrow screen: stack, draw as a list, or hide.","line":943}],"line":943},{"type":"code","value":"type PhoneBehaviour = (typeof PHONE_BEHAVIOURS)[number]","lang":"ts","line":945},{"type":"heading","depth":3,"id":"sourcekind","children":[{"type":"text","value":"SourceKind","line":949}],"line":949},{"type":"paragraph","children":[{"type":"text","value":"Where a widget's data may come from: a table, a query, SQL or the workspace's approvals.","line":951}],"line":951},{"type":"code","value":"type SourceKind = (typeof SOURCE_KINDS)[number]","lang":"ts","line":953},{"type":"heading","depth":3,"id":"surface","children":[{"type":"text","value":"Surface","line":957}],"line":957},{"type":"paragraph","children":[{"type":"text","value":"Where a widget may be put: on an app's page or on a dashboard.","line":959}],"line":959},{"type":"code","value":"type Surface = (typeof SURFACES)[number]","lang":"ts","line":961},{"type":"heading","depth":3,"id":"tab","children":[{"type":"text","value":"Tab","line":965}],"line":965},{"type":"paragraph","children":[{"type":"text","value":"One of the inspector's tabs: data, display, actions or rules.","line":967}],"line":967},{"type":"code","value":"type Tab = (typeof TABS)[number]","lang":"ts","line":969},{"type":"heading","depth":3,"id":"widgetdata","children":[{"type":"text","value":"WidgetData","line":973}],"line":973},{"type":"paragraph","children":[{"type":"text","value":"What a view is given to draw, by the shape its data input declared.","line":975}],"line":975},{"type":"code","value":"type WidgetData = RowsData | SummaryData | RecordData | ApprovalsData","lang":"ts","line":977},{"type":"heading","depth":3,"id":"widgetrole","children":[{"type":"text","value":"WidgetRole","line":981}],"line":981},{"type":"paragraph","children":[{"type":"text","value":"One of ","line":983},{"type":"inlineCode","value":"WIDGET_ROLES","line":983},{"type":"text","value":".","line":983}],"line":983},{"type":"code","value":"type WidgetRole = (typeof WIDGET_ROLES)[number]","lang":"ts","line":985},{"type":"heading","depth":3,"id":"widgetstate","children":[{"type":"text","value":"WidgetState","line":989}],"line":989},{"type":"paragraph","children":[{"type":"text","value":"What the frame around every widget draws for it, the same for every widget:","line":991},{"type":"break","hard":false,"line":991},{"type":"text","value":"the view is only drawn when ","line":992},{"type":"inlineCode","value":"ready","line":992},{"type":"text","value":", and when ","line":992},{"type":"inlineCode","value":"empty","line":992},{"type":"text","value":" it may draw its own","line":992},{"type":"break","hard":false,"line":992},{"type":"text","value":"empty state with ","line":993},{"type":"inlineCode","value":"message","line":993},{"type":"text","value":".","line":993}],"line":991},{"type":"code","value":"type WidgetState = {\n status: \"loading\";\n} | {\n status: \"ready\";\n} | {\n status: \"empty\";\n message: string;\n} | {\n status: \"failed\";\n message: string;\n} | {\n status: \"forbidden\";\n message: string;\n}","lang":"ts","line":995}]},"description":"Everything `@volvel/widgets` exports."}
1
+ {"path":"develop/reference/sdk/widgets","title":"@volvel/widgets","tree":{"type":"root","v":1,"children":[{"type":"paragraph","children":[{"type":"inlineCode","value":"import { … } from \"@volvel/widgets\"","line":8}],"line":8},{"type":"heading","depth":2,"id":"functions","children":[{"type":"text","value":"Functions","line":10}],"line":10},{"type":"heading","depth":3,"id":"choicewords","children":[{"type":"text","value":"choiceWords","line":12}],"line":12},{"type":"paragraph","children":[{"type":"text","value":"What a choice value is called: the label its table gives it, else the value with a first-letter","line":14},{"type":"break","hard":false,"line":14},{"type":"text","value":"capital. For choice columns and badges only: free text (a clinic's name) is drawn as it is.","line":15}],"line":14},{"type":"code","value":"function choiceWords(column: {\n values?: readonly {\n value: string;\n label?: string;\n }[];\n} | undefined, value: unknown): string","lang":"ts","line":17},{"type":"heading","depth":3,"id":"compareversions","children":[{"type":"text","value":"compareVersions","line":26}],"line":26},{"type":"paragraph","children":[{"type":"text","value":"Orders two ","line":28},{"type":"inlineCode","value":"major.minor.patch","line":28},{"type":"text","value":" versions as numbers (a build or prerelease suffix is ignored).","line":28}],"line":28},{"type":"code","value":"function compareVersions(a: string, b: string): number","lang":"ts","line":30},{"type":"heading","depth":3,"id":"counttext","children":[{"type":"text","value":"countText","line":34}],"line":34},{"type":"paragraph","children":[{"type":"text","value":"A count as the reader writes it: 1,204 in the US, 1.204 in Germany.","line":36}],"line":36},{"type":"code","value":"function countText(count: number): string","lang":"ts","line":38},{"type":"heading","depth":3,"id":"definewidget","children":[{"type":"text","value":"defineWidget","line":42}],"line":42},{"type":"paragraph","children":[{"type":"text","value":"Declares a widget. Throws when the definition is wrong, so a pack fails when it is built, not when a page is drawn.","line":44}],"line":44},{"type":"code","value":"function defineWidget<const D extends WidgetDefinition>(definition: D): D","lang":"ts","line":46},{"type":"heading","depth":3,"id":"definitionproblems","children":[{"type":"text","value":"definitionProblems","line":50}],"line":50},{"type":"paragraph","children":[{"type":"text","value":"What is wrong with a definition, as sentences; empty when nothing is.","line":52}],"line":52},{"type":"code","value":"function definitionProblems(definition: WidgetDefinition): string[]","lang":"ts","line":54},{"type":"heading","depth":3,"id":"formatday","children":[{"type":"text","value":"formatDay","line":58}],"line":58},{"type":"paragraph","children":[{"type":"text","value":"A day as the boards write it: \"Nov 20\", and \"Nov 20, 2025\" when it is not this year. The one","line":60},{"type":"break","hard":false,"line":60},{"type":"text","value":"way every widget and every drawer says a date; ","line":61},{"type":"inlineCode","value":"undefined","line":61},{"type":"text","value":" for text that is not a day.","line":61}],"line":60},{"type":"code","value":"function formatDay(value: unknown, now?: Date): string | undefined","lang":"ts","line":63},{"type":"heading","depth":3,"id":"formatmoment","children":[{"type":"text","value":"formatMoment","line":67}],"line":67},{"type":"paragraph","children":[{"type":"text","value":"A moment as the reader's own clock reads it: \"Dec 3, 6:20 PM\", or \"Dec 3\" without the time, and","line":69},{"type":"break","hard":false,"line":69},{"type":"text","value":"the year when it is not this one. The one way a cell and a confirmation say a timestamp, so","line":70},{"type":"break","hard":false,"line":70},{"type":"text","value":"they never name different days; ","line":71},{"type":"inlineCode","value":"undefined","line":71},{"type":"text","value":" for text that is not a moment.","line":71}],"line":69},{"type":"code","value":"function formatMoment(value: unknown, withTime?: boolean, now?: Date): string | undefined","lang":"ts","line":73},{"type":"heading","depth":3,"id":"formatnumber","children":[{"type":"text","value":"formatNumber","line":77}],"line":77},{"type":"paragraph","children":[{"type":"text","value":"A number as a person reads it; anything else as it is, and nothing as a dash.","line":79}],"line":79},{"type":"code","value":"function formatNumber(value: unknown, format?: ValueFormat, locale?: string): string","lang":"ts","line":81},{"type":"heading","depth":3,"id":"formatvalue","children":[{"type":"text","value":"formatValue","line":85}],"line":85},{"type":"paragraph","children":[{"type":"inlineCode","value":"12.5%","line":87},{"type":"text","value":", ","line":87},{"type":"inlineCode","value":"$1,234.56","line":87},{"type":"text","value":", ","line":87},{"type":"inlineCode","value":"1,204","line":87},{"type":"text","value":", as the reader's locale writes them (US English where it is","line":87},{"type":"break","hard":false,"line":87},{"type":"text","value":"not known): ","line":88},{"type":"inlineCode","value":"1.234,56 €","line":88},{"type":"text","value":" in German. Undefined for a value that is not a number.","line":88},{"type":"break","hard":false,"line":88},{"type":"inlineCode","value":"locale","line":89},{"type":"text","value":" is the reader's, the browser's when left out.","line":89}],"line":87},{"type":"code","value":"function formatValue(value: unknown, format: ValueFormat | undefined, locale?: string): string | undefined","lang":"ts","line":91},{"type":"heading","depth":3,"id":"moneyformatof","children":[{"type":"text","value":"moneyFormatOf","line":95}],"line":95},{"type":"paragraph","children":[{"type":"text","value":"How a number column is money, as its table says it: what its definition holds (\"What is owed,","line":97},{"type":"break","hard":false,"line":97},{"type":"text","value":"in cents.\", \"The price in euros\"). Cents (or minor units) are kept as whole cents; the other","line":98},{"type":"break","hard":false,"line":98},{"type":"text","value":"words are money kept in whole units. ","line":99},{"type":"inlineCode","value":"undefined","line":99},{"type":"text","value":" for a column that does not say so, and for","line":99},{"type":"break","hard":false,"line":99},{"type":"text","value":"one that is not a number. The one rule the table, list, detail, form and the builder share.","line":100}],"line":97},{"type":"code","value":"function moneyFormatOf(column: MoneyColumn | undefined): ValueFormat | undefined","lang":"ts","line":102},{"type":"heading","depth":3,"id":"moneytext","children":[{"type":"text","value":"moneyText","line":106}],"line":106},{"type":"paragraph","children":[{"type":"text","value":"A stored amount as it is typed: 12345 cents is \"123.45\" (\"123,45\" where a comma is written).","line":108}],"line":108},{"type":"code","value":"function moneyText(value: number, options?: MoneyOptions): string","lang":"ts","line":110},{"type":"heading","depth":3,"id":"mustgive","children":[{"type":"text","value":"mustGive","line":114}],"line":114},{"type":"paragraph","children":[{"type":"text","value":"Whether a person must give this column a value when they add a row: the data server's own","line":116},{"type":"break","hard":false,"line":116},{"type":"text","value":"rule, a column that is required (NOT NULL) and has no default. One that has a default is","line":117},{"type":"break","hard":false,"line":117},{"type":"text","value":"filled in by the server when left out, so it is not asked for, and a form starts with it.","line":118},{"type":"break","hard":false,"line":118},{"type":"text","value":"Every form, and every list of what a form asks, uses this one rule.","line":119}],"line":116},{"type":"code","value":"function mustGive(column: {\n required?: boolean | undefined;\n default?: unknown;\n}): boolean","lang":"ts","line":121},{"type":"heading","depth":3,"id":"numberof","children":[{"type":"text","value":"numberOf","line":128}],"line":128},{"type":"paragraph","children":[{"type":"text","value":"A number from a value: totals can arrive as text, from the database's exact numbers.","line":130}],"line":130},{"type":"code","value":"function numberOf(value: unknown): number | undefined","lang":"ts","line":132},{"type":"heading","depth":3,"id":"parsemoney","children":[{"type":"text","value":"parseMoney","line":136}],"line":136},{"type":"paragraph","children":[{"type":"text","value":"An amount a person typed, read as the column keeps it, with no float error: \"123.45\" or, where","line":138},{"type":"break","hard":false,"line":138},{"type":"text","value":"a comma is written, \"123,45\", is 12345 cents. Empty is no amount. More than two decimals, or","line":139},{"type":"break","hard":false,"line":139},{"type":"text","value":"text that is not an amount, is a problem in words, not a guess.","line":140}],"line":138},{"type":"code","value":"function parseMoney(text: string, options?: MoneyOptions): {\n ok: true;\n value: number | undefined;\n} | {\n ok: false;\n message: string;\n}","lang":"ts","line":142},{"type":"heading","depth":3,"id":"readerlocale","children":[{"type":"text","value":"readerLocale","line":152}],"line":152},{"type":"paragraph","children":[{"type":"text","value":"The locale the person reading a page writes numbers in: the browser's first preferred","line":154},{"type":"break","hard":false,"line":154},{"type":"text","value":"language, and US English where there is no browser or it says nothing. The one place","line":155},{"type":"break","hard":false,"line":155},{"type":"text","value":"numbers take their marks from, so a figure reads back as it was typed (D38).","line":156}],"line":154},{"type":"code","value":"function readerLocale(): string","lang":"ts","line":158},{"type":"heading","depth":3,"id":"sentencecase","children":[{"type":"text","value":"sentenceCase","line":162}],"line":162},{"type":"paragraph","children":[{"type":"text","value":"A stored word as a chip reads it: \"no_show\" is \"No show\", \"paid\" is \"Paid\".","line":164}],"line":164},{"type":"code","value":"function sentenceCase(value: string): string","lang":"ts","line":166},{"type":"heading","depth":3,"id":"tenantdefinitionproblems","children":[{"type":"text","value":"tenantDefinitionProblems","line":170}],"line":170},{"type":"paragraph","children":[{"type":"text","value":"What is wrong with a definition of a developer's widget: everything ","line":172},{"type":"inlineCode","value":"definitionProblems","line":172},{"type":"break","hard":false,"line":172},{"type":"text","value":"finds, and a type outside the tenant's namespace. A tenant cannot make a widget of the","line":173},{"type":"break","hard":false,"line":173},{"type":"text","value":"platform's packs, nor of any other name that could be taken for one.","line":174}],"line":172},{"type":"code","value":"function tenantDefinitionProblems(definition: WidgetDefinition): string[]","lang":"ts","line":176},{"type":"heading","depth":3,"id":"updatenotes","children":[{"type":"text","value":"updateNotes","line":180}],"line":180},{"type":"paragraph","children":[{"type":"text","value":"What moving a placed widget from one version to another changes in what it is configured with.","line":182}],"line":182},{"type":"code","value":"function updateNotes(from: WidgetDefinition, to: WidgetDefinition): {\n added: string[];\n removed: string[];\n}","lang":"ts","line":184},{"type":"heading","depth":2,"id":"classes","children":[{"type":"text","value":"Classes","line":191}],"line":191},{"type":"heading","depth":3,"id":"widgetregistry","children":[{"type":"text","value":"WidgetRegistry","line":193}],"line":193},{"type":"paragraph","children":[{"type":"text","value":"A set of widget definitions, by type.","line":195}],"line":195},{"type":"code","value":"class WidgetRegistry","lang":"ts","line":197},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":201}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":201}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":201}]}],"line":201},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"constructor","line":203}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(definitions?: Iterable<WidgetDefinition>)","line":203}]},{"type":"tableCell","children":[]}],"line":203},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"add","line":204}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(definition: WidgetDefinition): this","line":204}]},{"type":"tableCell","children":[{"type":"text","value":"Adds a definition. Two of one type is a mistake, never a replacement.","line":204}]}],"line":204},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"withDeployed","line":205}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(deployed: Iterable<DeployedWidget>): WidgetRegistry","line":205}]},{"type":"tableCell","children":[{"type":"text","value":"A registry of this one's widgets and the tenant widgets a workspace deployed (the answer of ","line":205},{"type":"inlineCode","value":"GET .../widgets","line":205},{"type":"text","value":"). The one it is made from is left alone: the platform's registry is shared, a workspace's is its own. A tenant widget answers by its current version.","line":205}]}],"line":205},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"get","line":206}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string, version?: string): WidgetDefinition | undefined","line":206}]},{"type":"tableCell","children":[{"type":"text","value":"A widget by its type: a tenant's at ","line":206},{"type":"inlineCode","value":"version","line":206},{"type":"text","value":" when it is given, else its current one.","line":206}]}],"line":206},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"versionsOf","line":207}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string): string[]","line":207}]},{"type":"tableCell","children":[{"type":"text","value":"The versions of a tenant's widget that are deployed, oldest first; none for a platform widget.","line":207}]}],"line":207},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"list","line":208}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(surface?: Surface): WidgetDefinition[]","line":208}]},{"type":"tableCell","children":[{"type":"text","value":"In the order they were added; offered on ","line":208},{"type":"inlineCode","value":"surface","line":208},{"type":"text","value":" when one is given.","line":208}]}],"line":208},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"packOf","line":209}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(type: string): string","line":209}]},{"type":"tableCell","children":[{"type":"text","value":"The pack a type comes from: ","line":209},{"type":"inlineCode","value":"core","line":209},{"type":"text","value":" for ","line":209},{"type":"inlineCode","value":"core/chart","line":209},{"type":"text","value":".","line":209}]}],"line":209}],"line":201},{"type":"heading","depth":2,"id":"constants","children":[{"type":"text","value":"Constants","line":211}],"line":211},{"type":"heading","depth":3,"id":"breakdown_cadences","children":[{"type":"text","value":"BREAKDOWN_CADENCES","line":213}],"line":213},{"type":"paragraph","children":[{"type":"text","value":"How long the periods are when a summary is broken down by a date or a time.","line":215}],"line":215},{"type":"code","value":"const BREAKDOWN_CADENCES: readonly [\"day\", \"week\", \"month\", \"quarter\", \"year\"]","lang":"ts","line":217},{"type":"heading","depth":3,"id":"cadence_words","children":[{"type":"text","value":"CADENCE_WORDS","line":221}],"line":221},{"type":"paragraph","children":[{"type":"text","value":"What each of the breakdown periods is called, as a title.","line":223}],"line":223},{"type":"code","value":"const CADENCE_WORDS: Record<(typeof BREAKDOWN_CADENCES)[number], string>","lang":"ts","line":225},{"type":"heading","depth":3,"id":"categories","children":[{"type":"text","value":"CATEGORIES","line":229}],"line":229},{"type":"paragraph","children":[{"type":"text","value":"What a widget is for, which is how \"Add to page\" groups widgets.","line":231}],"line":231},{"type":"code","value":"const CATEGORIES: readonly [\"records\", \"action\", \"understand\", \"organize\", \"content\"]","lang":"ts","line":233},{"type":"heading","depth":3,"id":"category_titles","children":[{"type":"text","value":"CATEGORY_TITLES","line":237}],"line":237},{"type":"paragraph","children":[{"type":"text","value":"What \"Add to page\" calls each category.","line":239}],"line":239},{"type":"code","value":"const CATEGORY_TITLES: Record<Category, string>","lang":"ts","line":241},{"type":"heading","depth":3,"id":"controls","children":[{"type":"text","value":"CONTROLS","line":245}],"line":245},{"type":"paragraph","children":[{"type":"text","value":"The controls the inspector draws a setting with. A widget names one; it","line":247},{"type":"break","hard":false,"line":247},{"type":"text","value":"can't bring its own. Most are drawn for a property of ","line":248},{"type":"inlineCode","value":"config","line":248},{"type":"text","value":"; the data","line":248},{"type":"break","hard":false,"line":248},{"type":"text","value":"controls (","line":249},{"type":"inlineCode","value":"measure","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"breakdown","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"columns","line":249},{"type":"text","value":", ","line":249},{"type":"inlineCode","value":"conditions","line":249},{"type":"text","value":") are drawn for a","line":249},{"type":"break","hard":false,"line":249},{"type":"text","value":"data input, named by ","line":250},{"type":"inlineCode","value":"of","line":250},{"type":"text","value":".","line":250}],"line":247},{"type":"code","value":"const CONTROLS: readonly [\"text\", \"markdown\", \"number\", \"switch\", \"choice\", \"segmented\", \"format\", \"column\", \"columns\", \n/** One of the page's filters, chosen by name: a figure is compared across a range of dates. */\n\"filter\", \n/** An action: steps run when the widget is used (a button's). Edited in the Actions tab. */\n\"action\", \n/** A list of labelled actions, each with when it may be pressed (a table's row actions). */\n\"actions\", \n/** A page of the interface, chosen by name. */\n\"page\", \n/** A container's tabs, in order, each with its title (Tabs'). */\n\"tabs\", \n/** The filters whoever reads the page sets, each with its type and what it offers (Search and filter's). */\n\"pageFilters\", \n/** Where it sits in its own cell: a 3 × 3 grid of positions (a button's, an action group's). */\n\"position\", \n/** One of a few choices drawn as tiles to choose by looking (a button's style, a chart's type, a text's callout). */\n\"tiles\", \n/** Columns placed into named places on a sample row (a list's title, line under it, right, badge, picture). */\n\"slots\", \n/** An icon from the kit's set, by name. */\n\"icon\", \n/** Groups of people, by path (who may run an action, who sees a widget). */\n\"groups\", \n/** Fields of a table, in order, each with its label and help (a form's, a record detail's). */\n\"fields\", \n/** The column a list's or a table's rows are kept together by. */\n\"groupRows\", \"source\", \"measure\", \"breakdown\", \"conditions\", \"sort\", \"limit\"]","lang":"ts","line":252},{"type":"heading","depth":3,"id":"data_shapes","children":[{"type":"text","value":"DATA_SHAPES","line":282}],"line":282},{"type":"paragraph","children":[{"type":"text","value":"The shape of data a widget takes, read for it by the platform:","line":284}],"line":284},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"rows","line":286},{"type":"text","value":": rows of a table or a query, a page at a time;","line":286}],"line":286},{"type":"listItem","children":[{"type":"inlineCode","value":"summary","line":287},{"type":"text","value":": rows gathered into groups with values worked out for each","line":287},{"type":"break","hard":false,"line":287},{"type":"text","value":"(a total, a count, an average), or one line of values with no groups;","line":288}],"line":287},{"type":"listItem","children":[{"type":"inlineCode","value":"record","line":289},{"type":"text","value":": one row;","line":289}],"line":289},{"type":"listItem","children":[{"type":"inlineCode","value":"approvals","line":290},{"type":"text","value":": the steps of the workspace's flows that wait for someone's decision (a","line":290},{"type":"break","hard":false,"line":290},{"type":"text","value":"widget that reads this is read for a member only, by ","line":291},{"type":"inlineCode","value":"approval:read","line":291},{"type":"text","value":", and decides by its","line":291},{"type":"break","hard":false,"line":291},{"type":"text","value":"own route: decision 0007).","line":292}],"line":290}],"line":286},{"type":"code","value":"const DATA_SHAPES: readonly [\"rows\", \"summary\", \"record\", \"approvals\"]","lang":"ts","line":294},{"type":"heading","depth":3,"id":"event_gives","children":[{"type":"text","value":"EVENT_GIVES","line":298}],"line":298},{"type":"paragraph","children":[{"type":"text","value":"What an event gives the page when it is raised:","line":300}],"line":300},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"record","line":301},{"type":"text","value":": a row, by its id (a table's row clicked);","line":301}],"line":301},{"type":"listItem","children":[{"type":"inlineCode","value":"group","line":302},{"type":"text","value":": the values of a group's breakdown (a bar or a point clicked);","line":302}],"line":302},{"type":"listItem","children":[{"type":"inlineCode","value":"nothing","line":303},{"type":"text","value":".","line":303}],"line":303}],"line":301},{"type":"code","value":"const EVENT_GIVES: readonly [\"record\", \"group\", \"nothing\"]","lang":"ts","line":305},{"type":"heading","depth":3,"id":"format_schema","children":[{"type":"text","value":"FORMAT_SCHEMA","line":309}],"line":309},{"type":"paragraph","children":[{"type":"text","value":"The JSON Schema of a ","line":311},{"type":"inlineCode","value":"format","line":311},{"type":"text","value":" setting. A pack spreads it into its config with an ","line":311},{"type":"inlineCode","value":"x-volvel","line":311},{"type":"text","value":" hint.","line":311}],"line":311},{"type":"code","value":"const FORMAT_SCHEMA: {\n readonly type: \"object\";\n readonly properties: {\n readonly style: {\n readonly enum: readonly [\"number\", \"currency\", \"percent\"];\n };\n readonly currency: {\n readonly type: \"string\";\n readonly pattern: \"^[A-Z]{3}$\";\n };\n readonly minorUnits: {\n readonly type: \"boolean\";\n };\n readonly decimals: {\n readonly type: \"integer\";\n readonly minimum: 0;\n readonly maximum: 6;\n };\n readonly notation: {\n readonly enum: readonly [\"compact\"];\n };\n readonly grouping: {\n readonly const: false;\n };\n };\n readonly required: readonly [\"style\"];\n readonly additionalProperties: false;\n}","lang":"ts","line":313},{"type":"heading","depth":3,"id":"formatofcolumn","children":[{"type":"text","value":"formatOfColumn","line":344}],"line":344},{"type":"paragraph","children":[{"type":"text","value":"The format a column is drawn in: the widget's own, else what its table says it holds.","line":346}],"line":346},{"type":"code","value":"const formatOfColumn: (own: ValueFormat | undefined, column: MoneyColumn | undefined) => ValueFormat | undefined","lang":"ts","line":348},{"type":"heading","depth":3,"id":"measure_functions","children":[{"type":"text","value":"MEASURE_FUNCTIONS","line":352}],"line":352},{"type":"paragraph","children":[{"type":"text","value":"What the inspector writes as a measure, a breakdown and a condition. The manifest checks them.","line":354}],"line":354},{"type":"code","value":"const MEASURE_FUNCTIONS: readonly [\"count\", \"count_distinct\", \"sum\", \"avg\", \"min\", \"max\"]","lang":"ts","line":356},{"type":"heading","depth":3,"id":"measure_words","children":[{"type":"text","value":"MEASURE_WORDS","line":360}],"line":360},{"type":"paragraph","children":[{"type":"text","value":"What a measure is called in a sentence: \"Sum of Total\".","line":362}],"line":362},{"type":"code","value":"const MEASURE_WORDS: Record<(typeof MEASURE_FUNCTIONS)[number], string>","lang":"ts","line":364},{"type":"heading","depth":3,"id":"phone_behaviours","children":[{"type":"text","value":"PHONE_BEHAVIOURS","line":368}],"line":368},{"type":"paragraph","children":[{"type":"text","value":"What a widget does on a narrow screen when nobody has said:","line":370}],"line":370},{"type":"list","ordered":false,"children":[{"type":"listItem","children":[{"type":"inlineCode","value":"stack","line":371},{"type":"text","value":": full width, in reading order;","line":371}],"line":371},{"type":"listItem","children":[{"type":"inlineCode","value":"list","line":372},{"type":"text","value":": as ","line":372},{"type":"inlineCode","value":"stack","line":372},{"type":"text","value":", drawn by its view as a list (a table as rows of cards);","line":372}],"line":372},{"type":"listItem","children":[{"type":"inlineCode","value":"hide","line":373},{"type":"text","value":": not shown on phones.","line":373}],"line":373}],"line":371},{"type":"code","value":"const PHONE_BEHAVIOURS: readonly [\"stack\", \"list\", \"hide\"]","lang":"ts","line":375},{"type":"heading","depth":3,"id":"source_kinds","children":[{"type":"text","value":"SOURCE_KINDS","line":379}],"line":379},{"type":"paragraph","children":[{"type":"text","value":"Where a data input may come from. SQL is never offered on an app's page.","line":381}],"line":381},{"type":"code","value":"const SOURCE_KINDS: readonly [\"table\", \"query\", \"sql\", \"approvals\", \"figures\"]","lang":"ts","line":383},{"type":"heading","depth":3,"id":"surfaces","children":[{"type":"text","value":"SURFACES","line":387}],"line":387},{"type":"paragraph","children":[{"type":"text","value":"Where a widget is offered. A dashboard only reads.","line":389}],"line":389},{"type":"code","value":"const SURFACES: readonly [\"app\", \"dashboard\"]","lang":"ts","line":391},{"type":"heading","depth":3,"id":"tab_titles","children":[{"type":"text","value":"TAB_TITLES","line":395}],"line":395},{"type":"paragraph","children":[{"type":"text","value":"What the inspector calls each tab.","line":397}],"line":397},{"type":"code","value":"const TAB_TITLES: Record<Tab, string>","lang":"ts","line":399},{"type":"heading","depth":3,"id":"tabs","children":[{"type":"text","value":"TABS","line":403}],"line":403},{"type":"paragraph","children":[{"type":"text","value":"The inspector's tabs, in order.","line":405}],"line":405},{"type":"code","value":"const TABS: readonly [\"data\", \"display\", \"actions\", \"rules\"]","lang":"ts","line":407},{"type":"heading","depth":3,"id":"tenant_pack","children":[{"type":"text","value":"TENANT_PACK","line":411}],"line":411},{"type":"paragraph","children":[{"type":"text","value":"The pack every developer's widget is in, in the tenant's own namespace: ","line":413},{"type":"inlineCode","value":"x/<name>","line":413},{"type":"text","value":". ","line":413},{"type":"inlineCode","value":"core","line":413},{"type":"text","value":" and ","line":413},{"type":"inlineCode","value":"labs","line":413},{"type":"text","value":" are Volvel's.","line":413}],"line":413},{"type":"code","value":"const TENANT_PACK = \"x\"","lang":"ts","line":415},{"type":"heading","depth":3,"id":"widget_roles","children":[{"type":"text","value":"WIDGET_ROLES","line":419}],"line":419},{"type":"paragraph","children":[{"type":"text","value":"What the platform gives a widget beyond its data: to hold other widgets, or to set the page's filters.","line":421}],"line":421},{"type":"code","value":"const WIDGET_ROLES: readonly [\"container\", \"filters\"]","lang":"ts","line":423},{"type":"heading","depth":2,"id":"interfaces","children":[{"type":"text","value":"Interfaces","line":427}],"line":427},{"type":"heading","depth":3,"id":"approvalitem","children":[{"type":"text","value":"ApprovalItem","line":429}],"line":429},{"type":"paragraph","children":[{"type":"text","value":"One step waiting for a decision, or decided. The fields are the step's detail as the server","line":431},{"type":"break","hard":false,"line":431},{"type":"text","value":"redacted and limited it; ","line":432},{"type":"inlineCode","value":"mayDecide","line":432},{"type":"text","value":" is the server's answer for this viewer, and the buttons","line":432},{"type":"break","hard":false,"line":432},{"type":"text","value":"are drawn from it, but the server decides again.","line":433}],"line":431},{"type":"code","value":"interface ApprovalItem","lang":"ts","line":435},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":439}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":439}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":439}]}],"line":439},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"id","line":441}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":441}]},{"type":"tableCell","children":[{"type":"text","value":"Names the step to ","line":441},{"type":"inlineCode","value":"decide","line":441},{"type":"text","value":": the flow run and the step. Nothing to read into.","line":441}]}],"line":441},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title","line":442}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":442}]},{"type":"tableCell","children":[]}],"line":442},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"flow","line":443}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ path: string; title: string; }","line":443}]},{"type":"tableCell","children":[]}],"line":443},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"fields","line":444}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { name: string; label: string; value: unknown; }[]","line":444}]},{"type":"tableCell","children":[]}],"line":444},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"waitingSince","line":445}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":445}]},{"type":"tableCell","children":[{"type":"text","value":"An ISO time.","line":445}]}],"line":445},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"timesOutAt","line":446}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":446}]},{"type":"tableCell","children":[]}],"line":446},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"mayDecide","line":447}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":447}]},{"type":"tableCell","children":[]}],"line":447},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"approvers","line":448}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":448}]},{"type":"tableCell","children":[{"type":"text","value":"Who may decide, in words (\"the practice-managers group\"), or null when anyone holding the permission may.","line":448}]}],"line":448},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decision?","line":449}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ approved: boolean; by: string; at: string | null; comment: string | null; via: \"app\" | \"console\" | \"email\"; }","line":449}]},{"type":"tableCell","children":[{"type":"text","value":"Set on a decided one. ","line":449},{"type":"inlineCode","value":"via","line":449},{"type":"text","value":" is where: the app, the console, or a link in the mail.","line":449}]}],"line":449}],"line":439},{"type":"heading","depth":3,"id":"approvalsdata","children":[{"type":"text","value":"ApprovalsData","line":451}],"line":451},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads approvals is given: the steps of the workspace's flows that wait for a decision.","line":453}],"line":453},{"type":"code","value":"interface ApprovalsData","lang":"ts","line":455},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":459}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":459}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":459}]}],"line":459},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":461}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"approvals\"","line":461}]},{"type":"tableCell","children":[]}],"line":461},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decideIn?","line":462}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ console: string; name: string; }","line":462}]},{"type":"tableCell","children":[{"type":"text","value":"Set when the requests are decided in the console and not here: where, and what it is called.","line":462}]}],"line":462},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"waiting","line":463}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ApprovalItem[]","line":463}]},{"type":"tableCell","children":[]}],"line":463},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decided","line":464}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ApprovalItem[]","line":464}]},{"type":"tableCell","children":[]}],"line":464},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"more","line":465}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":465}]},{"type":"tableCell","children":[{"type":"text","value":"There are more waiting than were sent.","line":465}]}],"line":465}],"line":459},{"type":"heading","depth":3,"id":"cellsize","children":[{"type":"text","value":"CellSize","line":467}],"line":467},{"type":"paragraph","children":[{"type":"text","value":"Sizes in the page's grid: twelve columns, rows of 40 pixels.","line":469}],"line":469},{"type":"code","value":"interface CellSize","lang":"ts","line":471},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":475}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":475}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":475}]}],"line":475},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"w","line":477}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":477}]},{"type":"tableCell","children":[]}],"line":477},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"h","line":478}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":478}]},{"type":"tableCell","children":[]}],"line":478}],"line":475},{"type":"heading","depth":3,"id":"choice","children":[{"type":"text","value":"Choice","line":480}],"line":480},{"type":"paragraph","children":[{"type":"text","value":"A value a reference or choice column offers.","line":482}],"line":482},{"type":"code","value":"interface Choice","lang":"ts","line":484},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":488}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":488}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":488}]}],"line":488},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"value","line":490}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":490}]},{"type":"tableCell","children":[]}],"line":490},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":491}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":491}]},{"type":"tableCell","children":[]}],"line":491}],"line":488},{"type":"heading","depth":3,"id":"columninfo","children":[{"type":"text","value":"ColumnInfo","line":493}],"line":493},{"type":"paragraph","children":[{"type":"text","value":"A column of what was read, as the view should draw it.","line":495}],"line":495},{"type":"code","value":"interface ColumnInfo","lang":"ts","line":497},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":501}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":501}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":501}]}],"line":501},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"name","line":503}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":503}]},{"type":"tableCell","children":[]}],"line":503},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":504}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":504}]},{"type":"tableCell","children":[{"type":"text","value":"What it is called, in the reader's words.","line":504}]}],"line":504},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":505}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":505}]},{"type":"tableCell","children":[{"type":"text","value":"The column's type: text, integer, number, boolean, date, timestamp, enum, reference, json, uuid.","line":505}]}],"line":505},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description?","line":506}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":506}]},{"type":"tableCell","children":[{"type":"text","value":"What the column holds, as its table's definition says: the help behind its heading.","line":506}]}],"line":506},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values?","line":507}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { value: string; label?: string; color?: string; }[]","line":507}]},{"type":"tableCell","children":[{"type":"text","value":"For an enum: its values, and the color each is drawn in.","line":507}]}],"line":507},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":508}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":508}]},{"type":"tableCell","children":[{"type":"text","value":"Whether a row must have a value here, as its table's definition says. Left out for what is not a column of a table.","line":508}]}],"line":508},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"default?","line":509}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"unknown","line":509}]},{"type":"tableCell","children":[{"type":"text","value":"What a new row gets when it gives none, as its table's definition says.","line":509}]}],"line":509},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"references?","line":510}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":510}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the table it points to, by its path.","line":510}]}],"line":510}],"line":501},{"type":"heading","depth":3,"id":"configschema","children":[{"type":"text","value":"ConfigSchema","line":512}],"line":512},{"type":"paragraph","children":[{"type":"text","value":"A JSON Schema object for a widget's configuration, with an ","line":514},{"type":"inlineCode","value":"x-volvel","line":514},{"type":"text","value":" hint on each property.","line":514}],"line":514},{"type":"code","value":"interface ConfigSchema","lang":"ts","line":516},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":520}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":520}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":520}]}],"line":520},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":522}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"object\"","line":522}]},{"type":"tableCell","children":[]}],"line":522},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"properties","line":523}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, Record<string, unknown> & { \"x-volvel\"?: InspectorHint; }>","line":523}]},{"type":"tableCell","children":[]}],"line":523},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":524}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":524}]},{"type":"tableCell","children":[]}],"line":524},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"additionalProperties?","line":525}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":525}]},{"type":"tableCell","children":[]}],"line":525}],"line":520},{"type":"heading","depth":3,"id":"datahints","children":[{"type":"text","value":"DataHints","line":527}],"line":527},{"type":"paragraph","children":[{"type":"text","value":"A data input's controls, drawn in the Data tab in this order.","line":529}],"line":529},{"type":"code","value":"interface DataHints","lang":"ts","line":531},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":535}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":535}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":535}]}],"line":535},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"of","line":537}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":537}]},{"type":"tableCell","children":[]}],"line":537},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"controls","line":538}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { control: Extract<Control, \"source\" | \"measure\" | \"breakdown\" | \"conditions\" | \"sort\" | \"limit\">; level?: \"main\" | \"more\"; label: string; help?: string; }[]","line":538}]},{"type":"tableCell","children":[]}],"line":538}],"line":535},{"type":"heading","depth":3,"id":"datainputdeclaration","children":[{"type":"text","value":"DataInputDeclaration","line":540}],"line":540},{"type":"paragraph","children":[{"type":"text","value":"One thing a widget reads: its shape, what it is called, whether it is needed and where it may come from.","line":542}],"line":542},{"type":"code","value":"interface DataInputDeclaration","lang":"ts","line":544},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":548}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":548}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":548}]}],"line":548},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":550}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DataShape","line":550}]},{"type":"tableCell","children":[]}],"line":550},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label?","line":551}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":551}]},{"type":"tableCell","children":[{"type":"text","value":"What the inspector calls it when a widget has more than one. Left out: \"Source\".","line":551}]}],"line":551},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"required?","line":552}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":552}]},{"type":"tableCell","children":[{"type":"text","value":"A widget can't draw without it. Default true.","line":552}]}],"line":552},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sources?","line":553}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly SourceKind[]","line":553}]},{"type":"tableCell","children":[{"type":"text","value":"Where it may come from. Default: table and query, and SQL on a dashboard.","line":553}]}],"line":553},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values?","line":554}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ min: number; max: number; }","line":554}]},{"type":"tableCell","children":[{"type":"text","value":"For a summary: how many values it may work out. Default 1 to 1.","line":554}]}],"line":554},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"breakdowns?","line":555}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ min: number; max: number; }","line":555}]},{"type":"tableCell","children":[{"type":"text","value":"For a summary: how many ways it may be broken down. Default 0 to 1.","line":555}]}],"line":555}],"line":548},{"type":"heading","depth":3,"id":"deployedwidget","children":[{"type":"text","value":"DeployedWidget","line":557}],"line":557},{"type":"paragraph","children":[{"type":"text","value":"A tenant's widget as a workspace has it deployed: the versions kept (a page names the one","line":559},{"type":"break","hard":false,"line":559},{"type":"text","value":"it was built with), and which of them is the newest.","line":560}],"line":559},{"type":"code","value":"interface DeployedWidget","lang":"ts","line":562},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":566}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":566}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":566}]}],"line":566},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":568}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":568}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"x/<name>","line":568},{"type":"text","value":".","line":568}]}],"line":568},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"current","line":569}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | null","line":569}]},{"type":"tableCell","children":[{"type":"text","value":"The version the repository defines now: what \"Add to page\" places and \"Update\" moves to. Null once the widget is removed, while pages still place a version of it.","line":569}]}],"line":569},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"versions","line":570}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DeployedWidgetVersion[]","line":570}]},{"type":"tableCell","children":[{"type":"text","value":"Every deployed version, with the definition each had.","line":570}]}],"line":570}],"line":566},{"type":"heading","depth":3,"id":"deployedwidgetversion","children":[{"type":"text","value":"DeployedWidgetVersion","line":572}],"line":572},{"type":"paragraph","children":[{"type":"text","value":"One deployed version of a tenant's widget, as ","line":574},{"type":"inlineCode","value":"GET .../widgets","line":574},{"type":"text","value":" lists it.","line":574}],"line":574},{"type":"code","value":"interface DeployedWidgetVersion","lang":"ts","line":576},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":580}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":580}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":580}]}],"line":580},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version","line":582}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":582}]},{"type":"tableCell","children":[]}],"line":582},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"definition","line":583}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetDefinition","line":583}]},{"type":"tableCell","children":[]}],"line":583},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"current?","line":584}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":584}]},{"type":"tableCell","children":[{"type":"text","value":"Whether it is the version the repository defines now.","line":584}]}],"line":584},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"deployedAt?","line":585}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":585}]},{"type":"tableCell","children":[]}],"line":585},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"placements?","line":586}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":586}]},{"type":"tableCell","children":[{"type":"text","value":"How many widgets on pages place this version.","line":586}]}],"line":586}],"line":580},{"type":"heading","depth":3,"id":"eventdeclaration","children":[{"type":"text","value":"EventDeclaration","line":588}],"line":588},{"type":"paragraph","children":[{"type":"text","value":"One thing that can happen to a widget, such as a click, that an action may be attached to.","line":590}],"line":590},{"type":"code","value":"interface EventDeclaration","lang":"ts","line":592},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":596}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":596}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":596}]}],"line":596},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"gives","line":598}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"EventGives","line":598}]},{"type":"tableCell","children":[]}],"line":598},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":599}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":599}]},{"type":"tableCell","children":[{"type":"text","value":"Said in the Actions tab: \"When a row is clicked\".","line":599}]}],"line":599},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"payload?","line":600}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":600}]},{"type":"tableCell","children":[{"type":"text","value":"For a developer's widget: a JSON Schema for what its frame sends with the event. The host checks the payload against it and drops what does not fit. Left out: the shape ","line":600},{"type":"inlineCode","value":"gives","line":600},{"type":"text","value":" names.","line":600}]}],"line":600}],"line":596},{"type":"heading","depth":3,"id":"filterhost","children":[{"type":"text","value":"FilterHost","line":602}],"line":602},{"type":"paragraph","children":[{"type":"text","value":"What a filter widget is given: the page's values of its filters, and a way to change them.","line":604}],"line":604},{"type":"code","value":"interface FilterHost","lang":"ts","line":606},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":610}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":610}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":610}]}],"line":610},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values","line":612}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":612}]},{"type":"tableCell","children":[{"type":"text","value":"The value of each filter, by name, as the reader set it or as it starts.","line":612}]}],"line":612},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"set","line":613}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(name: string, value: unknown) => void","line":613}]},{"type":"tableCell","children":[{"type":"text","value":"Sets one filter. Every widget it narrows is read again. ","line":613},{"type":"inlineCode","value":"undefined","line":613},{"type":"text","value":" puts it back to how it starts.","line":613}]}],"line":613},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"reset","line":614}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":614}]},{"type":"tableCell","children":[{"type":"text","value":"Puts every filter of this widget back to how it starts.","line":614}]}],"line":614},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"options?","line":615}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(name: string, search: string) => Promise<readonly Choice[]>","line":615}]},{"type":"tableCell","children":[{"type":"text","value":"What a choice filter offers when it names the column its values come from, read for whoever is looking.","line":615}]}],"line":615}],"line":610},{"type":"heading","depth":3,"id":"inspectorhint","children":[{"type":"text","value":"InspectorHint","line":617}],"line":617},{"type":"paragraph","children":[{"type":"text","value":"How the inspector draws one setting. Kept on a config property as ","line":619},{"type":"inlineCode","value":"x-volvel","line":619},{"type":"text","value":".","line":619}],"line":619},{"type":"code","value":"interface InspectorHint","lang":"ts","line":621},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":625}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":625}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":625}]}],"line":625},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"tab","line":627}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Tab","line":627}]},{"type":"tableCell","children":[]}],"line":627},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"group?","line":628}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":628}]},{"type":"tableCell","children":[{"type":"text","value":"The group of rows it is drawn in, in its tab (board 8: \"Rows it uses\", \"What it shows\", \"Look\", \"Compare\"). Rows of a group are drawn together, under its name, in ","line":628},{"type":"inlineCode","value":"order","line":628},{"type":"text","value":".","line":628}]}],"line":628},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"level?","line":629}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"main\" | \"more\"","line":629}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"main","line":629},{"type":"text","value":" is shown at once; ","line":629},{"type":"inlineCode","value":"more","line":629},{"type":"text","value":" under \"More … options\", one level and no deeper.","line":629}]}],"line":629},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"control","line":630}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Control","line":630}]},{"type":"tableCell","children":[]}],"line":630},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"label","line":631}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":631}]},{"type":"tableCell","children":[]}],"line":631},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"help?","line":632}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":632}]},{"type":"tableCell","children":[]}],"line":632},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"of?","line":633}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":633}]},{"type":"tableCell","children":[{"type":"text","value":"For a column or a data control: which data input it belongs to.","line":633}]}],"line":633},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"types?","line":634}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":634}]},{"type":"tableCell","children":[{"type":"text","value":"For a column: only columns of these types are offered.","line":634}]}],"line":634},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"choices?","line":635}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, string>","line":635}]},{"type":"tableCell","children":[{"type":"text","value":"For ","line":635},{"type":"inlineCode","value":"choice","line":635},{"type":"text","value":" and ","line":635},{"type":"inlineCode","value":"segmented","line":635},{"type":"text","value":": what each value is called.","line":635}]}],"line":635},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"when?","line":636}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Record<string, unknown>","line":636}]},{"type":"tableCell","children":[{"type":"text","value":"Only shown when other properties of config have these values. Equality; a list is any of its values, and ","line":636},{"type":"inlineCode","value":"null","line":636},{"type":"text","value":" in it is the property left unset.","line":636}]}],"line":636},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"order?","line":637}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":637}]},{"type":"tableCell","children":[{"type":"text","value":"Where it is in its tab, lower first.","line":637}]}],"line":637}],"line":625},{"type":"heading","depth":3,"id":"layoutdeclaration","children":[{"type":"text","value":"LayoutDeclaration","line":639}],"line":639},{"type":"paragraph","children":[{"type":"text","value":"A widget's size in the page's grid, and what it does on a phone.","line":641}],"line":641},{"type":"code","value":"interface LayoutDeclaration","lang":"ts","line":643},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":647}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":647}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":647}]}],"line":647},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"min","line":649}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":649}]},{"type":"tableCell","children":[]}],"line":649},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"default","line":650}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":650}]},{"type":"tableCell","children":[]}],"line":650},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"max?","line":651}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"CellSize","line":651}]},{"type":"tableCell","children":[]}],"line":651},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"phone?","line":652}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"PhoneBehaviour","line":652}]},{"type":"tableCell","children":[]}],"line":652},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"frame?","line":653}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"card\" | \"none\"","line":653}]},{"type":"tableCell","children":[{"type":"text","value":"How the page frames it: ","line":653},{"type":"inlineCode","value":"card","line":653},{"type":"text","value":" (the default) draws it on a card with its title; ","line":653},{"type":"inlineCode","value":"none","line":653},{"type":"text","value":" draws it on the page as it is, as a button stands (its title only while it is renamed).","line":653}]}],"line":653}],"line":647},{"type":"heading","depth":3,"id":"moneycolumn","children":[{"type":"text","value":"MoneyColumn","line":655}],"line":655},{"type":"paragraph","children":[{"type":"text","value":"What a column says of itself: enough to know whether it holds money.","line":657}],"line":657},{"type":"code","value":"interface MoneyColumn","lang":"ts","line":659},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":663}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":663}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":663}]}],"line":663},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type?","line":665}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":665}]},{"type":"tableCell","children":[]}],"line":665},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description?","line":666}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":666}]},{"type":"tableCell","children":[]}],"line":666}],"line":663},{"type":"heading","depth":3,"id":"moneyoptions","children":[{"type":"text","value":"MoneyOptions","line":668}],"line":668},{"type":"paragraph","children":[{"type":"text","value":"How an amount is read: whether it is kept in cents, the currency its problems are worded in, and the reader's locale.","line":670}],"line":670},{"type":"code","value":"interface MoneyOptions","lang":"ts","line":672},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":676}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":676}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":676}]}],"line":676},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"minorUnits?","line":678}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean | undefined","line":678}]},{"type":"tableCell","children":[{"type":"text","value":"The column keeps cents (the default for money): 12345 is 123.45. ","line":678},{"type":"inlineCode","value":"false","line":678},{"type":"text","value":": whole units.","line":678}]}],"line":678},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"currency?","line":679}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":679}]},{"type":"tableCell","children":[{"type":"text","value":"An ISO 4217 code, for the words of a problem.","line":679}]}],"line":679},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"locale?","line":680}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string | undefined","line":680}]},{"type":"tableCell","children":[{"type":"text","value":"The person's locale; the browser's when left out.","line":680}]}],"line":680}],"line":676},{"type":"heading","depth":3,"id":"recorddata","children":[{"type":"text","value":"RecordData","line":682}],"line":682},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads one record is given: its columns and its values.","line":684}],"line":684},{"type":"code","value":"interface RecordData","lang":"ts","line":686},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":690}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":690}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":690}]}],"line":690},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":692}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"record\"","line":692}]},{"type":"tableCell","children":[]}],"line":692},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":693}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":693}]},{"type":"tableCell","children":[]}],"line":693},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"record","line":694}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>> | null","line":694}]},{"type":"tableCell","children":[]}],"line":694},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"names?","line":695}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, Readonly<Record<string, string>>>>","line":695}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the name of the row each id points to.","line":695}]}],"line":695}],"line":690},{"type":"heading","depth":3,"id":"rowsdata","children":[{"type":"text","value":"RowsData","line":697}],"line":697},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads rows is given: the columns and a page of rows, and a way to ask for the next.","line":699}],"line":699},{"type":"code","value":"interface RowsData","lang":"ts","line":701},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":705}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":705}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":705}]}],"line":705},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":707}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"rows\"","line":707}]},{"type":"tableCell","children":[]}],"line":707},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":708}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":708}]},{"type":"tableCell","children":[]}],"line":708},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"rows","line":709}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":709}]},{"type":"tableCell","children":[]}],"line":709},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"more?","line":710}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":710}]},{"type":"tableCell","children":[{"type":"text","value":"Asks for the next page, when there is one.","line":710}]}],"line":710},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"total?","line":711}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":711}]},{"type":"tableCell","children":[{"type":"text","value":"With a next page: how many rows there are in all, as the filters leave them.","line":711}]}],"line":711},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"groups?","line":712}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { key: unknown; count: number; }[]","line":712}]},{"type":"tableCell","children":[{"type":"text","value":"For rows grouped by a column, with a next page: how many rows each group has in all, by what the group is.","line":712}]}],"line":712},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sortBy?","line":713}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(sort: { column: string; descending: boolean; } | undefined) => void","line":713}]},{"type":"tableCell","children":[{"type":"text","value":"A table's rows in the order of one column, read from the server over all its rows, not the page's. Left out when every row is here already and the view may sort them itself.","line":713}]}],"line":713},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"sorted?","line":714}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ column: string; descending: boolean; }","line":714}]},{"type":"tableCell","children":[{"type":"text","value":"The order the rows were read in, when ","line":714},{"type":"inlineCode","value":"sortBy","line":714},{"type":"text","value":" set one.","line":714}]}],"line":714},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"names?","line":715}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, Readonly<Record<string, string>>>>","line":715}]},{"type":"tableCell","children":[{"type":"text","value":"For a reference column: the name of the row each id points to.","line":715}]}],"line":715}],"line":705},{"type":"heading","depth":3,"id":"summarydata","children":[{"type":"text","value":"SummaryData","line":717}],"line":717},{"type":"paragraph","children":[{"type":"text","value":"What a widget that reads a summary is given: rows gathered into groups with the values worked out for each.","line":719}],"line":719},{"type":"code","value":"interface SummaryData","lang":"ts","line":721},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":725}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":725}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":725}]}],"line":725},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"shape","line":727}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"summary\"","line":727}]},{"type":"tableCell","children":[]}],"line":727},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"columns","line":728}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly ColumnInfo[]","line":728}]},{"type":"tableCell","children":[{"type":"text","value":"The breakdowns' columns, then the values', as the view should draw them.","line":728}]}],"line":728},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"breakdowns","line":729}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":729}]},{"type":"tableCell","children":[{"type":"text","value":"The names of the columns that are breakdowns, in order.","line":729}]}],"line":729},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"values","line":730}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly string[]","line":730}]},{"type":"tableCell","children":[{"type":"text","value":"The names of the columns that are values, in order.","line":730}]}],"line":730},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"rows","line":731}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":731}]},{"type":"tableCell","children":[]}],"line":731},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"previous?","line":732}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Record<string, unknown>[]","line":732}]},{"type":"tableCell","children":[{"type":"text","value":"For a widget that compares: the same values for the period before.","line":732}]}],"line":732},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"measures?","line":733}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, \"count\" | \"sum\" | \"avg\" | \"min\" | \"max\" | \"count_distinct\" | undefined>>","line":733}]},{"type":"tableCell","children":[{"type":"text","value":"The function each value is, by the value's name, when the query is a visual one: what a total of it can be made of.","line":733}]}],"line":733},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"buckets?","line":734}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, \"day\" | \"week\" | \"month\" | \"quarter\" | \"year\">>","line":734}]},{"type":"tableCell","children":[{"type":"text","value":"The period each date breakdown is cut into, by the breakdown's name: what \"include periods with nothing\" steps by.","line":734}]}],"line":734},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"span?","line":735}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ from: string; to: string; }","line":735}]},{"type":"tableCell","children":[{"type":"text","value":"The days the page's date filter gives the first date breakdown, both ends: where a filled chart begins and ends.","line":735}]}],"line":735},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"trend?","line":736}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly { at: string; value: number; }[]","line":736}]},{"type":"tableCell","children":[{"type":"text","value":"For a figure with a trend: its first value over the time it covers, oldest first. ","line":736},{"type":"inlineCode","value":"at","line":736},{"type":"text","value":" is a day.","line":736}]}],"line":736}],"line":725},{"type":"heading","depth":3,"id":"valueformat","children":[{"type":"text","value":"ValueFormat","line":738}],"line":738},{"type":"paragraph","children":[{"type":"text","value":"How a number is written. Money kept in cents is shown with ","line":740},{"type":"inlineCode","value":"minorUnits","line":740},{"type":"text","value":".","line":740}],"line":740},{"type":"code","value":"interface ValueFormat","lang":"ts","line":742},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":746}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":746}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":746}]}],"line":746},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"style","line":748}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"number\" | \"currency\" | \"percent\"","line":748}]},{"type":"tableCell","children":[]}],"line":748},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"currency?","line":749}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":749}]},{"type":"tableCell","children":[{"type":"text","value":"ISO 4217, for ","line":749},{"type":"inlineCode","value":"currency","line":749},{"type":"text","value":". Default ","line":749},{"type":"inlineCode","value":"USD","line":749},{"type":"text","value":".","line":749}]}],"line":749},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"minorUnits?","line":750}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":750}]},{"type":"tableCell","children":[]}],"line":750},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decimals?","line":751}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":751}]},{"type":"tableCell","children":[]}],"line":751},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"notation?","line":752}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"\"compact\"","line":752}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"compact","line":752},{"type":"text","value":" writes 43,120 as 43.1K.","line":752}]}],"line":752},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"grouping?","line":753}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":753}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"false","line":753},{"type":"text","value":" writes 43120, not 43,120 (the picker's \"Plain\").","line":753}]}],"line":753}],"line":746},{"type":"heading","depth":3,"id":"viewsize","children":[{"type":"text","value":"ViewSize","line":755}],"line":755},{"type":"paragraph","children":[{"type":"text","value":"A view is drawn inside a CSS container named ","line":757},{"type":"inlineCode","value":"cell","line":757},{"type":"text","value":", the widget's own box, so it","line":757},{"type":"break","hard":false,"line":757},{"type":"text","value":"can size what it draws by the room it has (","line":758},{"type":"inlineCode","value":"@[14rem]/cell:…","line":758},{"type":"text","value":") rather than by the","line":758},{"type":"break","hard":false,"line":758},{"type":"text","value":"window's width or a count of columns.","line":759}],"line":757},{"type":"code","value":"interface ViewSize","lang":"ts","line":761},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":765}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":765}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":765}]}],"line":765},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"w","line":767}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":767}]},{"type":"tableCell","children":[{"type":"text","value":"In cells.","line":767}]}],"line":767},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"h","line":768}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"number","line":768}]},{"type":"tableCell","children":[]}],"line":768},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"narrow","line":769}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":769}]},{"type":"tableCell","children":[{"type":"text","value":"The page is a phone's width or so: one column.","line":769}]}],"line":769}],"line":765},{"type":"heading","depth":3,"id":"widgetdefinition","children":[{"type":"text","value":"WidgetDefinition","line":771}],"line":771},{"type":"paragraph","children":[{"type":"text","value":"What a widget declares: its type and words, what it reads, its settings, its events and its size. The editor, the checks and the documentation are all drawn from it.","line":773}],"line":773},{"type":"code","value":"interface WidgetDefinition","lang":"ts","line":775},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":779}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":779}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":779}]}],"line":779},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"type","line":781}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":781}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"pack/name","line":781},{"type":"text","value":": ","line":781},{"type":"inlineCode","value":"core/chart","line":781},{"type":"text","value":". The pack ","line":781},{"type":"inlineCode","value":"core","line":781},{"type":"text","value":" is the platform's, and ","line":781},{"type":"inlineCode","value":"labs","line":781},{"type":"text","value":" its trials.","line":781}]}],"line":781},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version","line":782}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":782}]},{"type":"tableCell","children":[{"type":"text","value":"Semver. A page names a type; a deploy pins the version it was checked against.","line":782}]}],"line":782},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title","line":783}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":783}]},{"type":"tableCell","children":[]}],"line":783},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"description","line":784}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":784}]},{"type":"tableCell","children":[{"type":"text","value":"One line, said in \"Add to page\": \"A trend or a comparison\".","line":784}]}],"line":784},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"category","line":785}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Category","line":785}]},{"type":"tableCell","children":[]}],"line":785},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"icon","line":786}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":786}]},{"type":"tableCell","children":[{"type":"text","value":"The name of an icon from the kit's set: the names of the platform's widgets, the page icons (","line":786},{"type":"inlineCode","value":"PAGE_ICONS","line":786},{"type":"text","value":" in ","line":786},{"type":"inlineCode","value":"@volvel/ui","line":786},{"type":"text","value":") and ","line":786},{"type":"inlineCode","value":"globe","line":786},{"type":"text","value":", ","line":786},{"type":"inlineCode","value":"radio","line":786},{"type":"text","value":" and ","line":786},{"type":"inlineCode","value":"table-2","line":786},{"type":"text","value":". The builder draws any other name as a puzzle piece.","line":786}]}],"line":786},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"surfaces","line":787}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly Surface[]","line":787}]},{"type":"tableCell","children":[]}],"line":787},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"data","line":788}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, DataInputDeclaration>>","line":788}]},{"type":"tableCell","children":[]}],"line":788},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"dataHints?","line":789}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly DataHints[]","line":789}]},{"type":"tableCell","children":[{"type":"text","value":"The Data tab's controls for each input, in order.","line":789}]}],"line":789},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"config","line":790}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"ConfigSchema","line":790}]},{"type":"tableCell","children":[]}],"line":790},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"words?","line":791}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, string>>","line":791}]},{"type":"tableCell","children":[{"type":"text","value":"What each setting is, by its path in ","line":791},{"type":"inlineCode","value":"config","line":791},{"type":"text","value":" (","line":791},{"type":"inlineCode","value":"columns.*.label","line":791},{"type":"text","value":", with ","line":791},{"type":"inlineCode","value":"*","line":791},{"type":"text","value":" for a place in a list or under any name), where the schema does not say. The documentation draws its page for the widget from this and from the hints, so a setting with neither is a gap there.","line":791}]}],"line":791},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"defaults?","line":792}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, unknown>>","line":792}]},{"type":"tableCell","children":[{"type":"text","value":"What the widget is when it is added, before anyone changes it.","line":792}]}],"line":792},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"initialData?","line":793}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, { source: unknown; }>>","line":793}]},{"type":"tableCell","children":[{"type":"text","value":"The data inputs it is added with, by name, as a page stores them (","line":793},{"type":"inlineCode","value":"{ source: … }","line":793},{"type":"text","value":"), for a widget whose source needs no choosing: Approvals reads the workspace's approvals.","line":793}]}],"line":793},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"events","line":794}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, EventDeclaration>>","line":794}]},{"type":"tableCell","children":[]}],"line":794},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"layout","line":795}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"LayoutDeclaration","line":795}]},{"type":"tableCell","children":[]}],"line":795},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"role?","line":796}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetRole","line":796}]},{"type":"tableCell","children":[{"type":"text","value":"What the platform gives it beyond its data (the ","line":796},{"type":"inlineCode","value":"core","line":796},{"type":"text","value":" pack only): - ","line":796},{"type":"inlineCode","value":"container","line":796},{"type":"text","value":": other widgets of the page are placed in it, on its own grid of twelve columns, one level deep. A container with a ","line":796},{"type":"inlineCode","value":"tabs","line":796},{"type":"text","value":" config holds them by tab. - ","line":796},{"type":"inlineCode","value":"filters","line":796},{"type":"text","value":": its ","line":796},{"type":"inlineCode","value":"config.filters","line":796},{"type":"text","value":" are filters whoever reads the page sets; the page's widgets are narrowed by them. Its view is given ","line":796},{"type":"inlineCode","value":"filters","line":796},{"type":"text","value":".","line":796}]}],"line":796}],"line":779},{"type":"heading","depth":3,"id":"widgetpack","children":[{"type":"text","value":"WidgetPack","line":798}],"line":798},{"type":"paragraph","children":[{"type":"text","value":"A pack as a page renderer takes it: its definitions, and a view for each.","line":800},{"type":"break","hard":false,"line":800},{"type":"inlineCode","value":"View","line":801},{"type":"text","value":" is the renderer's component type (React's, for the platform's own).","line":801}],"line":800},{"type":"code","value":"interface WidgetPack<View = unknown>","lang":"ts","line":803},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":807}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":807}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":807}]}],"line":807},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"definitions","line":809}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"readonly WidgetDefinition[]","line":809}]},{"type":"tableCell","children":[]}],"line":809},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"views","line":810}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, View>>","line":810}]},{"type":"tableCell","children":[]}],"line":810}],"line":807},{"type":"heading","depth":3,"id":"widgetviewprops","children":[{"type":"text","value":"WidgetViewProps","line":812}],"line":812},{"type":"paragraph","children":[{"type":"text","value":"The props of a widget's view.","line":814}],"line":814},{"type":"code","value":"interface WidgetViewProps<Config = Record<string, unknown>>","lang":"ts","line":816},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":820}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":820}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":820}]}],"line":820},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"config","line":822}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Config","line":822}]},{"type":"tableCell","children":[{"type":"text","value":"The widget's configuration, with its definition's defaults filled in.","line":822}]}],"line":822},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"data","line":823}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"Readonly<Record<string, WidgetData>>","line":823}]},{"type":"tableCell","children":[{"type":"text","value":"Each data input, read, by name. An input not yet read is absent.","line":823}]}],"line":823},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"state?","line":824}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"WidgetState","line":824}]},{"type":"tableCell","children":[{"type":"text","value":"For a tenant's widget (","line":824},{"type":"inlineCode","value":"x/...","line":824},{"type":"text","value":"): what the page's read of the data is, so the view can draw its own loading, empty and failed states. Left out: ready. A platform widget is drawn by the frame around it only when ready.","line":824}]}],"line":824},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"size","line":825}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"ViewSize","line":825}]},{"type":"tableCell","children":[]}],"line":825},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"emit","line":826}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(event: string, payload: EventPayload) => void","line":826}]},{"type":"tableCell","children":[{"type":"text","value":"Raises a declared event. The host does what the page says, or nothing.","line":826}]}],"line":826},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"version?","line":827}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":827}]},{"type":"tableCell","children":[{"type":"text","value":"For a tenant's widget (","line":827},{"type":"inlineCode","value":"x/...","line":827},{"type":"text","value":"): the version the page names. A platform widget has none.","line":827}]}],"line":827},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"building","line":828}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":828}]},{"type":"tableCell","children":[{"type":"text","value":"Whether the page is being built. A view may draw hints for the builder, never different data.","line":828}]}],"line":828},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"viewing?","line":829}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"boolean","line":829}]},{"type":"tableCell","children":[{"type":"text","value":"While building, \"View as\" a group: an action the group may run is drawn pressable (it still runs nothing here), and one it may not is grayed with the reason, as it will be served.","line":829}]}],"line":829},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"title?","line":830}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":830}]},{"type":"tableCell","children":[{"type":"text","value":"The widget's title, as the page draws it over the view: what a view names its own parts by (\"Visits\", for a tab strip).","line":830}]}],"line":830},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"act?","line":831}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, given?: { record?: string; /** Several rows chosen in a table or list: the action runs on each of them. */ records?: readonly string[]; inputs?: Readonly<Record<string, unknown>>; }) => Promise<ActOutcome>","line":831}]},{"type":"tableCell","children":[{"type":"text","value":"Runs an action the widget holds, named by where it is: ","line":831},{"type":"inlineCode","value":"on/<event>","line":831},{"type":"text","value":", or a config property the definition marks ","line":831},{"type":"inlineCode","value":"action","line":831},{"type":"text","value":" (","line":831},{"type":"inlineCode","value":"config/<property>","line":831},{"type":"text","value":") or ","line":831},{"type":"inlineCode","value":"actions","line":831},{"type":"text","value":" (","line":831},{"type":"inlineCode","value":"config/<property>/<index>/action","line":831},{"type":"text","value":"). The host asks to confirm, runs it on the server, and does what follows (open a page, say something). A form gives what was typed as ","line":831},{"type":"inlineCode","value":"inputs","line":831},{"type":"text","value":". A table with rows chosen gives their ids as ","line":831},{"type":"inlineCode","value":"records","line":831},{"type":"text","value":". Absent while building, and on a host that runs no actions.","line":831}]}],"line":831},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"decide?","line":832}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(id: string, decision: \"approve\" | \"reject\", comment?: string) => Promise<DecideOutcome>","line":832}]},{"type":"tableCell","children":[{"type":"text","value":"Decides a waiting approval of the widget's data, by the item's ","line":832},{"type":"inlineCode","value":"id","line":832},{"type":"text","value":". The server checks the viewer's own standing and records who decided. Absent while building, and on a host that cannot decide (nothing is then drawn as pressable).","line":832}]}],"line":832},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"refresh?","line":833}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":833}]},{"type":"tableCell","children":[{"type":"text","value":"Reads the widget's data again: when the person comes back from deciding elsewhere.","line":833}]}],"line":833},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"can?","line":834}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, row?: Readonly<Record<string, unknown>>) => boolean","line":834}]},{"type":"tableCell","children":[{"type":"text","value":"Whether an action the widget holds may be pressed now, for a row: its ","line":834},{"type":"inlineCode","value":"when","line":834},{"type":"text","value":", as the host reads it.","line":834}]}],"line":834},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"why?","line":835}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(at: string, row?: Readonly<Record<string, unknown>>) => string | undefined","line":835}]},{"type":"tableCell","children":[{"type":"text","value":"Why an action can't be pressed now, in the reader's words (\"Status is Unpaid\"); nothing when it can.","line":835}]}],"line":835},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"close?","line":836}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"() => void","line":836}]},{"type":"tableCell","children":[{"type":"text","value":"Closes the side sheet or modal the widget is shown in; absent when it is on a page.","line":836}]}],"line":836},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"viewer?","line":837}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ id: string; email?: string; name?: string; }","line":837}]},{"type":"tableCell","children":[{"type":"text","value":"The person looking, where the host knows who: a form starts a field with them.","line":837}]}],"line":837},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"selectedRecord?","line":838}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"string","line":838}]},{"type":"tableCell","children":[{"type":"text","value":"The record whose side sheet or modal is open over the page: a list marks its row.","line":838}]}],"line":838},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"listens?","line":839}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(event: string) => boolean","line":839}]},{"type":"tableCell","children":[{"type":"text","value":"Whether the page does something when this event is raised: then the view draws it as pressable.","line":839}]}],"line":839},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"choices?","line":840}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(input: string, column: string, search: string) => Promise<readonly Choice[]>","line":840}]},{"type":"tableCell","children":[{"type":"text","value":"What a reference or choice column of a data input offers, read for whoever is looking.","line":840}]}],"line":840},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"place?","line":841}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"(tab?: string) => unknown","line":841}]},{"type":"tableCell","children":[{"type":"text","value":"A container's (","line":841},{"type":"inlineCode","value":"role: \"container\"","line":841},{"type":"text","value":"): the host's drawing of the widgets placed in it, on its grid; for a container with tabs, of those in ","line":841},{"type":"inlineCode","value":"tab","line":841},{"type":"text","value":". A view renders what it returns as a child (it is a React node; the contract does not depend on React).","line":841}]}],"line":841},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"tab?","line":842}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"{ open: string | undefined; choose: (tab: string) => void; }","line":842}]},{"type":"tableCell","children":[{"type":"text","value":"The tab of a container with tabs that is open, as the host keeps it (in the address, so a reload and a link keep it), and how to open another.","line":842}]}],"line":842},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"filters?","line":843}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"FilterHost","line":843}]},{"type":"tableCell","children":[{"type":"text","value":"A filter widget's (","line":843},{"type":"inlineCode","value":"role: \"filters\"","line":843},{"type":"text","value":"): what is set now, and how to set it.","line":843}]}],"line":843}],"line":820},{"type":"heading","depth":3,"id":"workspacewidgets","children":[{"type":"text","value":"WorkspaceWidgets","line":845}],"line":845},{"type":"paragraph","children":[{"type":"text","value":"The answer of ","line":847},{"type":"inlineCode","value":"GET /tenants/:t/workspaces/:w/widgets","line":847},{"type":"text","value":".","line":847}],"line":847},{"type":"code","value":"interface WorkspaceWidgets","lang":"ts","line":849},{"type":"table","align":[null,null,null],"children":[{"type":"tableRow","header":true,"children":[{"type":"tableCell","children":[{"type":"text","value":"Member","line":853}]},{"type":"tableCell","children":[{"type":"text","value":"Type","line":853}]},{"type":"tableCell","children":[{"type":"text","value":"What it is","line":853}]}],"line":853},{"type":"tableRow","header":false,"children":[{"type":"tableCell","children":[{"type":"inlineCode","value":"items","line":855}]},{"type":"tableCell","children":[{"type":"inlineCode","value":"DeployedWidget[]","line":855}]},{"type":"tableCell","children":[]}],"line":855}],"line":853},{"type":"heading","depth":2,"id":"types","children":[{"type":"text","value":"Types","line":857}],"line":857},{"type":"heading","depth":3,"id":"actoutcome","children":[{"type":"text","value":"ActOutcome","line":859}],"line":859},{"type":"paragraph","children":[{"type":"text","value":"How running an action went. ","line":861},{"type":"inlineCode","value":"fields","line":861},{"type":"text","value":" says what was wrong with what was typed,","line":861},{"type":"break","hard":false,"line":861},{"type":"text","value":"by field name, for a form to draw beside each field.","line":862}],"line":861},{"type":"code","value":"type ActOutcome = {\n ok: true;\n} | {\n ok: false;\n cancelled: true;\n} | {\n ok: false;\n message: string;\n fields?: Readonly<Record<string, string>>;\n}","lang":"ts","line":864},{"type":"heading","depth":3,"id":"category","children":[{"type":"text","value":"Category","line":877}],"line":877},{"type":"paragraph","children":[{"type":"text","value":"The group a widget is offered under in the editor's list.","line":879}],"line":879},{"type":"code","value":"type Category = (typeof CATEGORIES)[number]","lang":"ts","line":881},{"type":"heading","depth":3,"id":"control","children":[{"type":"text","value":"Control","line":885}],"line":885},{"type":"paragraph","children":[{"type":"text","value":"One of the controls the inspector draws a setting with.","line":887}],"line":887},{"type":"code","value":"type Control = (typeof CONTROLS)[number]","lang":"ts","line":889},{"type":"heading","depth":3,"id":"datashape","children":[{"type":"text","value":"DataShape","line":893}],"line":893},{"type":"paragraph","children":[{"type":"text","value":"The shape of what a widget reads: rows, a summary, one record or approvals.","line":895}],"line":895},{"type":"code","value":"type DataShape = (typeof DATA_SHAPES)[number]","lang":"ts","line":897},{"type":"heading","depth":3,"id":"decideoutcome","children":[{"type":"text","value":"DecideOutcome","line":901}],"line":901},{"type":"paragraph","children":[{"type":"text","value":"How deciding went. A refusal says why in the server's words; a ","line":903},{"type":"inlineCode","value":"conflict","line":903},{"type":"text","value":" is someone else","line":903},{"type":"break","hard":false,"line":903},{"type":"text","value":"having decided it first, and the words say who and what.","line":904}],"line":903},{"type":"code","value":"type DecideOutcome = {\n ok: true;\n message: string;\n} | {\n ok: false;\n conflict: true;\n message: string;\n} | {\n ok: false;\n conflict?: false;\n message: string;\n}","lang":"ts","line":906},{"type":"heading","depth":3,"id":"eventgives","children":[{"type":"text","value":"EventGives","line":921}],"line":921},{"type":"paragraph","children":[{"type":"text","value":"What an event of a widget gives the action attached to it: a record, a group, or nothing.","line":923}],"line":923},{"type":"code","value":"type EventGives = (typeof EVENT_GIVES)[number]","lang":"ts","line":925},{"type":"heading","depth":3,"id":"eventpayload","children":[{"type":"text","value":"EventPayload","line":929}],"line":929},{"type":"paragraph","children":[{"type":"text","value":"What raising an event gives. Checked by the host against the event's declaration.","line":931}],"line":931},{"type":"code","value":"type EventPayload = {\n record: string;\n} | {\n group: Readonly<Record<string, unknown>>;\n} | Record<string, never>","lang":"ts","line":933},{"type":"heading","depth":3,"id":"phonebehaviour","children":[{"type":"text","value":"PhoneBehaviour","line":941}],"line":941},{"type":"paragraph","children":[{"type":"text","value":"What a widget does on a narrow screen: stack, draw as a list, or hide.","line":943}],"line":943},{"type":"code","value":"type PhoneBehaviour = (typeof PHONE_BEHAVIOURS)[number]","lang":"ts","line":945},{"type":"heading","depth":3,"id":"sourcekind","children":[{"type":"text","value":"SourceKind","line":949}],"line":949},{"type":"paragraph","children":[{"type":"text","value":"Where a widget's data may come from: a table, a query, SQL, the workspace's approvals or the instance's figures.","line":951}],"line":951},{"type":"code","value":"type SourceKind = (typeof SOURCE_KINDS)[number]","lang":"ts","line":953},{"type":"heading","depth":3,"id":"surface","children":[{"type":"text","value":"Surface","line":957}],"line":957},{"type":"paragraph","children":[{"type":"text","value":"Where a widget may be put: on an app's page or on a dashboard.","line":959}],"line":959},{"type":"code","value":"type Surface = (typeof SURFACES)[number]","lang":"ts","line":961},{"type":"heading","depth":3,"id":"tab","children":[{"type":"text","value":"Tab","line":965}],"line":965},{"type":"paragraph","children":[{"type":"text","value":"One of the inspector's tabs: data, display, actions or rules.","line":967}],"line":967},{"type":"code","value":"type Tab = (typeof TABS)[number]","lang":"ts","line":969},{"type":"heading","depth":3,"id":"widgetdata","children":[{"type":"text","value":"WidgetData","line":973}],"line":973},{"type":"paragraph","children":[{"type":"text","value":"What a view is given to draw, by the shape its data input declared.","line":975}],"line":975},{"type":"code","value":"type WidgetData = RowsData | SummaryData | RecordData | ApprovalsData","lang":"ts","line":977},{"type":"heading","depth":3,"id":"widgetrole","children":[{"type":"text","value":"WidgetRole","line":981}],"line":981},{"type":"paragraph","children":[{"type":"text","value":"One of ","line":983},{"type":"inlineCode","value":"WIDGET_ROLES","line":983},{"type":"text","value":".","line":983}],"line":983},{"type":"code","value":"type WidgetRole = (typeof WIDGET_ROLES)[number]","lang":"ts","line":985},{"type":"heading","depth":3,"id":"widgetstate","children":[{"type":"text","value":"WidgetState","line":989}],"line":989},{"type":"paragraph","children":[{"type":"text","value":"What the frame around every widget draws for it, the same for every widget:","line":991},{"type":"break","hard":false,"line":991},{"type":"text","value":"the view is only drawn when ","line":992},{"type":"inlineCode","value":"ready","line":992},{"type":"text","value":", and when ","line":992},{"type":"inlineCode","value":"empty","line":992},{"type":"text","value":" it may draw its own","line":992},{"type":"break","hard":false,"line":992},{"type":"text","value":"empty state with ","line":993},{"type":"inlineCode","value":"message","line":993},{"type":"text","value":".","line":993}],"line":991},{"type":"code","value":"type WidgetState = {\n status: \"loading\";\n} | {\n status: \"ready\";\n} | {\n status: \"empty\";\n message: string;\n} | {\n status: \"failed\";\n message: string;\n} | {\n status: \"forbidden\";\n message: string;\n}","lang":"ts","line":995}]},"description":"Everything `@volvel/widgets` exports."}