@protobase/ui 0.117.7 → 0.118.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/messages.d.ts +2 -2
- package/dist/activity-chart/activity-chart.d.ts +3 -1
- package/dist/activity-chart/activity-chart.js +21 -14
- package/dist/activity-chart/messages.d.ts +2 -2
- package/dist/app/app.js +67 -31
- package/dist/app/change-confirm/messages.d.ts +2 -2
- package/dist/app/charts/chart-params.js +1 -1
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/comments/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/thread-state.d.ts +1 -1
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/custom-section.d.ts +1 -1
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/calendar-event.js +1 -1
- package/dist/app/displays/list-cards.d.ts +1 -1
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/displays/use-calendar-move.js +1 -1
- package/dist/app/export/messages.d.ts +2 -2
- package/dist/app/field-messages.d.ts +2 -2
- package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
- package/dist/app/field-types/widget-part.d.ts +1 -1
- package/dist/app/field-types/workflow/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/file-viewers/messages.d.ts +2 -2
- package/dist/app/focus/messages.d.ts +2 -2
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/history/messages.d.ts +2 -2
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/lazy-routes.d.ts +4 -0
- package/dist/app/lazy-routes.js +2 -1
- package/dist/app/list-chart.d.ts +1 -1
- package/dist/app/list-chart.js +6 -4
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/list-page.js +1 -1
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/meta-gate-messages.d.ts +2 -2
- package/dist/app/nav-recent.js +1 -1
- package/dist/app/pages/custom-boundary.d.ts +1 -1
- package/dist/app/pages/custom-chosen.d.ts +1 -1
- package/dist/app/pages/messages.d.ts +2 -2
- package/dist/app/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-mode/shown-layout.d.ts +1 -1
- package/dist/app/record-row/messages.d.ts +2 -2
- package/dist/app/related-cards/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- package/dist/app/saved/saved-list.d.ts +1 -1
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app/searches/update-search-dialog.js +1 -1
- package/dist/app/start-record.d.ts +22 -0
- package/dist/app/start-record.js +33 -0
- package/dist/app/use-nav-recent.d.ts +2 -2
- package/dist/app/use-nav-recent.js +8 -3
- package/dist/app/use-start-address.d.ts +21 -0
- package/dist/app/use-start-address.js +49 -0
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/app-shell/profile-menu.d.ts +2 -0
- package/dist/app-shell/profile-menu.js +1 -1
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/compact-table/messages.d.ts +2 -2
- package/dist/data/aggregate-loader.d.ts +38 -0
- package/dist/data/aggregate-loader.js +68 -0
- package/dist/data/api-provider.d.ts +3 -0
- package/dist/data/query-keys.d.ts +4 -0
- package/dist/data/query-keys.js +11 -0
- package/dist/data/start-cache/restored-state.d.ts +7 -0
- package/dist/data/start-cache/restored-state.js +5 -1
- package/dist/data/use-aggregates.js +7 -6
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/facet-combobox.js +38 -31
- package/dist/filter-panel/facet-group.js +5 -1
- package/dist/filter-panel/filter-config.d.ts +4 -0
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/filter-panel/range-filter.js +4 -0
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/live/messages.d.ts +2 -2
- package/dist/live/use-filter-config.d.ts +3 -2
- package/dist/live/use-filter-config.js +31 -8
- package/dist/locale/en.js +42 -23
- package/dist/locale/en.json.d.ts +19 -0
- package/dist/locale/messages.d.ts +38 -0
- package/dist/locale/nl.js +42 -23
- package/dist/locale/texts-gate.d.ts +1 -1
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/all-organizations.js +5 -3
- package/dist/organizations/first-organization-page.d.ts +21 -0
- package/dist/organizations/first-organization-page.js +125 -0
- package/dist/organizations/invitations-page.js +3 -1
- package/dist/organizations/members-page.js +5 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/organizations/my-invitation-row.d.ts +11 -0
- package/dist/organizations/my-invitation-row.js +34 -0
- package/dist/organizations/new-organization-form.d.ts +10 -0
- package/dist/organizations/new-organization-form.js +76 -0
- package/dist/organizations/organization-page.js +9 -6
- package/dist/organizations/organization-paths.d.ts +7 -2
- package/dist/organizations/organization-paths.js +14 -8
- package/dist/organizations/organization-word.d.ts +14 -0
- package/dist/organizations/organization-word.js +22 -0
- package/dist/organizations/organizations-page.d.ts +0 -2
- package/dist/organizations/organizations-page.js +31 -98
- package/dist/organizations/use-my-invitations.d.ts +17 -0
- package/dist/organizations/use-my-invitations.js +30 -0
- package/dist/organizations/use-organizations.d.ts +4 -0
- package/dist/organizations/use-organizations.js +8 -3
- package/dist/package.js +1 -1
- package/dist/plugins/before-sign-in.d.ts +1 -1
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-B_azef82.js → account-page-D9hXd-u3.js} +2 -2
- package/dist/shell/assets/app-D6luJ1k4.js +34 -0
- package/dist/shell/assets/{app-Dq5eubgK.css → app-xwgcmboV.css} +1 -1
- package/dist/shell/assets/{assistant-shell-BDKCWgs7.js → assistant-shell-DDkCxLNG.js} +2 -2
- package/dist/shell/assets/board-display-plYPsh6z.js +2 -0
- package/dist/shell/assets/calendar-display-B3kFBd2k.js +2 -0
- package/dist/shell/assets/{call-rings-ClQinnwb.js → call-rings-B5rBD5EL.js} +2 -2
- package/dist/shell/assets/{calls-s6XuZsjs.js → calls-z1AEvYOC.js} +2 -2
- package/dist/shell/assets/{circle-alert-CCchwpE2.js → circle-alert-C_1i142n.js} +2 -2
- package/dist/shell/assets/{composed-page-Cj-OwCZB.js → composed-page--UJ8tsC0.js} +2 -2
- package/dist/shell/assets/{composer-section-BWJgscVY.js → composer-section-tfrO2pIi.js} +2 -2
- package/dist/shell/assets/{connect-route-DpM6_5A-.js → connect-route-rVNQDWcE.js} +2 -2
- package/dist/shell/assets/{copy-field-DJZYMDoO.js → copy-field-D9agQmK0.js} +2 -2
- package/dist/shell/assets/create-route-C4xN9aXd.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-B0SWYcOK.js → custom-step-container-field-BanmPoI-.js} +4 -4
- package/dist/shell/assets/embedded-list-B_e_Quer.js +3 -0
- package/dist/shell/assets/en-BrEwbNhJ.js +2 -0
- package/dist/shell/assets/{export-dialog-DOtYGy3R.js → export-dialog-g69vJ8j2.js} +2 -2
- package/dist/shell/assets/export-worker-DuHOhIiP.js +15 -0
- package/dist/shell/assets/first-organization-page-Cijgw9tC.js +2 -0
- package/dist/shell/assets/{graph-view-G-uTEd7F.js → graph-view-DXDcn-Fx.js} +2 -2
- package/dist/shell/assets/{group-donut-C_BThKYK.js → group-donut-B3bCn83A.js} +2 -2
- package/dist/shell/assets/{guest-call-page-CUucHFn7.js → guest-call-page-rAD4EXPd.js} +3 -3
- package/dist/shell/assets/{html-viewer-CxMoymHe.js → html-viewer-BxhCE5h2.js} +2 -2
- package/dist/shell/assets/{import-dialog-DJdNJeuD.js → import-dialog-adjnDUuk.js} +2 -2
- package/dist/shell/assets/import-table-dialog-yV9UTlBY.js +2 -0
- package/dist/shell/assets/{index-BpuPTpcS.js → index-BBHelxJ2.js} +1 -1
- package/dist/shell/assets/invitations-page-FKTUQL8J.js +2 -0
- package/dist/shell/assets/{layout-grid-IQchsfWp.js → layout-grid-B3Php1Rf.js} +2 -2
- package/dist/shell/assets/{legend-item-BlI2FIuO.js → legend-item-BbV6BD6w.js} +2 -2
- package/dist/shell/assets/list-page-CNhV2TuF.js +4 -0
- package/dist/shell/assets/{maplibre-BNosce4R.js → maplibre-D4xk_BLC.js} +2 -2
- package/dist/shell/assets/{markdown-content-C_-l2O5-.js → markdown-content-CnNrPGcY.js} +2 -2
- package/dist/shell/assets/members-page-CnxFoeyp.js +2 -0
- package/dist/shell/assets/{messages-DAlS_OLf.js → messages-BHPGrBhJ.js} +2 -2
- package/dist/shell/assets/nl-Dto12ewP.js +2 -0
- package/dist/shell/assets/organization-page-B6k9pMkb.js +2 -0
- package/dist/shell/assets/organizations-page-D33Ruydz.js +2 -0
- package/dist/shell/assets/parse-worker-BRxyLV_D.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-nDslRIg_.js → pending-invitation-row-D_vU7ynw.js} +2 -2
- package/dist/shell/assets/{period-chart-Dbykq15D.js → period-chart-DPlEbvX7.js} +2 -2
- package/dist/shell/assets/{person-row-RUXD4Z6I.js → person-row-DMY-aQjx.js} +2 -2
- package/dist/shell/assets/public-form-page-DTgXLDpt.js +2 -0
- package/dist/shell/assets/record-lines-SeXhFNSm.js +2 -0
- package/dist/shell/assets/{record-map-SrorcD8G.js → record-map-BiLFEqYi.js} +2 -2
- package/dist/shell/assets/{record-opens-BkQP4ve9.js → record-opens-Ct9iF9FZ.js} +2 -2
- package/dist/shell/assets/record-page-TxDSHcMe.js +3 -0
- package/dist/shell/assets/{record-preview-C8xkvcPt.js → record-preview-J1o4Sqs-.js} +2 -2
- package/dist/shell/assets/{records-map-DgQ3MJFS.js → records-map-Cwdig5mb.js} +2 -2
- package/dist/shell/assets/render-node-BpHo-wre.js +3 -0
- package/dist/shell/assets/reorder-button-CBOmzmhg.js +2 -0
- package/dist/shell/assets/{run-trace-view-C2MAxHm8.js → run-trace-view-1fk6kU1U.js} +2 -2
- package/dist/shell/assets/{runner-install-field-BYzWk3Ye.js → runner-install-field-C_hTvogl.js} +2 -2
- package/dist/shell/assets/{runtime-update-CVNAIIII.js → runtime-update-8hRmQkq-.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-Tq2sgl9G.js +1 -0
- package/dist/shell/assets/{sheet-source-BNfkNzNO.js → sheet-source-CD5hImgE.js} +3 -3
- package/dist/shell/assets/sign-in-policy-page-BQ8ck7Ar.js +2 -0
- package/dist/shell/assets/start-block-queries-4uvupY9E.js +2 -0
- package/dist/shell/assets/step-catalog-B2eQNTOp.js +2 -0
- package/dist/shell/assets/{step-panel-DDSMdJhn.js → step-panel-BVdV2FNT.js} +2 -2
- package/dist/shell/assets/timeline-display-BxihBkFH.js +2 -0
- package/dist/shell/assets/{trash-Du1HjUvA.js → trash-5PpoeP3R.js} +2 -2
- package/dist/shell/assets/{update-set-BQN3GDI3.js → update-set-BnRA9YhA.js} +2 -2
- package/dist/shell/assets/use-calendar-move-Bu9MSBcs.js +2 -0
- package/dist/shell/assets/{use-display-rows-BWZ3ByZb.js → use-display-rows-ERQ-vbki.js} +2 -2
- package/dist/shell/assets/use-my-invitations-CnAvjXV0.js +2 -0
- package/dist/shell/assets/{use-paged-search-DvGQocxR.js → use-paged-search-CcEitpWG.js} +2 -2
- package/dist/shell/assets/{use-run-trace-CNqw_HuX.js → use-run-trace-CV461SQS.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-jjK3t-vf.js → use-workflow-page-peSmP1Jq.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-CxeOmx1U.js → use-workflow-types-xM8CZO96.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-BgC2BoRd.js → workflow-canvas-CkKd9u0-.js} +4 -4
- package/dist/shell/assets/{workflow-field-DAk0UqrK.js → workflow-field-WovRhNaT.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-0KyZBj6R.js → workflow-graph-editor-DRZ2UtBp.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-rlISvE35.js → workflow-run-field-CrBAVhOq.js} +3 -3
- package/dist/shell/assets/workflow-status-field-DgjtbjlH.js +2 -0
- package/dist/shell/assets/workflow-workbench-D8vU7ifz.js +4 -0
- package/dist/shell/index.html +4 -4
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-B_azef82.js.map → account-page-D9hXd-u3.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-D6luJ1k4.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-BDKCWgs7.js.map → assistant-shell-DDkCxLNG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-RfXJJ01f.js.map → board-display-plYPsh6z.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-CWANjACC.js.map → calendar-display-B3kFBd2k.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-ClQinnwb.js.map → call-rings-B5rBD5EL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-s6XuZsjs.js.map → calls-z1AEvYOC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-CCchwpE2.js.map → circle-alert-C_1i142n.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-Cj-OwCZB.js.map → composed-page--UJ8tsC0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-BWJgscVY.js.map → composer-section-tfrO2pIi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-DpM6_5A-.js.map → connect-route-rVNQDWcE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-DJZYMDoO.js.map → copy-field-D9agQmK0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-CQeYkXaB.js.map → create-route-C4xN9aXd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-B0SWYcOK.js.map → custom-step-container-field-BanmPoI-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-CQ7VmI-J.js.map → embedded-list-B_e_Quer.js.map} +1 -1
- package/dist/shell-source-maps/assets/en-BrEwbNhJ.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-DOtYGy3R.js.map → export-dialog-g69vJ8j2.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-DuHOhIiP.js.map +1 -0
- package/dist/shell-source-maps/assets/first-organization-page-Cijgw9tC.js.map +1 -0
- package/dist/shell-source-maps/assets/{graph-view-G-uTEd7F.js.map → graph-view-DXDcn-Fx.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-C_BThKYK.js.map → group-donut-B3bCn83A.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-CUucHFn7.js.map → guest-call-page-rAD4EXPd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-CxMoymHe.js.map → html-viewer-BxhCE5h2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-DJdNJeuD.js.map → import-dialog-adjnDUuk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-vxHtntUq.js.map → import-table-dialog-yV9UTlBY.js.map} +1 -1
- package/dist/shell-source-maps/assets/invitations-page-FKTUQL8J.js.map +1 -0
- package/dist/shell-source-maps/assets/{layout-grid-IQchsfWp.js.map → layout-grid-B3Php1Rf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-BlI2FIuO.js.map → legend-item-BbV6BD6w.js.map} +1 -1
- package/dist/shell-source-maps/assets/list-page-CNhV2TuF.js.map +1 -0
- package/dist/shell-source-maps/assets/{maplibre-BNosce4R.js.map → maplibre-D4xk_BLC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-C_-l2O5-.js.map → markdown-content-CnNrPGcY.js.map} +1 -1
- package/dist/shell-source-maps/assets/members-page-CnxFoeyp.js.map +1 -0
- package/dist/shell-source-maps/assets/{messages-DAlS_OLf.js.map → messages-BHPGrBhJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-Dto12ewP.js.map +1 -0
- package/dist/shell-source-maps/assets/organization-page-B6k9pMkb.js.map +1 -0
- package/dist/shell-source-maps/assets/organizations-page-D33Ruydz.js.map +1 -0
- package/dist/shell-source-maps/assets/parse-worker-BRxyLV_D.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-nDslRIg_.js.map → pending-invitation-row-D_vU7ynw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-Dbykq15D.js.map → period-chart-DPlEbvX7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-RUXD4Z6I.js.map → person-row-DMY-aQjx.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-CI1ghnwR.js.map → public-form-page-DTgXLDpt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-sVjQkysF.js.map → record-lines-SeXhFNSm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-SrorcD8G.js.map → record-map-BiLFEqYi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-BkQP4ve9.js.map → record-opens-Ct9iF9FZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-CA2bmhxx.js.map → record-page-TxDSHcMe.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-C8xkvcPt.js.map → record-preview-J1o4Sqs-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-DgQ3MJFS.js.map → records-map-Cwdig5mb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-eKuGRuq5.js.map → render-node-BpHo-wre.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-DFrAk-Xc.js.map → reorder-button-CBOmzmhg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-C2MAxHm8.js.map → run-trace-view-1fk6kU1U.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-BYzWk3Ye.js.map → runner-install-field-C_hTvogl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-CVNAIIII.js.map → runtime-update-8hRmQkq-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-BNfkNzNO.js.map → sheet-source-CD5hImgE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-DqH94QZl.js.map → sign-in-policy-page-BQ8ck7Ar.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-CAEd4yVp.js.map → start-block-queries-4uvupY9E.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-wasAn9L1.js.map → step-catalog-B2eQNTOp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-DDSMdJhn.js.map → step-panel-BVdV2FNT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-CLcdY1TN.js.map → timeline-display-BxihBkFH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-Du1HjUvA.js.map → trash-5PpoeP3R.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-BQN3GDI3.js.map → update-set-BnRA9YhA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-C8LZwkOo.js.map → use-calendar-move-Bu9MSBcs.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-BWZ3ByZb.js.map → use-display-rows-ERQ-vbki.js.map} +1 -1
- package/dist/shell-source-maps/assets/use-my-invitations-CnAvjXV0.js.map +1 -0
- package/dist/shell-source-maps/assets/{use-paged-search-DvGQocxR.js.map → use-paged-search-CcEitpWG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-CNqw_HuX.js.map → use-run-trace-CV461SQS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-jjK3t-vf.js.map → use-workflow-page-peSmP1Jq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-CxeOmx1U.js.map → use-workflow-types-xM8CZO96.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-BgC2BoRd.js.map → workflow-canvas-CkKd9u0-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-DAk0UqrK.js.map → workflow-field-WovRhNaT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-0KyZBj6R.js.map → workflow-graph-editor-DRZ2UtBp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-rlISvE35.js.map → workflow-run-field-CrBAVhOq.js.map} +1 -1
- package/dist/shell-source-maps/assets/workflow-status-field-DgjtbjlH.js.map +1 -0
- package/dist/shell-source-maps/assets/{workflow-workbench-CYjY4iZy.js.map → workflow-workbench-D8vU7ifz.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/app-1j5nx8lw.js +0 -34
- package/dist/shell/assets/board-display-RfXJJ01f.js +0 -2
- package/dist/shell/assets/calendar-display-CWANjACC.js +0 -2
- package/dist/shell/assets/create-route-CQeYkXaB.js +0 -2
- package/dist/shell/assets/embedded-list-CQ7VmI-J.js +0 -3
- package/dist/shell/assets/en-Dm9QE1tF.js +0 -2
- package/dist/shell/assets/export-worker-CHLq663S.js +0 -15
- package/dist/shell/assets/import-table-dialog-vxHtntUq.js +0 -2
- package/dist/shell/assets/invitations-page-a0oQdGxB.js +0 -2
- package/dist/shell/assets/list-page-BXVd_Eq3.js +0 -4
- package/dist/shell/assets/members-page-Bm3GFEhM.js +0 -2
- package/dist/shell/assets/nl-Cyam8kgY.js +0 -2
- package/dist/shell/assets/organization-page-BbzBkLeU.js +0 -2
- package/dist/shell/assets/organizations-page-BkarXyu5.js +0 -2
- package/dist/shell/assets/parse-worker-DI-FeZWV.js +0 -35
- package/dist/shell/assets/public-form-page-CI1ghnwR.js +0 -2
- package/dist/shell/assets/record-lines-sVjQkysF.js +0 -2
- package/dist/shell/assets/record-page-CA2bmhxx.js +0 -3
- package/dist/shell/assets/render-node-eKuGRuq5.js +0 -3
- package/dist/shell/assets/reorder-button-DFrAk-Xc.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-C_Oyn30V.js +0 -1
- package/dist/shell/assets/sign-in-policy-page-DqH94QZl.js +0 -2
- package/dist/shell/assets/start-block-queries-CAEd4yVp.js +0 -2
- package/dist/shell/assets/step-catalog-wasAn9L1.js +0 -2
- package/dist/shell/assets/timeline-display-CLcdY1TN.js +0 -2
- package/dist/shell/assets/use-calendar-move-C8LZwkOo.js +0 -2
- package/dist/shell/assets/workflow-status-field-jZ1pLRdt.js +0 -2
- package/dist/shell/assets/workflow-workbench-CYjY4iZy.js +0 -4
- package/dist/shell-source-maps/assets/app-1j5nx8lw.js.map +0 -1
- package/dist/shell-source-maps/assets/en-Dm9QE1tF.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-CHLq663S.js.map +0 -1
- package/dist/shell-source-maps/assets/invitations-page-a0oQdGxB.js.map +0 -1
- package/dist/shell-source-maps/assets/list-page-BXVd_Eq3.js.map +0 -1
- package/dist/shell-source-maps/assets/members-page-Bm3GFEhM.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-Cyam8kgY.js.map +0 -1
- package/dist/shell-source-maps/assets/organization-page-BbzBkLeU.js.map +0 -1
- package/dist/shell-source-maps/assets/organizations-page-BkarXyu5.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-DI-FeZWV.js.map +0 -1
- package/dist/shell-source-maps/assets/workflow-status-field-jZ1pLRdt.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { navFromMeta } from "./nav-from-meta.js";
|
|
2
|
+
import { recordKey } from "../live/model-helpers.js";
|
|
3
|
+
import { defaultOrderBy } from "./list-order.js";
|
|
4
|
+
import { encodeKey } from "@protobase/schema/internal";
|
|
5
|
+
//#region src/app/start-record.ts
|
|
6
|
+
/**
|
|
7
|
+
* The sidebar entry whose view names the record the app opens at `/` (`nav.start`): the first in the sidebar's order
|
|
8
|
+
* that the caller sees, so that the start follows what their roles show. None when no entry names one.
|
|
9
|
+
*/
|
|
10
|
+
const startEntry = (meta) => {
|
|
11
|
+
for (const item of navFromMeta(meta).flatMap((group) => group.items)) {
|
|
12
|
+
const start = item.problem ? void 0 : meta.views[item.id]?.nav?.start;
|
|
13
|
+
const model = meta.resources[item.id];
|
|
14
|
+
if (start && model) return {
|
|
15
|
+
model,
|
|
16
|
+
start
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/** The list request that finds the start record: its filter, the order given or the list's sort, one row, its key alone. */
|
|
21
|
+
const startRequest = ({ model, start }, meta) => ({
|
|
22
|
+
filter: start.filter,
|
|
23
|
+
orderBy: start.orderBy ?? defaultOrderBy(model, meta.views[model.name]),
|
|
24
|
+
pageSize: 1,
|
|
25
|
+
fields: [...model.primaryKey]
|
|
26
|
+
});
|
|
27
|
+
/** The address key of the row the request found, or none when nothing matched. */
|
|
28
|
+
const startKey = (model, rows) => {
|
|
29
|
+
const row = rows[0];
|
|
30
|
+
return row && encodeKey(recordKey(model, row));
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { startEntry, startKey, startRequest };
|
|
@@ -6,10 +6,10 @@ import { MetaData } from "../data/meta-data.js";
|
|
|
6
6
|
* The records of every sidebar group (`nav.recent`), one list request each, under the `list` query key so that any
|
|
7
7
|
* write to the resource refreshes them, as does reading one of their records anew. The server applies the caller's
|
|
8
8
|
* access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, its
|
|
9
|
-
* marks' people given their presence and status.
|
|
9
|
+
* marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
|
|
10
10
|
*/
|
|
11
11
|
export declare const useNavRecent: (meta: MetaData, basePath: string, active: {
|
|
12
12
|
resource?: string;
|
|
13
13
|
key?: string;
|
|
14
|
-
}) => Record<string, NavRecent>;
|
|
14
|
+
}, enabled?: boolean) => Record<string, NavRecent>;
|
|
15
15
|
//#endregion
|
|
@@ -37,13 +37,14 @@ const useFollowRecords = (groups) => {
|
|
|
37
37
|
* The records of every sidebar group (`nav.recent`), one list request each, under the `list` query key so that any
|
|
38
38
|
* write to the resource refreshes them, as does reading one of their records anew. The server applies the caller's
|
|
39
39
|
* access, as on the list page. A group that names `marks` gets the project UI's hook, which the sidebar calls, its
|
|
40
|
-
* marks' people given their presence and status.
|
|
40
|
+
* marks' people given their presence and status. With `enabled` false, such as outside any organization, there are none.
|
|
41
41
|
*/
|
|
42
|
-
const useNavRecent = (meta, basePath, active) => {
|
|
42
|
+
const useNavRecent = (meta, basePath, active, enabled = true) => {
|
|
43
43
|
const client = useClient();
|
|
44
44
|
const titleOf = useRecordTitle();
|
|
45
45
|
const { marks } = useProjectUi();
|
|
46
46
|
const groups = useMemo(() => {
|
|
47
|
+
if (!enabled) return [];
|
|
47
48
|
const inMenu = userMenuResources(meta);
|
|
48
49
|
return Object.values(meta.views).flatMap((view) => {
|
|
49
50
|
const model = meta.resources[view.resource];
|
|
@@ -56,7 +57,11 @@ const useNavRecent = (meta, basePath, active) => {
|
|
|
56
57
|
useMarks: withPeople(recentMarks(model.name, recent, marks))
|
|
57
58
|
}] : [];
|
|
58
59
|
});
|
|
59
|
-
}, [
|
|
60
|
+
}, [
|
|
61
|
+
meta,
|
|
62
|
+
marks,
|
|
63
|
+
enabled
|
|
64
|
+
]);
|
|
60
65
|
useFollowRecords(groups);
|
|
61
66
|
const results = useQueries({ queries: groups.map((group) => ({
|
|
62
67
|
queryKey: groupKey(group),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MetaData } from "../data/meta-data.js";
|
|
2
|
+
import { AppAddress } from "@protobase/schema";
|
|
3
|
+
//#region src/app/use-start-address.d.ts
|
|
4
|
+
export type StartTarget = {
|
|
5
|
+
state: 'resolving';
|
|
6
|
+
} | {
|
|
7
|
+
state: 'ready';
|
|
8
|
+
address?: AppAddress;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* What `/` opens: the record the first sidebar entry with `nav.start` finds, read with the caller's access, else the
|
|
12
|
+
* first sidebar entry (`startAddress`). `resolving` while the lookup runs, so `/` draws nothing rather than a list it
|
|
13
|
+
* then leaves; `enabled` false, such as outside any organization, looks nothing up. A lookup the server refuses opens
|
|
14
|
+
* the first entry, as one that finds nothing does, and so does a lookup whose last fetch failed, rather than a record
|
|
15
|
+
* found before. The answer is a query, so the start cache has it on the next start.
|
|
16
|
+
*
|
|
17
|
+
* `organization` is the one the record is looked up in, `''` in an app without organizations: `undefined` while it is
|
|
18
|
+
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useStartAddress: (meta: MetaData, enabled: boolean, organization: string | null | undefined) => StartTarget;
|
|
21
|
+
//#endregion
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { keys } from "../data/query-keys.js";
|
|
2
|
+
import { lastFetchFailed } from "../data/start-cache/restored-state.js";
|
|
3
|
+
import { useClient } from "../data/api-provider.js";
|
|
4
|
+
import { startAddress } from "./start-address.js";
|
|
5
|
+
import { startEntry, startKey, startRequest } from "./start-record.js";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { useQuery } from "@tanstack/react-query";
|
|
8
|
+
//#region src/app/use-start-address.ts
|
|
9
|
+
/**
|
|
10
|
+
* What `/` opens: the record the first sidebar entry with `nav.start` finds, read with the caller's access, else the
|
|
11
|
+
* first sidebar entry (`startAddress`). `resolving` while the lookup runs, so `/` draws nothing rather than a list it
|
|
12
|
+
* then leaves; `enabled` false, such as outside any organization, looks nothing up. A lookup the server refuses opens
|
|
13
|
+
* the first entry, as one that finds nothing does, and so does a lookup whose last fetch failed, rather than a record
|
|
14
|
+
* found before. The answer is a query, so the start cache has it on the next start.
|
|
15
|
+
*
|
|
16
|
+
* `organization` is the one the record is looked up in, `''` in an app without organizations: `undefined` while it is
|
|
17
|
+
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry.
|
|
18
|
+
*/
|
|
19
|
+
const useStartAddress = (meta, enabled, organization) => {
|
|
20
|
+
const client = useClient();
|
|
21
|
+
const entry = useMemo(() => startEntry(meta), [meta]);
|
|
22
|
+
const fallback = useMemo(() => startAddress(meta), [meta]);
|
|
23
|
+
const request = entry && startRequest(entry, meta);
|
|
24
|
+
const query = useQuery({
|
|
25
|
+
queryKey: keys.startRecord(entry?.model.name ?? "", request?.filter ?? "", request?.orderBy ?? "", organization ?? ""),
|
|
26
|
+
queryFn: () => client.list(entry.model.name, request),
|
|
27
|
+
enabled: enabled && Boolean(entry) && typeof organization === "string",
|
|
28
|
+
retry: false
|
|
29
|
+
});
|
|
30
|
+
const opensFallback = {
|
|
31
|
+
state: "ready",
|
|
32
|
+
...fallback && { address: fallback }
|
|
33
|
+
};
|
|
34
|
+
if (!entry || organization === null) return opensFallback;
|
|
35
|
+
if (organization === void 0 || query.isPending) return enabled ? { state: "resolving" } : opensFallback;
|
|
36
|
+
if (lastFetchFailed(query)) return opensFallback;
|
|
37
|
+
const key = query.data && startKey(entry.model, query.data.items);
|
|
38
|
+
if (key !== void 0) return {
|
|
39
|
+
state: "ready",
|
|
40
|
+
address: {
|
|
41
|
+
kind: "record",
|
|
42
|
+
resource: entry.model.name,
|
|
43
|
+
key
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return opensFallback;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { useStartAddress };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app-shell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "organizations" | "roles" | "loading" | "signIn" | "signOut" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "organizations" | "roles" | "loading" | "signIn" | "signOut" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -22,6 +22,8 @@ export type ProfileMenuItem = {
|
|
|
22
22
|
};
|
|
23
23
|
/** The organizations to switch between: the one worked in, and the person's others. */
|
|
24
24
|
export type ProfileOrganizations = {
|
|
25
|
+
/** The switcher's heading, such as the app's own word for its organizations; "Organizations" by default. */
|
|
26
|
+
label?: string;
|
|
25
27
|
current?: {
|
|
26
28
|
id: string;
|
|
27
29
|
name: string;
|
|
@@ -98,7 +98,7 @@ const ProfileMenu = ({ user, compact, open: controlled, items = [], account, onN
|
|
|
98
98
|
})
|
|
99
99
|
}),
|
|
100
100
|
organizations && (organizations.current || organizations.others.length > 0) && /* @__PURE__ */ jsx(SwitchGroup, {
|
|
101
|
-
label: text("organizations"),
|
|
101
|
+
label: organizations.label ?? text("organizations"),
|
|
102
102
|
...organizations.current && { current: {
|
|
103
103
|
id: organizations.current.id,
|
|
104
104
|
label: organizations.current.name
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/assistant-dock/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "reconnecting" | "
|
|
5
|
-
rich(id: "reconnecting" | "
|
|
4
|
+
(id: "reconnecting" | "noAnswer" | "askQuestion" | "assistant" | "empty" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "reconnecting" | "noAnswer" | "askQuestion" | "assistant" | "empty" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/auth/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/auth/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "or" | "yourName" | "continue" | "loading" | "cannotReach" | "tryAgain" | "passwordChanged" | "noAnswer" | "code" | "backupCode" | "email" | "password" | "passwordOptional" | "signIn" | "signOut" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "reload" | "tooManyRequests" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "newPassword" | "repeatPassword" | "setPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "verify" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode" | "admin", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "or" | "yourName" | "continue" | "loading" | "cannotReach" | "tryAgain" | "passwordChanged" | "noAnswer" | "code" | "backupCode" | "email" | "password" | "passwordOptional" | "signIn" | "signOut" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "reload" | "tooManyRequests" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "newPassword" | "repeatPassword" | "setPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "verify" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode" | "admin", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/calls/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/calls/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "join" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "join" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/compact-table/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "table" | "rows" | "noRows" | "cutOff", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "table" | "rows" | "noRows" | "cutOff", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AggregateBatch, Client, Facet, Histogram, Series } from "@protobase/client";
|
|
2
|
+
//#region src/data/aggregate-loader.d.ts
|
|
3
|
+
type Batch = Required<AggregateBatch>;
|
|
4
|
+
/** The most reads of one kind a `:batchAggregates` request takes; a page that starts more sends another. */
|
|
5
|
+
export declare const batchReads = 100;
|
|
6
|
+
/**
|
|
7
|
+
* Gathers the facet, histogram and series reads started in the same task into one `client.batchAggregates` request per
|
|
8
|
+
* resource, so a list page's filters and chart cost one request, and the reads that share a filter one set of scans,
|
|
9
|
+
* rather than one request and one scan each. Each read resolves with its own answer; when the request fails, every read
|
|
10
|
+
* in it rejects with its error.
|
|
11
|
+
*/
|
|
12
|
+
export declare const aggregateLoader: (client: Client) => {
|
|
13
|
+
facets: (resource: string, field: string, options?: {
|
|
14
|
+
filter?: string;
|
|
15
|
+
limit?: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
}) => Promise<Facet[]>;
|
|
18
|
+
histogram: (resource: string, field: string, options?: {
|
|
19
|
+
filter?: string;
|
|
20
|
+
buckets?: number;
|
|
21
|
+
}) => Promise<Histogram>;
|
|
22
|
+
series: (resource: string, params: Batch["series"][number]) => Promise<Series>;
|
|
23
|
+
};
|
|
24
|
+
export type AggregateLoader = ReturnType<typeof aggregateLoader>;
|
|
25
|
+
/** The loader that batches `client`'s aggregate reads. */
|
|
26
|
+
export declare const loaderOf: (client: Client) => {
|
|
27
|
+
facets: (resource: string, field: string, options?: {
|
|
28
|
+
filter?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
label?: string;
|
|
31
|
+
}) => Promise<Facet[]>;
|
|
32
|
+
histogram: (resource: string, field: string, options?: {
|
|
33
|
+
filter?: string;
|
|
34
|
+
buckets?: number;
|
|
35
|
+
}) => Promise<Histogram>;
|
|
36
|
+
series: (resource: string, params: Batch["series"][number]) => Promise<Series>;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/data/aggregate-loader.ts
|
|
2
|
+
/** The most reads of one kind a `:batchAggregates` request takes; a page that starts more sends another. */
|
|
3
|
+
const batchReads = 100;
|
|
4
|
+
/**
|
|
5
|
+
* Gathers the facet, histogram and series reads started in the same task into one `client.batchAggregates` request per
|
|
6
|
+
* resource, so a list page's filters and chart cost one request, and the reads that share a filter one set of scans,
|
|
7
|
+
* rather than one request and one scan each. Each read resolves with its own answer; when the request fails, every read
|
|
8
|
+
* in it rejects with its error.
|
|
9
|
+
*/
|
|
10
|
+
const aggregateLoader = (client) => {
|
|
11
|
+
const open = /* @__PURE__ */ new Map();
|
|
12
|
+
const send = async (resource, { batch, waiting }) => {
|
|
13
|
+
const settled = await client.batchAggregates(resource, batch).then((result) => ({ result }), (error) => ({ error }));
|
|
14
|
+
for (const read of waiting) if ("error" in settled) read.reject(settled.error);
|
|
15
|
+
else read.resolve(settled.result[read.kind][read.index]);
|
|
16
|
+
};
|
|
17
|
+
const close = (resource, closing) => {
|
|
18
|
+
if (open.get(resource) !== closing) return;
|
|
19
|
+
open.delete(resource);
|
|
20
|
+
send(resource, closing);
|
|
21
|
+
};
|
|
22
|
+
const read = (resource, kind, request) => new Promise((resolve, reject) => {
|
|
23
|
+
const known = open.get(resource);
|
|
24
|
+
if (known && known.batch[kind].length >= 100) close(resource, known);
|
|
25
|
+
const current = open.get(resource) ?? {
|
|
26
|
+
batch: {
|
|
27
|
+
facets: [],
|
|
28
|
+
histograms: [],
|
|
29
|
+
series: []
|
|
30
|
+
},
|
|
31
|
+
waiting: []
|
|
32
|
+
};
|
|
33
|
+
if (!open.has(resource)) {
|
|
34
|
+
open.set(resource, current);
|
|
35
|
+
setTimeout(() => close(resource, current), 0);
|
|
36
|
+
}
|
|
37
|
+
const list = current.batch[kind];
|
|
38
|
+
list.push(request);
|
|
39
|
+
current.waiting.push({
|
|
40
|
+
kind,
|
|
41
|
+
index: list.length - 1,
|
|
42
|
+
resolve,
|
|
43
|
+
reject
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
facets: (resource, field, options = {}) => read(resource, "facets", {
|
|
48
|
+
field,
|
|
49
|
+
...options
|
|
50
|
+
}),
|
|
51
|
+
histogram: (resource, field, options = {}) => read(resource, "histograms", {
|
|
52
|
+
field,
|
|
53
|
+
...options
|
|
54
|
+
}),
|
|
55
|
+
series: (resource, params) => read(resource, "series", params)
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const loaders = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
/** The loader that batches `client`'s aggregate reads. */
|
|
60
|
+
const loaderOf = (client) => {
|
|
61
|
+
const known = loaders.get(client);
|
|
62
|
+
if (known) return known;
|
|
63
|
+
const made = aggregateLoader(client);
|
|
64
|
+
loaders.set(client, made);
|
|
65
|
+
return made;
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { aggregateLoader, batchReads, loaderOf };
|
|
@@ -45,6 +45,7 @@ export declare const useClient: () => {
|
|
|
45
45
|
filter?: import("@protobase/client").FilterInput;
|
|
46
46
|
buckets?: number;
|
|
47
47
|
}) => Promise<import("@protobase/client").Histogram>;
|
|
48
|
+
batchAggregates: (resource: import("@protobase/client").ResourceRef, batch: import("@protobase/client").AggregateBatch) => Promise<import("@protobase/client").AggregateBatchResult>;
|
|
48
49
|
map: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").MapParams) => Promise<import("@protobase/client").MapResult<import("@protobase/client").RecordOf<R>>>;
|
|
49
50
|
seek: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").ListParams & {
|
|
50
51
|
position: number;
|
|
@@ -144,6 +145,7 @@ export declare const useResourceClient: (resource: string) => {
|
|
|
144
145
|
filter?: import("@protobase/client").FilterInput;
|
|
145
146
|
buckets?: number;
|
|
146
147
|
}) => Promise<import("@protobase/client").Histogram>;
|
|
148
|
+
batchAggregates: (resource: import("@protobase/client").ResourceRef, batch: import("@protobase/client").AggregateBatch) => Promise<import("@protobase/client").AggregateBatchResult>;
|
|
147
149
|
map: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").MapParams) => Promise<import("@protobase/client").MapResult<import("@protobase/client").RecordOf<R>>>;
|
|
148
150
|
seek: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").ListParams & {
|
|
149
151
|
position: number;
|
|
@@ -240,6 +242,7 @@ export declare const useResourceClients: () => (resource: string) => {
|
|
|
240
242
|
filter?: import("@protobase/client").FilterInput;
|
|
241
243
|
buckets?: number;
|
|
242
244
|
}) => Promise<import("@protobase/client").Histogram>;
|
|
245
|
+
batchAggregates: (resource: import("@protobase/client").ResourceRef, batch: import("@protobase/client").AggregateBatch) => Promise<import("@protobase/client").AggregateBatchResult>;
|
|
243
246
|
map: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").MapParams) => Promise<import("@protobase/client").MapResult<import("@protobase/client").RecordOf<R>>>;
|
|
244
247
|
seek: <R extends import("@protobase/client").ResourceRef>(resource: R, params: import("@protobase/client").ListParams & {
|
|
245
248
|
position: number;
|
|
@@ -8,6 +8,8 @@ export declare const keys: {
|
|
|
8
8
|
organizations: readonly ["session", "organizations"];
|
|
9
9
|
/** The members of the organization `id`, with their roles, for its members page. */
|
|
10
10
|
organizationMembers: (id: string) => readonly ["session", "members", string];
|
|
11
|
+
/** The invitations for the signed-in person's own address. */
|
|
12
|
+
myInvitations: readonly ["session", "my-invitations"];
|
|
11
13
|
/** A source's `/meta`, as far as the app draws it: its URL, and the resources the app lists for it. */
|
|
12
14
|
sourceMeta: (url: string, resources: readonly string[]) => readonly ["source-meta", string, string];
|
|
13
15
|
/** Every `/meta` query of the source at `url`. */
|
|
@@ -18,6 +20,8 @@ export declare const keys: {
|
|
|
18
20
|
pages: (resource: string, filter: string, orderBy: string) => readonly ["page", string, string, string];
|
|
19
21
|
/** A sidebar group's records; starts with `list`, so invalidating a resource's lists refreshes it too. */
|
|
20
22
|
navRecent: (resource: string, filter: string, orderBy: string, pageSize: number) => readonly ["list", string, string, string, number, "nav-recent"];
|
|
23
|
+
/** The record the app opens at `/` in `organization` (`''` without), found by its sidebar entry's `nav.start` (`useStartAddress`). */
|
|
24
|
+
startRecord: (resource: string, filter: string, orderBy: string, organization: string) => readonly ["list", string, string, string, "start-record", string];
|
|
21
25
|
first: (resource: string, filter: string, orderBy: string) => readonly ["first-page", string, string, string];
|
|
22
26
|
record: (resource: string, key: string) => readonly ["record", string, string];
|
|
23
27
|
/** The picture an API function draws for an `Image` block, at a size and theme. */
|
package/dist/data/query-keys.js
CHANGED
|
@@ -11,6 +11,8 @@ const keys = {
|
|
|
11
11
|
"members",
|
|
12
12
|
id
|
|
13
13
|
],
|
|
14
|
+
/** The invitations for the signed-in person's own address. */
|
|
15
|
+
myInvitations: ["session", "my-invitations"],
|
|
14
16
|
/** A source's `/meta`, as far as the app draws it: its URL, and the resources the app lists for it. */
|
|
15
17
|
sourceMeta: (url, resources) => [
|
|
16
18
|
"source-meta",
|
|
@@ -51,6 +53,15 @@ const keys = {
|
|
|
51
53
|
pageSize,
|
|
52
54
|
"nav-recent"
|
|
53
55
|
],
|
|
56
|
+
/** The record the app opens at `/` in `organization` (`''` without), found by its sidebar entry's `nav.start` (`useStartAddress`). */
|
|
57
|
+
startRecord: (resource, filter, orderBy, organization) => [
|
|
58
|
+
"list",
|
|
59
|
+
resource,
|
|
60
|
+
filter,
|
|
61
|
+
orderBy,
|
|
62
|
+
"start-record",
|
|
63
|
+
organization
|
|
64
|
+
],
|
|
54
65
|
first: (resource, filter, orderBy) => [
|
|
55
66
|
"first-page",
|
|
56
67
|
resource,
|
|
@@ -4,6 +4,13 @@ import { Query, QueryClient, QueryState } from "@tanstack/react-query";
|
|
|
4
4
|
export declare const ClientStartContext: import("react").Context<number>;
|
|
5
5
|
/** The answer a query holds came from the start cache and has not been fetched again since the client started. */
|
|
6
6
|
export declare const isRestored: (state: Pick<QueryState, "data" | "dataUpdatedAt">, startedAt: number) => boolean;
|
|
7
|
+
/** The query holds an answer fetched since the client started, rather than one restored from the start cache. */
|
|
8
|
+
export declare const isAnsweredNow: (state: Pick<QueryState, "data" | "dataUpdatedAt">, startedAt: number) => boolean;
|
|
9
|
+
/** The query's last fetch failed, also when `keepCachedOnFailure` kept its cached answer a success. */
|
|
10
|
+
export declare const lastFetchFailed: (result: {
|
|
11
|
+
isError: boolean;
|
|
12
|
+
failureCount: number;
|
|
13
|
+
}) => boolean;
|
|
7
14
|
/**
|
|
8
15
|
* What the page shows of the start cache: `stale` while a query on screen still holds a cached answer, `refreshing`
|
|
9
16
|
* while one of those is being fetched again, `failed` once one could not be, as its fetch failed (see
|
|
@@ -5,6 +5,10 @@ import { useQueryClient } from "@tanstack/react-query";
|
|
|
5
5
|
const ClientStartContext = createContext(0);
|
|
6
6
|
/** The answer a query holds came from the start cache and has not been fetched again since the client started. */
|
|
7
7
|
const isRestored = (state, startedAt) => state.data !== void 0 && state.dataUpdatedAt < startedAt;
|
|
8
|
+
/** The query holds an answer fetched since the client started, rather than one restored from the start cache. */
|
|
9
|
+
const isAnsweredNow = (state, startedAt) => state.data !== void 0 && !isRestored(state, startedAt);
|
|
10
|
+
/** The query's last fetch failed, also when `keepCachedOnFailure` kept its cached answer a success. */
|
|
11
|
+
const lastFetchFailed = (result) => result.isError || result.failureCount > 0;
|
|
8
12
|
const restoredState = (queries, startedAt) => {
|
|
9
13
|
const restored = queries.filter((query) => isRestored(query.state, startedAt));
|
|
10
14
|
if (restored.length === 0) return "fresh";
|
|
@@ -33,4 +37,4 @@ const useRestoredState = () => {
|
|
|
33
37
|
return useSyncExternalStore(subscribe, read, read);
|
|
34
38
|
};
|
|
35
39
|
//#endregion
|
|
36
|
-
export { ClientStartContext, isRestored, keepCachedOnFailure, restoredState, useRestoredState };
|
|
40
|
+
export { ClientStartContext, isAnsweredNow, isRestored, keepCachedOnFailure, lastFetchFailed, restoredState, useRestoredState };
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { keys } from "./query-keys.js";
|
|
2
2
|
import { useClient } from "./api-provider.js";
|
|
3
|
+
import { loaderOf } from "./aggregate-loader.js";
|
|
3
4
|
import { filterText } from "@protobase/client";
|
|
4
5
|
import { useQueries, useQuery } from "@tanstack/react-query";
|
|
5
6
|
//#region src/data/use-aggregates.ts
|
|
6
7
|
const useFacets = (resource, field, filter, enabled = true) => {
|
|
7
|
-
const
|
|
8
|
+
const loader = loaderOf(useClient());
|
|
8
9
|
const text = filterText(filter) ?? "";
|
|
9
10
|
return useQuery({
|
|
10
11
|
queryKey: keys.facets(resource, field, text),
|
|
11
12
|
enabled,
|
|
12
|
-
queryFn: () =>
|
|
13
|
+
queryFn: () => loader.facets(resource, field, {
|
|
13
14
|
filter: text,
|
|
14
15
|
limit: 50
|
|
15
16
|
})
|
|
16
17
|
});
|
|
17
18
|
};
|
|
18
19
|
const useSeries = (resource, params, enabled = true) => {
|
|
19
|
-
const
|
|
20
|
+
const loader = loaderOf(useClient());
|
|
20
21
|
const text = filterText(params.filter) ?? "";
|
|
21
22
|
return useQuery({
|
|
22
23
|
queryKey: keys.series(resource, params.field, `${params.range ?? ""}${params.from ?? ""}${params.to ?? ""}`, params.granularity ?? "", text),
|
|
23
24
|
enabled,
|
|
24
|
-
queryFn: () =>
|
|
25
|
+
queryFn: () => loader.series(resource, {
|
|
25
26
|
...params,
|
|
26
27
|
filter: text
|
|
27
28
|
})
|
|
28
29
|
});
|
|
29
30
|
};
|
|
30
31
|
const useHistogram = (resource, field, filter, buckets = 20, enabled = true) => {
|
|
31
|
-
const
|
|
32
|
+
const loader = loaderOf(useClient());
|
|
32
33
|
const text = filterText(filter) ?? "";
|
|
33
34
|
return useQuery({
|
|
34
35
|
queryKey: keys.histogram(resource, field, buckets, text),
|
|
35
36
|
enabled,
|
|
36
|
-
queryFn: () =>
|
|
37
|
+
queryFn: () => loader.histogram(resource, field, {
|
|
37
38
|
filter: text,
|
|
38
39
|
buckets
|
|
39
40
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/data-grid/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "row" | "new" | "
|
|
5
|
-
rich(id: "row" | "new" | "
|
|
4
|
+
(id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -84,38 +84,45 @@ const FacetCombobox = ({ config, selected, onToggle, inline = false }) => {
|
|
|
84
84
|
"aria-label": config.label,
|
|
85
85
|
"aria-multiselectable": true,
|
|
86
86
|
className: cn("flex max-h-60 flex-col gap-px overflow-y-auto", !inline && "rounded-md border bg-background p-1 shadow-sm"),
|
|
87
|
-
children: [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
children: [
|
|
88
|
+
options.map((option, index) => {
|
|
89
|
+
const chosen = selected.includes(option.value);
|
|
90
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
91
|
+
id: `${id}-${index}`,
|
|
92
|
+
role: "option",
|
|
93
|
+
"aria-selected": chosen,
|
|
94
|
+
tabIndex: -1,
|
|
95
|
+
className: cn("flex cursor-pointer items-center gap-2 rounded px-1.5 py-1 hover:bg-muted", index === active && "bg-muted"),
|
|
96
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
97
|
+
onClick: () => onToggle(option.value),
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ jsx("span", {
|
|
100
|
+
className: cn("inline-flex size-4 shrink-0 items-center justify-center rounded border", chosen ? "border-primary bg-primary text-primary-foreground" : "border-border-strong bg-background"),
|
|
101
|
+
children: chosen && /* @__PURE__ */ jsx(Check, {
|
|
102
|
+
className: "size-3",
|
|
103
|
+
strokeWidth: 3
|
|
104
|
+
})
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ jsx("span", {
|
|
107
|
+
className: "flex-1 truncate",
|
|
108
|
+
children: option.label
|
|
109
|
+
}),
|
|
110
|
+
option.count !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
111
|
+
className: "text-xs tabular-nums text-faint-foreground",
|
|
112
|
+
children: formatInt(option.count)
|
|
103
113
|
})
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
className: "px-1.5 py-1 text-xs text-faint-foreground",
|
|
117
|
-
children: text("noMatches")
|
|
118
|
-
})]
|
|
114
|
+
]
|
|
115
|
+
}, option.value);
|
|
116
|
+
}),
|
|
117
|
+
config.failed && /* @__PURE__ */ jsx("li", {
|
|
118
|
+
className: "px-1.5 py-1 text-xs text-danger-text",
|
|
119
|
+
children: text("couldNotLoadCounts")
|
|
120
|
+
}),
|
|
121
|
+
!config.failed && options.length === 0 && /* @__PURE__ */ jsx("li", {
|
|
122
|
+
className: "px-1.5 py-1 text-xs text-faint-foreground",
|
|
123
|
+
children: text("noMatches")
|
|
124
|
+
})
|
|
125
|
+
]
|
|
119
126
|
})]
|
|
120
127
|
});
|
|
121
128
|
};
|