@protobase/ui 0.118.0 → 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/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/create/messages.d.ts +2 -2
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/calendar-event.js +1 -1
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/displays/use-calendar-move.js +1 -1
- package/dist/app/embedded-list/messages.d.ts +2 -2
- 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/runner-install/messages.d.ts +2 -2
- 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/field-types/workflow-status/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/gallery-layout.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-messages.d.ts +2 -2
- package/dist/app/list-page.js +1 -1
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/nav-recent.js +1 -1
- package/dist/app/new-version/messages.d.ts +2 -2
- 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/runtime/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- 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/carousel/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- 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-grid/column-spec.d.ts +1 -1
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/forms/messages.d.ts +2 -2
- package/dist/inline-child-table/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/locale/en.js +38 -21
- package/dist/locale/en.json.d.ts +17 -0
- package/dist/locale/messages.d.ts +34 -0
- package/dist/locale/nl.js +38 -21
- 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/primitives/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-DOXkanFO.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-Drpmyy7B.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-C7f5skja.js → call-rings-B5rBD5EL.js} +2 -2
- package/dist/shell/assets/{calls-Ca2RAgzS.js → calls-z1AEvYOC.js} +2 -2
- package/dist/shell/assets/{circle-alert-B5-CtUEU.js → circle-alert-C_1i142n.js} +2 -2
- package/dist/shell/assets/{composed-page-BMYkHKrZ.js → composed-page--UJ8tsC0.js} +2 -2
- package/dist/shell/assets/{composer-section-CHUNzdVu.js → composer-section-tfrO2pIi.js} +2 -2
- package/dist/shell/assets/{connect-route-B_u1trIm.js → connect-route-rVNQDWcE.js} +2 -2
- package/dist/shell/assets/{copy-field-9SzlccPw.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-BqLAbXaI.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-wsBk87ZG.js → en-BrEwbNhJ.js} +2 -2
- package/dist/shell/assets/{export-dialog-DG5H_BHu.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-DFeWGm5G.js → graph-view-DXDcn-Fx.js} +2 -2
- package/dist/shell/assets/{group-donut-D9vSqco5.js → group-donut-B3bCn83A.js} +2 -2
- package/dist/shell/assets/{guest-call-page-DIEo-q93.js → guest-call-page-rAD4EXPd.js} +3 -3
- package/dist/shell/assets/{html-viewer-F2craD8b.js → html-viewer-BxhCE5h2.js} +2 -2
- package/dist/shell/assets/{import-dialog-C6QghYOc.js → import-dialog-adjnDUuk.js} +2 -2
- package/dist/shell/assets/{import-table-dialog-BzpzE7wd.js → import-table-dialog-yV9UTlBY.js} +2 -2
- package/dist/shell/assets/{index-lcg5mDSu.js → index-BBHelxJ2.js} +1 -1
- package/dist/shell/assets/invitations-page-FKTUQL8J.js +2 -0
- package/dist/shell/assets/{layout-grid-XTZwSFbV.js → layout-grid-B3Php1Rf.js} +2 -2
- package/dist/shell/assets/{legend-item-BoeI6b5Y.js → legend-item-BbV6BD6w.js} +2 -2
- package/dist/shell/assets/list-page-CNhV2TuF.js +4 -0
- package/dist/shell/assets/{maplibre-CLloBp_X.js → maplibre-D4xk_BLC.js} +2 -2
- package/dist/shell/assets/{markdown-content-CEV942Pa.js → markdown-content-CnNrPGcY.js} +2 -2
- package/dist/shell/assets/members-page-CnxFoeyp.js +2 -0
- package/dist/shell/assets/messages-BHPGrBhJ.js +2 -0
- package/dist/shell/assets/{nl-nieWXCy1.js → nl-Dto12ewP.js} +2 -2
- 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-T-_gptFs.js → pending-invitation-row-D_vU7ynw.js} +2 -2
- package/dist/shell/assets/{period-chart-BLA0qneK.js → period-chart-DPlEbvX7.js} +2 -2
- package/dist/shell/assets/{person-row-CB2jyi4a.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-C-s6d1b-.js → record-lines-SeXhFNSm.js} +2 -2
- package/dist/shell/assets/{record-map-1LgfFbVl.js → record-map-BiLFEqYi.js} +2 -2
- package/dist/shell/assets/{record-opens-DayPkcEp.js → record-opens-Ct9iF9FZ.js} +2 -2
- package/dist/shell/assets/record-page-TxDSHcMe.js +3 -0
- package/dist/shell/assets/{record-preview-DYLddBgR.js → record-preview-J1o4Sqs-.js} +2 -2
- package/dist/shell/assets/{records-map-Dbzp06m5.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-C7Fa31YF.js → run-trace-view-1fk6kU1U.js} +2 -2
- package/dist/shell/assets/{runner-install-field-Bpj6cGb0.js → runner-install-field-C_hTvogl.js} +2 -2
- package/dist/shell/assets/{runtime-update-CZ31fRYM.js → runtime-update-8hRmQkq-.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-Tq2sgl9G.js +1 -0
- package/dist/shell/assets/{sheet-source-CpQBUfMu.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-BNu4CT-a.js → step-panel-BVdV2FNT.js} +2 -2
- package/dist/shell/assets/timeline-display-BxihBkFH.js +2 -0
- package/dist/shell/assets/{trash-DGtnZxzc.js → trash-5PpoeP3R.js} +2 -2
- package/dist/shell/assets/{update-set-DmSoOUGC.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-QMseygYe.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-CI7t7XI0.js → use-paged-search-CcEitpWG.js} +2 -2
- package/dist/shell/assets/{use-run-trace-D0jDOrL8.js → use-run-trace-CV461SQS.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-BMjBBt83.js → use-workflow-page-peSmP1Jq.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-8ZRuZVuJ.js → use-workflow-types-xM8CZO96.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-DtTiaGIh.js → workflow-canvas-CkKd9u0-.js} +4 -4
- package/dist/shell/assets/{workflow-field-2I9HpR3s.js → workflow-field-WovRhNaT.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-DJoriSTb.js → workflow-graph-editor-DRZ2UtBp.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-BB6DMeK0.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-DOXkanFO.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-Drpmyy7B.js.map → assistant-shell-DDkCxLNG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-D9PUmRbl.js.map → board-display-plYPsh6z.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-B8J8DI5J.js.map → calendar-display-B3kFBd2k.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-C7f5skja.js.map → call-rings-B5rBD5EL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-Ca2RAgzS.js.map → calls-z1AEvYOC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-B5-CtUEU.js.map → circle-alert-C_1i142n.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-BMYkHKrZ.js.map → composed-page--UJ8tsC0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-CHUNzdVu.js.map → composer-section-tfrO2pIi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-B_u1trIm.js.map → connect-route-rVNQDWcE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-9SzlccPw.js.map → copy-field-D9agQmK0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-rbublA-_.js.map → create-route-C4xN9aXd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-BqLAbXaI.js.map → custom-step-container-field-BanmPoI-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-CdFZ5TIe.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-DG5H_BHu.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-DFeWGm5G.js.map → graph-view-DXDcn-Fx.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-D9vSqco5.js.map → group-donut-B3bCn83A.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-DIEo-q93.js.map → guest-call-page-rAD4EXPd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-F2craD8b.js.map → html-viewer-BxhCE5h2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-C6QghYOc.js.map → import-dialog-adjnDUuk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-BzpzE7wd.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-XTZwSFbV.js.map → layout-grid-B3Php1Rf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-BoeI6b5Y.js.map → legend-item-BbV6BD6w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-C7h-_WJY.js.map → list-page-CNhV2TuF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-CLloBp_X.js.map → maplibre-D4xk_BLC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-CEV942Pa.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-lXPHUGLV.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-T-_gptFs.js.map → pending-invitation-row-D_vU7ynw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-BLA0qneK.js.map → period-chart-DPlEbvX7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-CB2jyi4a.js.map → person-row-DMY-aQjx.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-CvtOJGMY.js.map → public-form-page-DTgXLDpt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-C-s6d1b-.js.map → record-lines-SeXhFNSm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-1LgfFbVl.js.map → record-map-BiLFEqYi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-DayPkcEp.js.map → record-opens-Ct9iF9FZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-BMFIEvdR.js.map → record-page-TxDSHcMe.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-DYLddBgR.js.map → record-preview-J1o4Sqs-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-Dbzp06m5.js.map → records-map-Cwdig5mb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-DEeBoZ9i.js.map → render-node-BpHo-wre.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-BauUDONv.js.map → reorder-button-CBOmzmhg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-C7Fa31YF.js.map → run-trace-view-1fk6kU1U.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-Bpj6cGb0.js.map → runner-install-field-C_hTvogl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-CZ31fRYM.js.map → runtime-update-8hRmQkq-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-CpQBUfMu.js.map → sheet-source-CD5hImgE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-BumL1ZPK.js.map → sign-in-policy-page-BQ8ck7Ar.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-DYE83u9M.js.map → start-block-queries-4uvupY9E.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-DAHY1jbn.js.map → step-catalog-B2eQNTOp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-BNu4CT-a.js.map → step-panel-BVdV2FNT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-Dj7rfbX5.js.map → timeline-display-BxihBkFH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-DGtnZxzc.js.map → trash-5PpoeP3R.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-DmSoOUGC.js.map → update-set-BnRA9YhA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-r5AsNTri.js.map → use-calendar-move-Bu9MSBcs.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-QMseygYe.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-CI7t7XI0.js.map → use-paged-search-CcEitpWG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-D0jDOrL8.js.map → use-run-trace-CV461SQS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-BMjBBt83.js.map → use-workflow-page-peSmP1Jq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-8ZRuZVuJ.js.map → use-workflow-types-xM8CZO96.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-DtTiaGIh.js.map → workflow-canvas-CkKd9u0-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-2I9HpR3s.js.map → workflow-field-WovRhNaT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-DJoriSTb.js.map → workflow-graph-editor-DRZ2UtBp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-BB6DMeK0.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-PnPXVcoE.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-B48LQpC1.js +0 -34
- package/dist/shell/assets/board-display-D9PUmRbl.js +0 -2
- package/dist/shell/assets/calendar-display-B8J8DI5J.js +0 -2
- package/dist/shell/assets/create-route-rbublA-_.js +0 -2
- package/dist/shell/assets/embedded-list-CdFZ5TIe.js +0 -3
- package/dist/shell/assets/export-worker-CQwKM8Oc.js +0 -15
- package/dist/shell/assets/invitations-page-nBjy3DSn.js +0 -2
- package/dist/shell/assets/list-page-C7h-_WJY.js +0 -4
- package/dist/shell/assets/members-page-D1uMhOZR.js +0 -2
- package/dist/shell/assets/messages-lXPHUGLV.js +0 -2
- package/dist/shell/assets/organization-page-RMZnMPR0.js +0 -2
- package/dist/shell/assets/organizations-page-Ce6Nwl7X.js +0 -2
- package/dist/shell/assets/parse-worker-BN8cVWIa.js +0 -35
- package/dist/shell/assets/public-form-page-CvtOJGMY.js +0 -2
- package/dist/shell/assets/record-page-BMFIEvdR.js +0 -3
- package/dist/shell/assets/render-node-DEeBoZ9i.js +0 -3
- package/dist/shell/assets/reorder-button-BauUDONv.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-BGJ_UVNP.js +0 -1
- package/dist/shell/assets/sign-in-policy-page-BumL1ZPK.js +0 -2
- package/dist/shell/assets/start-block-queries-DYE83u9M.js +0 -2
- package/dist/shell/assets/step-catalog-DAHY1jbn.js +0 -2
- package/dist/shell/assets/timeline-display-Dj7rfbX5.js +0 -2
- package/dist/shell/assets/use-calendar-move-r5AsNTri.js +0 -2
- package/dist/shell/assets/workflow-status-field-L_mimjzo.js +0 -2
- package/dist/shell/assets/workflow-workbench-PnPXVcoE.js +0 -4
- package/dist/shell-source-maps/assets/app-B48LQpC1.js.map +0 -1
- package/dist/shell-source-maps/assets/en-wsBk87ZG.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-CQwKM8Oc.js.map +0 -1
- package/dist/shell-source-maps/assets/invitations-page-nBjy3DSn.js.map +0 -1
- package/dist/shell-source-maps/assets/members-page-D1uMhOZR.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-nieWXCy1.js.map +0 -1
- package/dist/shell-source-maps/assets/organization-page-RMZnMPR0.js.map +0 -1
- package/dist/shell-source-maps/assets/organizations-page-Ce6Nwl7X.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-BN8cVWIa.js.map +0 -1
- package/dist/shell-source-maps/assets/workflow-status-field-L_mimjzo.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../../locale/messages.js";
|
|
2
2
|
//#region src/app/field-types/workflow-run/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "error" | "joined" | "variables" | "output" | "input" | "reused" | "duration" | "notSent" | "showMore" | "loadFailed" | "chosenStep" | "trigger" | "pickNode" | "runInput" | "notRun" | "ranInBlockRun" | "stepTry" | "itemOf" | "openBlockRun" | "reusedResult" | "openEarlierBlockRun" | "joinedResult" | "logs" | "noTrace" | "openJobs", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "error" | "joined" | "variables" | "output" | "input" | "reused" | "duration" | "notSent" | "showMore" | "loadFailed" | "chosenStep" | "trigger" | "pickNode" | "runInput" | "notRun" | "ranInBlockRun" | "stepTry" | "itemOf" | "openBlockRun" | "reusedResult" | "openEarlierBlockRun" | "joinedResult" | "logs" | "noTrace" | "openJobs", 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/app/field-types/workflow-status/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "you" | "label" | "failing" | "unresolved" | "healthy" | "no_runs" | "resolved" | "new_version" | "resolvedBy" | "resolve" | "resolveDone" | "resolveFailed", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "you" | "label" | "failing" | "unresolved" | "healthy" | "no_runs" | "resolved" | "new_version" | "resolvedBy" | "resolve" | "resolveDone" | "resolveFailed", 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/app/file-viewers/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "download" | "loading" | "
|
|
5
|
-
rich(id: "download" | "loading" | "
|
|
4
|
+
(id: "download" | "loading" | "couldNotShow" | "backToRecord" | "noPreview", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "download" | "loading" | "couldNotShow" | "backToRecord" | "noPreview", 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/app/focus/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "readOnly" | "saving" | "saved" | "save" | "conflict" | "keepMine" | "useTheirs" | "notSaved" | "
|
|
5
|
-
rich(id: "readOnly" | "saving" | "saved" | "save" | "conflict" | "keepMine" | "useTheirs" | "notSaved" | "
|
|
4
|
+
(id: "readOnly" | "saving" | "saved" | "save" | "conflict" | "keepMine" | "useTheirs" | "notSaved" | "discard" | "keep" | "restored" | "unsaved" | "unsavedShort" | "readOnlyWhy" | "openDetails" | "surfaceFailed" | "detailsOf" | "discardChanges" | "discardAsk", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "readOnly" | "saving" | "saved" | "save" | "conflict" | "keepMine" | "useTheirs" | "notSaved" | "discard" | "keep" | "restored" | "unsaved" | "unsavedShort" | "readOnlyWhy" | "openDetails" | "surfaceFailed" | "detailsOf" | "discardChanges" | "discardAsk", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -10,9 +10,9 @@ export declare const galleryTiles: (count: number) => {
|
|
|
10
10
|
more: number;
|
|
11
11
|
};
|
|
12
12
|
/** A swipe's step: a mostly sideways drag of 40 pixels or more moves to the next photo leftwards, the previous rightwards. */
|
|
13
|
-
export declare const swipeStep: (dx: number, dy: number) =>
|
|
13
|
+
export declare const swipeStep: (dx: number, dy: number) => 1 | 0 | -1;
|
|
14
14
|
/** A key's step: the right arrow moves to the next photo, the left arrow to the previous one. */
|
|
15
|
-
export declare const keyStep: (key: string) =>
|
|
15
|
+
export declare const keyStep: (key: string) => 1 | 0 | -1;
|
|
16
16
|
/** The photo a step from `index` lands on among `count`: it stops at the first and the last rather than wrapping around. */
|
|
17
17
|
export declare const steppedPhoto: (index: number, by: number, count: number) => number;
|
|
18
18
|
/** Whether a key press toggles a photo's details: `i` alone, without Ctrl, Cmd or Alt, which belong to the browser. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/gallery/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "close" | "open" | "couldNotLoad" | "previousPhoto" | "nextPhoto" | "details" | "showAll" | "showPhoto" | "holderDetails" | "couldNotLoadOne", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "close" | "open" | "couldNotLoad" | "previousPhoto" | "nextPhoto" | "details" | "showAll" | "showPhoto" | "holderDetails" | "couldNotLoadOne", 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/app/hand-order/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "couldNotLoad" | "
|
|
5
|
-
rich(id: "couldNotLoad" | "
|
|
4
|
+
(id: "couldNotLoad" | "done" | "reorder" | "notSaved" | "nothingYet" | "orderChanged" | "undo" | "couldNotUndo" | "couldNotChange" | "movedToPlace" | "notMoved" | "orderChangedThere" | "orderChangedSince" | "noRule", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotLoad" | "done" | "reorder" | "notSaved" | "nothingYet" | "orderChanged" | "undo" | "couldNotUndo" | "couldNotChange" | "movedToPlace" | "notMoved" | "orderChangedThere" | "orderChangedSince" | "noRule", 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/app/history/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "changed" | "create" | "
|
|
5
|
-
rich(id: "changed" | "create" | "
|
|
4
|
+
(id: "changed" | "create" | "couldNotLoad" | "update" | "delete" | "showMore" | "undelete" | "database" | "databaseRole" | "changedThis" | "noChanges", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "changed" | "create" | "couldNotLoad" | "update" | "delete" | "showMore" | "undelete" | "database" | "databaseRole" | "changedThis" | "noChanges", 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/app/import/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "row" | "line" | "
|
|
5
|
-
rich(id: "row" | "line" | "
|
|
4
|
+
(id: "cancel" | "row" | "line" | "download" | "field" | "back" | "failed" | "file" | "create" | "column" | "saving" | "check" | "update" | "next" | "columns" | "rows" | "cancelled" | "done" | "created" | "updated" | "unreadable" | "stopped" | "summary" | "upsert" | "import" | "importPlural" | "couldNotReadFile" | "couldNotCheck" | "checkRows" | "checking" | "importRows" | "cancelImport" | "fileHint" | "reading" | "theFile" | "sheet" | "createHint" | "updateHint" | "upsertHint" | "doNotImport" | "whatEachRowDoes" | "findBy" | "chooseField" | "findByHint" | "foundInColumn" | "chooseColumn" | "numbers" | "dates" | "dayFirst" | "monthFirst" | "datesHint" | "requiredMarked" | "emptyInFirstRows" | "fieldFor" | "foundBy" | "pluralFoundBy" | "noColumnFills" | "rowsNotImported" | "rowProblems" | "andMore" | "checkingRows" | "toCreate" | "toUpdate" | "withProblems" | "firstRows" | "problemRows" | "batches" | "stopping" | "rowsSaved" | "skipped" | "notWrittenHint" | "notImportedFile" | "problems" | "notNumber" | "notWholeNumber" | "tooLarge" | "notBoolean" | "notDate" | "hasTime" | "severalValues" | "notOneOf" | "notText" | "nestedValue" | "emptyRequired" | "noneHas" | "severalHave" | "notOneRecord" | "nothingToUpdate" | "fileNotUtf8" | "noSheets" | "missingSheetPart" | "notZip" | "zip64" | "compression" | "notWorkbook" | "noSheetCalled" | "jsonInvalid" | "jsonNotList" | "fromFile" | "tableFromFile" | "newTable" | "noTitle" | "needed" | "nameForm" | "nameReservedWord" | "nameReservedField" | "nameTaken" | "nameTwice" | "noFields" | "typeFor" | "labelFor" | "nameFor" | "decimalSize" | "typesFromCells" | "couldNotMakeTable" | "makeTable" | "openTable" | "labelTooLong", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "cancel" | "row" | "line" | "download" | "field" | "back" | "failed" | "file" | "create" | "column" | "saving" | "check" | "update" | "next" | "columns" | "rows" | "cancelled" | "done" | "created" | "updated" | "unreadable" | "stopped" | "summary" | "upsert" | "import" | "importPlural" | "couldNotReadFile" | "couldNotCheck" | "checkRows" | "checking" | "importRows" | "cancelImport" | "fileHint" | "reading" | "theFile" | "sheet" | "createHint" | "updateHint" | "upsertHint" | "doNotImport" | "whatEachRowDoes" | "findBy" | "chooseField" | "findByHint" | "foundInColumn" | "chooseColumn" | "numbers" | "dates" | "dayFirst" | "monthFirst" | "datesHint" | "requiredMarked" | "emptyInFirstRows" | "fieldFor" | "foundBy" | "pluralFoundBy" | "noColumnFills" | "rowsNotImported" | "rowProblems" | "andMore" | "checkingRows" | "toCreate" | "toUpdate" | "withProblems" | "firstRows" | "problemRows" | "batches" | "stopping" | "rowsSaved" | "skipped" | "notWrittenHint" | "notImportedFile" | "problems" | "notNumber" | "notWholeNumber" | "tooLarge" | "notBoolean" | "notDate" | "hasTime" | "severalValues" | "notOneOf" | "notText" | "nestedValue" | "emptyRequired" | "noneHas" | "severalHave" | "notOneRecord" | "nothingToUpdate" | "fileNotUtf8" | "noSheets" | "missingSheetPart" | "notZip" | "zip64" | "compression" | "notWorkbook" | "noSheetCalled" | "jsonInvalid" | "jsonNotList" | "fromFile" | "tableFromFile" | "newTable" | "noTitle" | "needed" | "nameForm" | "nameReservedWord" | "nameReservedField" | "nameTaken" | "nameTwice" | "noFields" | "typeFor" | "labelFor" | "nameFor" | "decimalSize" | "typesFromCells" | "couldNotMakeTable" | "makeTable" | "openTable" | "labelTooLong", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PresenceByUser } from "../presence/presence.js";
|
|
2
2
|
import { ListAddress } from "./current-address.js";
|
|
3
|
+
import { FirstOrganizationPageProps } from "../organizations/first-organization-page.js";
|
|
3
4
|
import { OrganizationsState } from "../organizations/use-organizations.js";
|
|
4
5
|
import { GuestCallPageProps } from "../calls/guest-call-page.js";
|
|
5
6
|
//#region src/app/lazy-routes.d.ts
|
|
@@ -60,6 +61,9 @@ export declare const OrganizationPage: ((props: {
|
|
|
60
61
|
onChanged: () => void;
|
|
61
62
|
}>>;
|
|
62
63
|
};
|
|
64
|
+
export declare const FirstOrganizationPage: ((props: FirstOrganizationPageProps) => import("react").JSX.Element) & {
|
|
65
|
+
preload: () => Promise<import("react").ComponentType<FirstOrganizationPageProps>>;
|
|
66
|
+
};
|
|
63
67
|
export declare const OrganizationsPage: ((props: {
|
|
64
68
|
state: OrganizationsState;
|
|
65
69
|
basePath: string;
|
package/dist/app/lazy-routes.js
CHANGED
|
@@ -12,6 +12,7 @@ const ComposedPage = lazyComponent(() => import("./pages/composed-page.js").then
|
|
|
12
12
|
const AccountPage = lazyComponent(() => import("../account/account-page.js").then((module) => module.AccountPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
13
13
|
const SignInPolicyPage = lazyComponent(() => import("../account/sign-in-policy-page.js").then((module) => module.SignInPolicyPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
14
14
|
const OrganizationPage = lazyComponent(() => import("../organizations/organization-page.js").then((module) => module.OrganizationPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
15
|
+
const FirstOrganizationPage = lazyComponent(() => import("../organizations/first-organization-page.js").then((module) => module.FirstOrganizationPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
15
16
|
const OrganizationsPage = lazyComponent(() => import("../organizations/organizations-page.js").then((module) => module.OrganizationsPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
16
17
|
const MembersPage = lazyComponent(() => import("../organizations/members-page.js").then((module) => module.MembersPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
17
18
|
const InvitationsPage = lazyComponent(() => import("../organizations/invitations-page.js").then((module) => module.InvitationsPage), () => /* @__PURE__ */ jsx(RevealSkeleton, {}));
|
|
@@ -33,4 +34,4 @@ const preloadPages = () => pages ??= Promise.allSettled([
|
|
|
33
34
|
ComposedPage.preload()
|
|
34
35
|
]);
|
|
35
36
|
//#endregion
|
|
36
|
-
export { AccountPage, AssistantPanel, CallRings, ComposedPage, ConnectRoute, CreateRoute, GuestCallPage, InvitationsPage, ListPage, MembersPage, OrganizationPage, OrganizationsPage, PublicFormPage, RecordPage, RuntimeUpdateButton, SignInPolicyPage, preloadPages };
|
|
37
|
+
export { AccountPage, AssistantPanel, CallRings, ComposedPage, ConnectRoute, CreateRoute, FirstOrganizationPage, GuestCallPage, InvitationsPage, ListPage, MembersPage, OrganizationPage, OrganizationsPage, PublicFormPage, RecordPage, RuntimeUpdateButton, SignInPolicyPage, preloadPages };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app/list-messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "sort" | "search" | "
|
|
5
|
-
rich(id: "sort" | "search" | "
|
|
4
|
+
(id: "sort" | "search" | "clearSearch" | "delete" | "filters" | "created" | "searchPlural" | "noList" | "filtersCount" | "newRecord" | "export" | "openRecord" | "exportCount" | "deleteCount" | "actionCount" | "dragToSort" | "unreadableFilter" | "couldNotLoadRows" | "noMatchSearch" | "noMatchFilters" | "noMatch" | "noneYet" | "clearFilters", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "sort" | "search" | "clearSearch" | "delete" | "filters" | "created" | "searchPlural" | "noList" | "filtersCount" | "newRecord" | "export" | "openRecord" | "exportCount" | "deleteCount" | "actionCount" | "dragToSort" | "unreadableFilter" | "couldNotLoadRows" | "noMatchSearch" | "noMatchFilters" | "noMatch" | "noneYet" | "clearFilters", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/app/list-page.js
CHANGED
|
@@ -12,8 +12,8 @@ import { can, rowAllows } from "./permissions.js";
|
|
|
12
12
|
import { createOffered } from "./create/create-offered.js";
|
|
13
13
|
import { navItemId } from "./nav-from-meta.js";
|
|
14
14
|
import { recordKey, recordTitleField } from "../live/model-helpers.js";
|
|
15
|
-
import { useRecordTitle } from "./titles/record-titles.js";
|
|
16
15
|
import { parseSort, sortToOrderBy } from "./list-order.js";
|
|
16
|
+
import { useRecordTitle } from "./titles/record-titles.js";
|
|
17
17
|
import { columnsFromModel, listColumnNames } from "../live/columns-from-model.js";
|
|
18
18
|
import { boardRank } from "./displays/board-columns.js";
|
|
19
19
|
import { displayRow, listDisplayChoices, loadedFields, shownListDisplay } from "./displays/list-displays.js";
|
package/dist/app/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "account" | "
|
|
5
|
-
rich(id: "account" | "
|
|
4
|
+
(id: "account" | "leave" | "remove" | "replace" | "open" | "new" | "loading" | "cannotReach" | "tryAgain" | "noAnswer" | "reload" | "admin" | "pages" | "menu" | "refreshing" | "fileMissing" | "noMatches" | "assistant" | "notFound" | "hr" | "signInPolicy" | "noResource" | "somethingWentWrong" | "adminsOnly" | "onlyAdminPolicy" | "ownersOnly" | "onlyOwners" | "chooseResource" | "pickFromSidebar" | "nothingHere" | "pageNotLoaded" | "pageNotLoadedHelp" | "signOutQuestion" | "signOutHelp" | "signOutCancel" | "signOutConfirm" | "noPage" | "operationFailed" | "nothingSaved" | "loadingRecord" | "noComponent" | "choose" | "noValue" | "chooseFileFor" | "notUploaded" | "uploadingLabel" | "uploading" | "dropFile" | "chooseFile" | "average" | "sales" | "crm" | "catalog" | "inventory" | "tables" | "searchPlural" | "couldNotLoadOptions" | "refreshFailedTitle" | "refreshFailedHelp" | "refreshRetry" | "refreshClose" | "refreshWhy" | "refreshFailed" | "leaveTitle" | "leaveDescription" | "leaveInputLost" | "stay" | "reloadTitle" | "reloadDraftKept" | "reloadInputLost" | "keepEditing" | "show" | "hide" | "couldNotShow" | "setNewValue" | "signInRefused" | "loadingFrom" | "restWorks" | "staffSession" | "staffSignedIn" | "stopStaffSession" | "openLabel" | "opensNewTab", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "account" | "leave" | "remove" | "replace" | "open" | "new" | "loading" | "cannotReach" | "tryAgain" | "noAnswer" | "reload" | "admin" | "pages" | "menu" | "refreshing" | "fileMissing" | "noMatches" | "assistant" | "notFound" | "hr" | "signInPolicy" | "noResource" | "somethingWentWrong" | "adminsOnly" | "onlyAdminPolicy" | "ownersOnly" | "onlyOwners" | "chooseResource" | "pickFromSidebar" | "nothingHere" | "pageNotLoaded" | "pageNotLoadedHelp" | "signOutQuestion" | "signOutHelp" | "signOutCancel" | "signOutConfirm" | "noPage" | "operationFailed" | "nothingSaved" | "loadingRecord" | "noComponent" | "choose" | "noValue" | "chooseFileFor" | "notUploaded" | "uploadingLabel" | "uploading" | "dropFile" | "chooseFile" | "average" | "sales" | "crm" | "catalog" | "inventory" | "tables" | "searchPlural" | "couldNotLoadOptions" | "refreshFailedTitle" | "refreshFailedHelp" | "refreshRetry" | "refreshClose" | "refreshWhy" | "refreshFailed" | "leaveTitle" | "leaveDescription" | "leaveInputLost" | "stay" | "reloadTitle" | "reloadDraftKept" | "reloadInputLost" | "keepEditing" | "show" | "hide" | "couldNotShow" | "setNewValue" | "signInRefused" | "loadingFrom" | "restWorks" | "staffSession" | "staffSignedIn" | "stopStaffSession" | "openLabel" | "opensNewTab", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/app/nav-recent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { recordKey, recordTitleField } from "../live/model-helpers.js";
|
|
2
|
-
import { titleFieldsOf } from "./titles/record-title-of.js";
|
|
3
2
|
import { defaultOrderBy } from "./list-order.js";
|
|
3
|
+
import { titleFieldsOf } from "./titles/record-title-of.js";
|
|
4
4
|
import { defaultRecentLimit, encodeKey } from "@protobase/schema/internal";
|
|
5
5
|
import { appPath, enumLabel } from "@protobase/schema";
|
|
6
6
|
//#region src/app/nav-recent.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/new-version/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "title" | "
|
|
5
|
-
rich(id: "title" | "
|
|
4
|
+
(id: "title" | "reload" | "description" | "reloadPage" | "reloadPageHint" | "bannerTitle" | "bannerLine", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "title" | "reload" | "description" | "reloadPage" | "reloadPageHint" | "bannerTitle" | "bannerLine", 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/app/pages/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "number" | "
|
|
5
|
-
rich(id: "number" | "
|
|
4
|
+
(id: "number" | "cancel" | "failed" | "create" | "saved" | "tabs" | "couldNotLoad" | "save" | "couldNotDraw" | "required" | "done" | "notFound" | "noPage" | "noComponent" | "wholeNumber" | "notSaved" | "nothingYet" | "somethingWrong" | "noTab" | "unknownBlock" | "needsRecord" | "cannotChange" | "cannotDelete" | "doesNotApply" | "noHandler" | "noInputComponent" | "doneOn" | "refusedOn" | "noAction" | "loadMore" | "timelineCut" | "settings" | "couldNotCount" | "dateFormat" | "atMost" | "tickEvery" | "nothingToTick" | "forRecords" | "timelineRange" | "timelineNow" | "timelinePoint", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "number" | "cancel" | "failed" | "create" | "saved" | "tabs" | "couldNotLoad" | "save" | "couldNotDraw" | "required" | "done" | "notFound" | "noPage" | "noComponent" | "wholeNumber" | "notSaved" | "nothingYet" | "somethingWrong" | "noTab" | "unknownBlock" | "needsRecord" | "cannotChange" | "cannotDelete" | "doesNotApply" | "noHandler" | "noInputComponent" | "doneOn" | "refusedOn" | "noAction" | "loadMore" | "timelineCut" | "settings" | "couldNotCount" | "dateFormat" | "atMost" | "tickEvery" | "nothingToTick" | "forRecords" | "timelineRange" | "timelineNow" | "timelinePoint", 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/app/record-chart/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "couldNotLoad" | "maximum" | "day" | "hour" | "week" | "range" | "average" | "measure" | "noSamples", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotLoad" | "maximum" | "day" | "hour" | "week" | "range" | "average" | "measure" | "noSamples", 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/app/record-messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "cancel" | "loading" | "edit" | "fetching" | "saved" | "history" | "comments" | "couldNotLoad" | "save" | "couldNotSave" | "delete" | "justNow" | "details" | "summary" | "lineNumber" | "noRecord" | "openingElsewhere" | "someoneElse" | "unsavedChanges" | "notSaved" | "linesChanged" | "linesReloaded" | "unsavedKept" | "continueEditing" | "discard" | "unsavedRestored" | "keep" | "savingSubject" | "subjectSaved" | "changedBySomeoneElse" | "recordActions" | "nothingYet" | "relatedRecords" | "lineField" | "tooManyLines", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "cancel" | "loading" | "edit" | "fetching" | "saved" | "history" | "comments" | "couldNotLoad" | "save" | "couldNotSave" | "delete" | "justNow" | "details" | "summary" | "lineNumber" | "noRecord" | "openingElsewhere" | "someoneElse" | "unsavedChanges" | "notSaved" | "linesChanged" | "linesReloaded" | "unsavedKept" | "continueEditing" | "discard" | "unsavedRestored" | "keep" | "savingSubject" | "subjectSaved" | "changedBySomeoneElse" | "recordActions" | "nothingYet" | "relatedRecords" | "lineField" | "tooManyLines", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomSectionModel, LayoutItemModel } from "@protobase/schema";
|
|
2
2
|
//#region src/app/record-mode/shown-layout.d.ts
|
|
3
|
-
export declare const whenOf: (item: LayoutItemModel) => (string & {}) | "
|
|
3
|
+
export declare const whenOf: (item: LayoutItemModel) => "always" | (string & {}) | "reading" | "editing" | undefined;
|
|
4
4
|
/** The items with a record condition in `when`, those inside tabs, groups and fallbacks too, whose conditions the page evaluates: a group before its items. */
|
|
5
5
|
export declare const conditionalItems: (items: LayoutItemModel[]) => LayoutItemModel[];
|
|
6
6
|
/** A shown custom section: `fallbackAt` holds each shown fallback item's place in the whole fallback. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/record-row/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "new" | "couldNotLoad" | "viewAll" | "noneYet" | "noneMatch" | "couldNotLoadYour", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "new" | "couldNotLoad" | "viewAll" | "noneYet" | "noneMatch" | "couldNotLoadYour", 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/app/related-cards/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "open" | "
|
|
5
|
-
rich(id: "open" | "
|
|
4
|
+
(id: "open" | "left" | "couldNotLoad" | "add" | "showMore" | "nothingYet" | "showLess", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "open" | "left" | "couldNotLoad" | "add" | "showMore" | "nothingYet" | "showLess", 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/app/runtime/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "close" | "failed" | "update" | "immediate" | "weekly" | "scheduled" | "manual" | "job" | "build" | "updatingNow" | "started" | "nextOn" | "succeeded" | "unchanged" | "alreadyLatest" | "onlyAdmin" | "couldNotStart" | "runtimeUpdate" | "updating" | "updateNow" | "currentVersion" | "latestVersion" | "checkFailed" | "updateAvailable", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "close" | "failed" | "update" | "immediate" | "weekly" | "scheduled" | "manual" | "job" | "build" | "updatingNow" | "started" | "nextOn" | "succeeded" | "unchanged" | "alreadyLatest" | "onlyAdmin" | "couldNotStart" | "runtimeUpdate" | "updating" | "updateNow" | "currentVersion" | "latestVersion" | "checkFailed" | "updateAvailable", 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/app/saved/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "couldNotSave" | "
|
|
5
|
-
rich(id: "couldNotSave" | "
|
|
4
|
+
(id: "couldNotSave" | "noneYet" | "somethingWrong" | "couldNotLoadYour" | "favorite" | "couldNotTakeOff", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotSave" | "noneYet" | "somethingWrong" | "couldNotLoadYour" | "favorite" | "couldNotTakeOff", 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/app/searches/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "optional" | "update" | "filters" | "notFound" | "deleteTitle" | "off" | "on" | "noResource" | "unreadableFilter" | "noneYet" | "noPlural" | "somethingWrong" | "noneMatch" | "couldNotChange" | "firstOf" | "couldNotLoadYour" | "couldNotTakeOff" | "saveSearch" | "saveAsNew" | "updateName" | "updateNameQuestion" | "updateNounQuestion" | "couldNotRename" | "renameTitle" | "noSavedYet" | "asMany" | "fewer" | "added" | "filterChanges" | "addedRemoved" | "noRecordsDiff" | "searchSaved" | "openPlural" | "searchUpdated" | "couldNotUpdate" | "noNew", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "optional" | "update" | "filters" | "notFound" | "deleteTitle" | "off" | "on" | "noResource" | "unreadableFilter" | "noneYet" | "noPlural" | "somethingWrong" | "noneMatch" | "couldNotChange" | "firstOf" | "couldNotLoadYour" | "couldNotTakeOff" | "saveSearch" | "saveAsNew" | "updateName" | "updateNameQuestion" | "updateNounQuestion" | "couldNotRename" | "renameTitle" | "noSavedYet" | "asMany" | "fewer" | "added" | "filterChanges" | "addedRemoved" | "noRecordsDiff" | "searchSaved" | "openPlural" | "searchUpdated" | "couldNotUpdate" | "noNew", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -2,8 +2,8 @@ import { Button } from "../../primitives/button.js";
|
|
|
2
2
|
import { Skeleton } from "../../primitives/skeleton.js";
|
|
3
3
|
import { useClient } from "../../data/api-provider.js";
|
|
4
4
|
import { humanize } from "../../live/naming.js";
|
|
5
|
-
import { ResponsiveDialog } from "../../primitives/responsive-dialog.js";
|
|
6
5
|
import { defaultOrderBy } from "../list-order.js";
|
|
6
|
+
import { ResponsiveDialog } from "../../primitives/responsive-dialog.js";
|
|
7
7
|
import { countQuery } from "../pages/use-layout-data.js";
|
|
8
8
|
import { text } from "./messages.js";
|
|
9
9
|
import { useFilterChips } from "./use-filter-chips.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MetaData } from "../data/meta-data.js";
|
|
2
|
+
import { NavStartModel, ResourceModel } from "@protobase/schema";
|
|
3
|
+
//#region src/app/start-record.d.ts
|
|
4
|
+
export type StartEntry = {
|
|
5
|
+
model: ResourceModel;
|
|
6
|
+
start: NavStartModel;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The sidebar entry whose view names the record the app opens at `/` (`nav.start`): the first in the sidebar's order
|
|
10
|
+
* that the caller sees, so that the start follows what their roles show. None when no entry names one.
|
|
11
|
+
*/
|
|
12
|
+
export declare const startEntry: (meta: MetaData) => StartEntry | undefined;
|
|
13
|
+
/** The list request that finds the start record: its filter, the order given or the list's sort, one row, its key alone. */
|
|
14
|
+
export declare const startRequest: ({ model, start }: StartEntry, meta: MetaData) => {
|
|
15
|
+
filter: string;
|
|
16
|
+
orderBy: string;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
fields: string[];
|
|
19
|
+
};
|
|
20
|
+
/** The address key of the row the request found, or none when nothing matched. */
|
|
21
|
+
export declare const startKey: (model: ResourceModel, rows: Record<string, unknown>[]) => string | undefined;
|
|
22
|
+
//#endregion
|
|
@@ -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 };
|