@protobase/ui 0.116.0 → 0.117.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 +84 -50
- package/dist/app/bottom-bar-from-meta.d.ts +8 -2
- package/dist/app/bottom-bar-from-meta.js +23 -11
- package/dist/app/change-confirm/messages.d.ts +2 -2
- 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/custom-section.d.ts +1 -1
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/list-cards.d.ts +1 -1
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/embedded-list/messages.d.ts +2 -2
- package/dist/app/export/export-dialog.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/json/messages.d.ts +2 -2
- package/dist/app/field-types/runner-install/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/gallery-layout.d.ts +2 -2
- package/dist/app/gallery/lightbox.js +1 -1
- 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/import-dialog.js +1 -1
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/import/new-table/import-table-dialog.js +1 -1
- package/dist/app/list-edit/messages.d.ts +2 -2
- 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/pages/action-inputs/action-inputs-dialog.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/pages/record-actions.js +1 -1
- 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/refresh-mark.js +46 -10
- 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/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-shell/account-entry.d.ts +17 -0
- package/dist/app-shell/account-entry.js +40 -0
- package/dist/app-shell/app-shell.d.ts +13 -1
- package/dist/app-shell/app-shell.js +80 -10
- package/dist/app-shell/back-target.d.ts +3 -2
- package/dist/app-shell/back-target.js +4 -3
- package/dist/app-shell/bottom-bar.d.ts +15 -3
- package/dist/app-shell/bottom-bar.js +70 -42
- package/dist/app-shell/brand-bar.d.ts +15 -0
- package/dist/app-shell/brand-bar.js +19 -0
- package/dist/app-shell/brand-status-bar.d.ts +8 -0
- package/dist/app-shell/brand-status-bar.js +27 -0
- package/dist/app-shell/breadcrumb.d.ts +4 -2
- package/dist/app-shell/breadcrumb.js +45 -37
- package/dist/app-shell/drawer.d.ts +2 -1
- package/dist/app-shell/drawer.js +22 -5
- package/dist/app-shell/global-search.d.ts +3 -1
- package/dist/app-shell/global-search.js +4 -4
- package/dist/app-shell/index.js +2 -2
- package/dist/app-shell/leading-slot.d.ts +9 -0
- package/dist/app-shell/leading-slot.js +10 -0
- package/dist/app-shell/logo.js +2 -1
- package/dist/app-shell/menu-page.d.ts +19 -0
- package/dist/app-shell/menu-page.js +29 -0
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/app-shell/more-page.d.ts +45 -0
- package/dist/app-shell/more-page.js +30 -0
- package/dist/app-shell/native-tab-bar.d.ts +47 -0
- package/dist/app-shell/native-tab-bar.js +45 -0
- package/dist/app-shell/page-scroll.d.ts +3 -2
- package/dist/app-shell/page-scroll.js +5 -3
- package/dist/app-shell/profile-menu.d.ts +5 -1
- package/dist/app-shell/profile-menu.js +138 -117
- package/dist/app-shell/sidebar.d.ts +12 -1
- package/dist/app-shell/sidebar.js +20 -10
- package/dist/app-shell/tab-icon.d.ts +7 -0
- package/dist/app-shell/tab-icon.js +38 -0
- package/dist/app-shell/top-bar.d.ts +19 -3
- package/dist/app-shell/top-bar.js +104 -60
- package/dist/app-shell/use-native-bottom-bar.d.ts +16 -0
- package/dist/app-shell/use-native-bottom-bar.js +62 -0
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/call-guests-panel.js +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/data-grid/header-menu.js +33 -28
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/data-grid/row-menu.js +38 -33
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/focus-page/bar-actions.js +1 -1
- package/dist/format/messages.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -4
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/live/messages.d.ts +2 -2
- package/dist/locale/en.js +7 -0
- package/dist/locale/en.json.d.ts +7 -0
- package/dist/locale/messages.d.ts +14 -0
- package/dist/locale/nl.js +7 -0
- package/dist/locale/texts-gate.d.ts +21 -2
- package/dist/locale/texts-gate.js +33 -6
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mentions/messages.d.ts +2 -2
- package/dist/mocks/orders.d.ts +1 -1
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/notifications/bell/notification-bell.js +40 -35
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/plugins/before-sign-in.d.ts +1 -1
- package/dist/primitives/avatar.d.ts +1 -1
- package/dist/primitives/avatar.js +2 -1
- package/dist/primitives/drawer-math.d.ts +39 -0
- package/dist/primitives/drawer-math.js +43 -0
- package/dist/primitives/menu-select.js +51 -44
- package/dist/primitives/menu-surface.d.ts +22 -0
- package/dist/primitives/menu-surface.js +29 -0
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/primitives/popover-menu.js +1 -0
- package/dist/primitives/sheet-drag.d.ts +5 -5
- package/dist/primitives/sheet-drag.js +10 -16
- package/dist/primitives/sheet.d.ts +5 -2
- package/dist/primitives/sheet.js +9 -6
- package/dist/primitives/use-drawer-drag.d.ts +34 -0
- package/dist/primitives/use-drawer-drag.js +103 -0
- package/dist/primitives/use-sheet-drag.d.ts +2 -2
- package/dist/primitives/use-sheet-drag.js +10 -9
- package/dist/record-view/action-menu.js +45 -40
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/record-view/use-autosave.d.ts +1 -1
- package/dist/shell/assets/{account-page-9Aq9kvrG.js → account-page-DtK7jKts.js} +2 -2
- package/dist/shell/assets/app-BAQxWF5r.css +2 -0
- package/dist/shell/assets/app-BjX4WRlX.js +34 -0
- package/dist/shell/assets/{assistant-shell-BGtjYwwY.js → assistant-shell-m4yudVE_.js} +2 -2
- package/dist/shell/assets/board-display-DTeV61do.js +2 -0
- package/dist/shell/assets/{calendar-display-DKXi1P_o.js → calendar-display-C9M_BrdC.js} +2 -2
- package/dist/shell/assets/call-rings-TD7_HvNB.js +2 -0
- package/dist/shell/assets/{calls-DR-Ci2ND.js → calls-Bp_BwXBR.js} +2 -2
- package/dist/shell/assets/{circle-alert-C0Jeesr7.js → circle-alert-Z5jvi5Dk.js} +2 -2
- package/dist/shell/assets/composed-page-7cjr_6Rj.js +2 -0
- package/dist/shell/assets/{composer-section-rLoyhseD.js → composer-section-BOic27ni.js} +2 -2
- package/dist/shell/assets/{connect-route-B9xNNieq.js → connect-route-BQKWurfi.js} +2 -2
- package/dist/shell/assets/{copy-field-DkCyHPwg.js → copy-field-J-xjCVww.js} +2 -2
- package/dist/shell/assets/create-route-cKTgbHdL.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-Do5pWJ_q.js → custom-step-container-field-ClXbgsmG.js} +4 -4
- package/dist/shell/assets/embedded-list-CdGDYOeK.js +3 -0
- package/dist/shell/assets/en-CtEQkQWj.js +2 -0
- package/dist/shell/assets/{export-dialog-CovrAwYy.js → export-dialog-DJFPmWjl.js} +2 -2
- package/dist/shell/assets/export-worker-DlWkifnE.js +15 -0
- package/dist/shell/assets/{graph-view-BfRhAOfb.js → graph-view-DdCNEjjp.js} +2 -2
- package/dist/shell/assets/{group-donut-DC8GLnC8.js → group-donut-YHImqCyt.js} +2 -2
- package/dist/shell/assets/{guest-call-page-Dc8M5yz6.js → guest-call-page-DuJmX_uH.js} +3 -3
- package/dist/shell/assets/{html-viewer-DH_s-gLB.js → html-viewer-BXSFoAH-.js} +2 -2
- package/dist/shell/assets/{import-dialog-Ge24RdwQ.js → import-dialog-D1pihaEn.js} +2 -2
- package/dist/shell/assets/import-table-dialog-Dd851s8K.js +2 -0
- package/dist/shell/assets/{index-Bi_Jks-d.js → index-B5AApF7s.js} +1 -1
- package/dist/shell/assets/invitations-page-CVnZFr42.js +2 -0
- package/dist/shell/assets/{layout-grid-DCBxzjaE.js → layout-grid-B4BydwOr.js} +2 -2
- package/dist/shell/assets/{legend-item-BZXnHPzh.js → legend-item-DStfKS-y.js} +2 -2
- package/dist/shell/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js → lib-vis.gl-react-maplibre-1cv426UN.js} +2 -2
- package/dist/shell/assets/list-page-HyJhabYe.js +4 -0
- package/dist/shell/assets/maplibre-v43v0z7e.js +2 -0
- package/dist/shell/assets/{markdown-content-DMl-cVjQ.js → markdown-content-R7RUN0DQ.js} +2 -2
- package/dist/shell/assets/members-page-BIWsatyd.js +2 -0
- package/dist/shell/assets/{messages-D5XhIbDz.js → messages-CPMEQgWR.js} +2 -2
- package/dist/shell/assets/nl-9OWL4NdF.js +2 -0
- package/dist/shell/assets/organization-page-DY5ndg2R.js +2 -0
- package/dist/shell/assets/organizations-page-6HwVXvoa.js +2 -0
- package/dist/shell/assets/parse-worker-NutG5-Js.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-BIO4J3ts.js → pending-invitation-row-Cy5mVb52.js} +2 -2
- package/dist/shell/assets/{period-chart-CoT2IDzy.js → period-chart-dl5O03oa.js} +2 -2
- package/dist/shell/assets/{person-row-DBeHOA2K.js → person-row-CC1Anzap.js} +2 -2
- package/dist/shell/assets/public-form-page-DdR2id-n.js +2 -0
- package/dist/shell/assets/record-lines-D4ajVvtc.js +2 -0
- package/dist/shell/assets/{record-map-BR34Q9uI.js → record-map-IJBljngZ.js} +2 -2
- package/dist/shell/assets/{record-opens-Dbjd4FLe.js → record-opens-Dth-MEBS.js} +2 -2
- package/dist/shell/assets/record-page-DZUqVmk0.js +3 -0
- package/dist/shell/assets/record-preview-wMoagd6i.js +2 -0
- package/dist/shell/assets/{records-map-CXanq-qN.js → records-map-BbgGOE7w.js} +2 -2
- package/dist/shell/assets/render-node-h9cWEbE-.js +3 -0
- package/dist/shell/assets/reorder-button-gdDrG56h.js +2 -0
- package/dist/shell/assets/{run-trace-view-D1DZCrDs.js → run-trace-view-DqRcTHlR.js} +2 -2
- package/dist/shell/assets/{runner-install-field-C2XhrG0M.js → runner-install-field-BhcDC4pg.js} +2 -2
- package/dist/shell/assets/{runtime-update-C5TxLpYf.js → runtime-update-BazQF8nl.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-Dd-bY2Qa.js +1 -0
- package/dist/shell/assets/sheet-source-CA05AnuE.js +3 -0
- package/dist/shell/assets/sign-in-policy-page-7hl0azIr.js +2 -0
- package/dist/shell/assets/start-block-queries-BVzV-uV2.js +2 -0
- package/dist/shell/assets/step-catalog-DGutomuv.js +2 -0
- package/dist/shell/assets/{step-panel-TfW-31Gv.js → step-panel-BuIiRC-g.js} +2 -2
- package/dist/shell/assets/timeline-display-DdkySfMr.js +2 -0
- package/dist/shell/assets/{trash-BjnGkZfx.js → trash-IReijQWL.js} +2 -2
- package/dist/shell/assets/{update-set-BahNKmxv.js → update-set-Ijp4W4Df.js} +2 -2
- package/dist/shell/assets/use-calendar-move-D07CQGsB.js +2 -0
- package/dist/shell/assets/{use-display-rows-DsBBYuKB.js → use-display-rows-BowlA8tv.js} +2 -2
- package/dist/shell/assets/{use-paged-search-DaT4uUhX.js → use-paged-search-BPiYdk9e.js} +2 -2
- package/dist/shell/assets/{use-run-trace-DHk7l8MX.js → use-run-trace-CctJj-s_.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-DPIhXcnb.js → use-workflow-page-G3NuEfi0.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-Bp8iqkBg.js → use-workflow-types-BWS5utgc.js} +2 -2
- package/dist/shell/assets/{vendor-DQHyyBk1.js → vendor-t7Q7QbPu.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-CiGUTx4K.js → workflow-canvas-BHHRCAvI.js} +4 -4
- package/dist/shell/assets/{workflow-field-lqBx3RDj.js → workflow-field-B1MbuDxB.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-DgufTFii.js → workflow-graph-editor-C-soTaTw.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-C4BtvPnB.js → workflow-run-field-CuLkIloc.js} +3 -3
- package/dist/shell/assets/workflow-status-field-Co0qx9xC.js +2 -0
- package/dist/shell/assets/workflow-workbench-CSnD-k-9.js +4 -0
- package/dist/shell/index.html +5 -5
- package/dist/shell/protobase.shell.json +3 -3
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-9Aq9kvrG.js.map → account-page-DtK7jKts.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-BjX4WRlX.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-BGtjYwwY.js.map → assistant-shell-m4yudVE_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-Ck6nnv4b.js.map → board-display-DTeV61do.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-DKXi1P_o.js.map → calendar-display-C9M_BrdC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-Bs9dtURX.js.map → call-rings-TD7_HvNB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-DR-Ci2ND.js.map → calls-Bp_BwXBR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-C0Jeesr7.js.map → circle-alert-Z5jvi5Dk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-Bdzzzuyj.js.map → composed-page-7cjr_6Rj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-rLoyhseD.js.map → composer-section-BOic27ni.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-B9xNNieq.js.map → connect-route-BQKWurfi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-DkCyHPwg.js.map → copy-field-J-xjCVww.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-DBrv5Kqi.js.map → create-route-cKTgbHdL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-Do5pWJ_q.js.map → custom-step-container-field-ClXbgsmG.js.map} +1 -1
- package/dist/shell-source-maps/assets/embedded-list-CdGDYOeK.js.map +1 -0
- package/dist/shell-source-maps/assets/en-CtEQkQWj.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-CovrAwYy.js.map → export-dialog-DJFPmWjl.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-DlWkifnE.js.map +1 -0
- package/dist/shell-source-maps/assets/{graph-view-BfRhAOfb.js.map → graph-view-DdCNEjjp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-DC8GLnC8.js.map → group-donut-YHImqCyt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-Dc8M5yz6.js.map → guest-call-page-DuJmX_uH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-DH_s-gLB.js.map → html-viewer-BXSFoAH-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-Ge24RdwQ.js.map → import-dialog-D1pihaEn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-D1aVXF3R.js.map → import-table-dialog-Dd851s8K.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-CFwYUoqb.js.map → invitations-page-CVnZFr42.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-DCBxzjaE.js.map → layout-grid-B4BydwOr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-BZXnHPzh.js.map → legend-item-DStfKS-y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-vis.gl-react-maplibre-CdxVSk--.js.map → lib-vis.gl-react-maplibre-1cv426UN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-DwIEEzTz.js.map → list-page-HyJhabYe.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-C7kZagL3.js.map → maplibre-v43v0z7e.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-DMl-cVjQ.js.map → markdown-content-R7RUN0DQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-BfrzLCXo.js.map → members-page-BIWsatyd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-D5XhIbDz.js.map → messages-CPMEQgWR.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-9OWL4NdF.js.map +1 -0
- package/dist/shell-source-maps/assets/{organization-page-DxA2154P.js.map → organization-page-DY5ndg2R.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Bf4oXbvZ.js.map → organizations-page-6HwVXvoa.js.map} +1 -1
- package/dist/shell-source-maps/assets/parse-worker-NutG5-Js.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-BIO4J3ts.js.map → pending-invitation-row-Cy5mVb52.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-CoT2IDzy.js.map → period-chart-dl5O03oa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DBeHOA2K.js.map → person-row-CC1Anzap.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-Dhinql3j.js.map → public-form-page-DdR2id-n.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-Dmb8bl38.js.map → record-lines-D4ajVvtc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-BR34Q9uI.js.map → record-map-IJBljngZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-Dbjd4FLe.js.map → record-opens-Dth-MEBS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-Dnpo_8uE.js.map → record-page-DZUqVmk0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-CarOT-Gn.js.map → record-preview-wMoagd6i.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-CXanq-qN.js.map → records-map-BbgGOE7w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-DGYXKoGV.js.map → render-node-h9cWEbE-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-9_dAk_3O.js.map → reorder-button-gdDrG56h.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-D1DZCrDs.js.map → run-trace-view-DqRcTHlR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-C2XhrG0M.js.map → runner-install-field-BhcDC4pg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-C5TxLpYf.js.map → runtime-update-BazQF8nl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-DqFYbJpm.js.map → sheet-source-CA05AnuE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-vjGTg9Do.js.map → sign-in-policy-page-7hl0azIr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-CmVDv8_F.js.map → start-block-queries-BVzV-uV2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-PWiIgJSI.js.map → step-catalog-DGutomuv.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-TfW-31Gv.js.map → step-panel-BuIiRC-g.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-eBf3tuig.js.map → timeline-display-DdkySfMr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BjnGkZfx.js.map → trash-IReijQWL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-BahNKmxv.js.map → update-set-Ijp4W4Df.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-Bfp2yC0P.js.map → use-calendar-move-D07CQGsB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-DsBBYuKB.js.map → use-display-rows-BowlA8tv.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-DaT4uUhX.js.map → use-paged-search-BPiYdk9e.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-DHk7l8MX.js.map → use-run-trace-CctJj-s_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-DPIhXcnb.js.map → use-workflow-page-G3NuEfi0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-Bp8iqkBg.js.map → use-workflow-types-BWS5utgc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{vendor-DQHyyBk1.js.map → vendor-t7Q7QbPu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-CiGUTx4K.js.map → workflow-canvas-BHHRCAvI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-lqBx3RDj.js.map → workflow-field-B1MbuDxB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-DgufTFii.js.map → workflow-graph-editor-C-soTaTw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-C4BtvPnB.js.map → workflow-run-field-CuLkIloc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-CqDaP0V9.js.map → workflow-status-field-Co0qx9xC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-CgL6wHPG.js.map → workflow-workbench-CSnD-k-9.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/status/status-dialog.js +1 -1
- package/dist/theme.css +6 -0
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/app-BnDutf0s.js +0 -34
- package/dist/shell/assets/app-DcrDZ6Fc.css +0 -2
- package/dist/shell/assets/board-display-Ck6nnv4b.js +0 -2
- package/dist/shell/assets/call-rings-Bs9dtURX.js +0 -2
- package/dist/shell/assets/composed-page-Bdzzzuyj.js +0 -2
- package/dist/shell/assets/create-route-DBrv5Kqi.js +0 -2
- package/dist/shell/assets/embedded-list-CPgxhzPw.js +0 -3
- package/dist/shell/assets/en-B0Sx6LpA.js +0 -2
- package/dist/shell/assets/export-worker-DnXy8F95.js +0 -15
- package/dist/shell/assets/import-table-dialog-D1aVXF3R.js +0 -2
- package/dist/shell/assets/invitations-page-CFwYUoqb.js +0 -2
- package/dist/shell/assets/list-page-DwIEEzTz.js +0 -4
- package/dist/shell/assets/maplibre-C7kZagL3.js +0 -2
- package/dist/shell/assets/members-page-BfrzLCXo.js +0 -2
- package/dist/shell/assets/nl-DD4sTnQJ.js +0 -2
- package/dist/shell/assets/organization-page-DxA2154P.js +0 -2
- package/dist/shell/assets/organizations-page-Bf4oXbvZ.js +0 -2
- package/dist/shell/assets/parse-worker-BYXW4dAv.js +0 -35
- package/dist/shell/assets/public-form-page-Dhinql3j.js +0 -2
- package/dist/shell/assets/record-lines-Dmb8bl38.js +0 -2
- package/dist/shell/assets/record-page-Dnpo_8uE.js +0 -3
- package/dist/shell/assets/record-preview-CarOT-Gn.js +0 -2
- package/dist/shell/assets/render-node-DGYXKoGV.js +0 -3
- package/dist/shell/assets/reorder-button-9_dAk_3O.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-HnfzBwws.js +0 -1
- package/dist/shell/assets/sheet-source-DqFYbJpm.js +0 -3
- package/dist/shell/assets/sign-in-policy-page-vjGTg9Do.js +0 -2
- package/dist/shell/assets/start-block-queries-CmVDv8_F.js +0 -2
- package/dist/shell/assets/step-catalog-PWiIgJSI.js +0 -2
- package/dist/shell/assets/timeline-display-eBf3tuig.js +0 -2
- package/dist/shell/assets/use-calendar-move-Bfp2yC0P.js +0 -2
- package/dist/shell/assets/workflow-status-field-CqDaP0V9.js +0 -2
- package/dist/shell/assets/workflow-workbench-CgL6wHPG.js +0 -4
- package/dist/shell-source-maps/assets/app-BnDutf0s.js.map +0 -1
- package/dist/shell-source-maps/assets/embedded-list-CPgxhzPw.js.map +0 -1
- package/dist/shell-source-maps/assets/en-B0Sx6LpA.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-DnXy8F95.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-DD4sTnQJ.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-BYXW4dAv.js.map +0 -1
|
@@ -7,42 +7,50 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
/** A plain left click, which the app follows itself; others open a new tab. */
|
|
8
8
|
const inApp = (event) => event.button === 0 && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;
|
|
9
9
|
/** The trail of where you are; the current page, the last crumb unless it is `above`, shows on phones too. */
|
|
10
|
-
const Breadcrumb = ({ parts, onNavigate }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
loading
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
10
|
+
const Breadcrumb = ({ parts, onNavigate, trailing }) => {
|
|
11
|
+
const lastPart = parts.at(-1);
|
|
12
|
+
const endsOnCurrent = lastPart !== void 0 && (typeof lastPart === "string" || !lastPart.above);
|
|
13
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
14
|
+
"aria-label": text("breadcrumb"),
|
|
15
|
+
className: "flex min-w-0 items-center gap-1.5",
|
|
16
|
+
children: [parts.map((part, index) => {
|
|
17
|
+
const last = index === parts.length - 1;
|
|
18
|
+
const { label, href, loading, above } = typeof part === "string" ? {
|
|
19
|
+
label: part,
|
|
20
|
+
href: void 0,
|
|
21
|
+
loading: false,
|
|
22
|
+
above: false
|
|
23
|
+
} : part;
|
|
24
|
+
const content = loading ? /* @__PURE__ */ jsx(Skeleton, { className: "w-24" }) : label;
|
|
25
|
+
const current = last && !above;
|
|
26
|
+
const text = cn("truncate", current ? "font-semibold max-md:text-mobile-title max-md:font-bold" : "text-muted-foreground");
|
|
27
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
28
|
+
className: cn("min-w-0 items-center gap-1.5", current ? "flex" : "hidden md:flex"),
|
|
29
|
+
children: [
|
|
30
|
+
index > 0 && /* @__PURE__ */ jsx(ChevronRight, { className: "hidden size-3.5 shrink-0 text-faint-foreground md:block" }),
|
|
31
|
+
href ? /* @__PURE__ */ jsx("a", {
|
|
32
|
+
href,
|
|
33
|
+
"aria-current": current ? "page" : void 0,
|
|
34
|
+
"aria-label": loading ? label : void 0,
|
|
35
|
+
"aria-busy": loading || void 0,
|
|
36
|
+
onClick: (event) => {
|
|
37
|
+
if (!onNavigate || !inApp(event)) return;
|
|
38
|
+
event.preventDefault();
|
|
39
|
+
onNavigate(href);
|
|
40
|
+
},
|
|
41
|
+
className: cn(text, "rounded-sm hover:text-foreground hover:underline"),
|
|
42
|
+
children: content
|
|
43
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
44
|
+
className: text,
|
|
45
|
+
"aria-label": loading ? label : void 0,
|
|
46
|
+
"aria-busy": loading || void 0,
|
|
47
|
+
children: content
|
|
48
|
+
}),
|
|
49
|
+
current && trailing
|
|
50
|
+
]
|
|
51
|
+
}, `${index}-${label}`);
|
|
52
|
+
}), !endsOnCurrent && trailing]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
47
55
|
//#endregion
|
|
48
56
|
export { Breadcrumb, inApp };
|
|
@@ -9,7 +9,8 @@ export type DrawerProps = {
|
|
|
9
9
|
/** How long the drawer takes to slide in and out, and its backdrop to fade. */
|
|
10
10
|
export declare const drawerSlideMs = 200;
|
|
11
11
|
/**
|
|
12
|
-
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation
|
|
12
|
+
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation, and
|
|
13
|
+
* moves under the finger as the native drawer does (`useDrawerDrag`), a drag on it or on the dim closing it. It
|
|
13
14
|
* slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
|
|
14
15
|
* less motion asked for it shows and goes at once.
|
|
15
16
|
*/
|
package/dist/app-shell/drawer.js
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { useFocusTrap } from "../lib/use-focus-trap.js";
|
|
3
3
|
import { text } from "./messages.js";
|
|
4
|
+
import { useDrawerDrag } from "../primitives/use-drawer-drag.js";
|
|
4
5
|
import { useEffect, useRef, useState } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
//#region src/app-shell/drawer.tsx
|
|
7
8
|
/** How long the drawer takes to slide in and out, and its backdrop to fade. */
|
|
8
9
|
const drawerSlideMs = 200;
|
|
9
10
|
/**
|
|
10
|
-
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation
|
|
11
|
+
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation, and
|
|
12
|
+
* moves under the finger as the native drawer does (`useDrawerDrag`), a drag on it or on the dim closing it. It
|
|
11
13
|
* slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
|
|
12
14
|
* less motion asked for it shows and goes at once.
|
|
13
15
|
*/
|
|
14
16
|
const Drawer = ({ id, open, onClose, children }) => {
|
|
15
17
|
const panel = useRef(null);
|
|
18
|
+
const backdrop = useRef(null);
|
|
16
19
|
useFocusTrap(panel, open, onClose);
|
|
20
|
+
const draggedOut = useRef(false);
|
|
21
|
+
const { panelHandlers, backdropHandlers, dragged } = useDrawerDrag({
|
|
22
|
+
axis: "x",
|
|
23
|
+
panel,
|
|
24
|
+
backdrop,
|
|
25
|
+
onDraggedClosed: () => {
|
|
26
|
+
draggedOut.current = true;
|
|
27
|
+
onClose();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
17
30
|
const [leaving, setLeaving] = useState(false);
|
|
18
31
|
const [wasOpen, setWasOpen] = useState(open);
|
|
19
32
|
if (open !== wasOpen) {
|
|
20
33
|
setWasOpen(open);
|
|
21
|
-
setLeaving(!open);
|
|
34
|
+
setLeaving(!open && !draggedOut.current);
|
|
35
|
+
if (open) draggedOut.current = false;
|
|
22
36
|
}
|
|
23
37
|
useEffect(() => {
|
|
24
38
|
if (!leaving) return;
|
|
@@ -29,8 +43,10 @@ const Drawer = ({ id, open, onClose, children }) => {
|
|
|
29
43
|
return /* @__PURE__ */ jsxs("div", {
|
|
30
44
|
className: cn("fixed inset-0 z-50 md:hidden", leaving && "pointer-events-none"),
|
|
31
45
|
children: [/* @__PURE__ */ jsx("div", {
|
|
32
|
-
|
|
33
|
-
|
|
46
|
+
ref: backdrop,
|
|
47
|
+
className: cn("absolute inset-0 touch-none bg-backdrop/40 motion-reduce:[animation:none]", leaving ? "[animation:pb-fade-out_200ms_ease-in_forwards]" : "[animation:pb-fade-in_200ms_ease-out]"),
|
|
48
|
+
onClick: () => !dragged() && onClose(),
|
|
49
|
+
...backdropHandlers,
|
|
34
50
|
"aria-hidden": true
|
|
35
51
|
}), /* @__PURE__ */ jsx("div", {
|
|
36
52
|
ref: panel,
|
|
@@ -40,8 +56,9 @@ const Drawer = ({ id, open, onClose, children }) => {
|
|
|
40
56
|
"aria-label": text("navigation"),
|
|
41
57
|
"aria-hidden": leaving || void 0,
|
|
42
58
|
tabIndex: -1,
|
|
43
|
-
className: cn("absolute inset-y-0 left-0 flex w-[
|
|
59
|
+
className: cn("absolute inset-y-0 left-0 flex w-[min(88vw,384px)] touch-pan-y bg-sidebar pl-[var(--pb-safe-left)] shadow-pop outline-none motion-reduce:[animation:none] before:absolute before:inset-y-0 before:right-full before:w-10 before:bg-sidebar", leaving ? "[animation:pb-drawer-out_200ms_ease-in_forwards]" : "[animation:pb-drawer-in_200ms_ease-out]"),
|
|
44
60
|
onClick: (event) => event.target.closest("a") && onClose(),
|
|
61
|
+
...panelHandlers,
|
|
45
62
|
children
|
|
46
63
|
})]
|
|
47
64
|
});
|
|
@@ -32,11 +32,13 @@ type GlobalSearchProps = {
|
|
|
32
32
|
fieldClassName?: string;
|
|
33
33
|
autoFocus?: boolean;
|
|
34
34
|
showShortcut?: boolean;
|
|
35
|
+
/** The results in the page's flow below the field, while there is a query, rather than in a list over the page. */
|
|
36
|
+
inline?: boolean;
|
|
35
37
|
ref?: Ref<HTMLInputElement>;
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
38
40
|
* A search box with grouped results under it, each a link: arrows move through them, Enter or a click opens one and
|
|
39
41
|
* closes the list, keeping the text, so focusing the box again shows the same results. Escape clears, then leaves.
|
|
40
42
|
*/
|
|
41
|
-
export declare const GlobalSearch: ({ search, className, fieldClassName, autoFocus, showShortcut, ref }: GlobalSearchProps) => import("react").JSX.Element;
|
|
43
|
+
export declare const GlobalSearch: ({ search, className, fieldClassName, autoFocus, showShortcut, inline, ref }: GlobalSearchProps) => import("react").JSX.Element;
|
|
42
44
|
//#endregion
|
|
@@ -20,13 +20,13 @@ const opensElsewhere = (event) => event.metaKey || event.ctrlKey || event.shiftK
|
|
|
20
20
|
* A search box with grouped results under it, each a link: arrows move through them, Enter or a click opens one and
|
|
21
21
|
* closes the list, keeping the text, so focusing the box again shows the same results. Escape clears, then leaves.
|
|
22
22
|
*/
|
|
23
|
-
const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, showShortcut = true, ref }) => {
|
|
23
|
+
const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, showShortcut = true, inline, ref }) => {
|
|
24
24
|
const listId = useId();
|
|
25
25
|
const input = useRef(null);
|
|
26
26
|
const [focused, setFocused] = useState(false);
|
|
27
27
|
const [active, setActive] = useState(-1);
|
|
28
28
|
const hits = search.groups.flatMap((group) => group.hits);
|
|
29
|
-
const open = focused && (search.query !== "" || search.loading);
|
|
29
|
+
const open = (focused || Boolean(inline)) && (search.query !== "" || search.loading);
|
|
30
30
|
const optionId = (index) => `${listId}-${index}`;
|
|
31
31
|
const root = useRef(null);
|
|
32
32
|
const list = useRef(null);
|
|
@@ -102,11 +102,11 @@ const GlobalSearch = ({ search, className = "w-96", fieldClassName, autoFocus, s
|
|
|
102
102
|
id: listId,
|
|
103
103
|
role: "listbox",
|
|
104
104
|
"aria-label": text("searchResults"),
|
|
105
|
-
style: {
|
|
105
|
+
style: inline ? void 0 : {
|
|
106
106
|
...right,
|
|
107
107
|
...top
|
|
108
108
|
},
|
|
109
|
-
className: "absolute right-0 top-full z-40 mt-1 max-h-96 w-full min-w-72 overflow-y-auto rounded-lg border bg-background py-1 shadow-pop",
|
|
109
|
+
className: inline ? "mt-2 py-1" : "absolute right-0 top-full z-40 mt-1 max-h-96 w-full min-w-72 overflow-y-auto rounded-lg border bg-background py-1 shadow-pop",
|
|
110
110
|
children: [search.groups.length === 0 && /* @__PURE__ */ jsx("p", {
|
|
111
111
|
className: "px-3 py-2 text-muted-foreground",
|
|
112
112
|
children: search.loading ? text("searching") : text("noMatches", { query: search.query })
|
package/dist/app-shell/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { usePageScroll } from "./page-scroll.js";
|
|
|
3
3
|
import { LogoMark } from "./logo-mark.js";
|
|
4
4
|
import { Logo } from "./logo.js";
|
|
5
5
|
import { logoTapEvent } from "./logo-tap.js";
|
|
6
|
+
import { GlobalSearch, moveActive } from "./global-search.js";
|
|
7
|
+
import { topBarButton } from "./top-bar.js";
|
|
6
8
|
import { sidebarModes } from "./sidebar-mode.js";
|
|
7
9
|
import { StatusDot } from "./status-dot.js";
|
|
8
10
|
import { Sidebar } from "./sidebar.js";
|
|
9
11
|
import { useTopBarSlot } from "./top-bar-slot.js";
|
|
10
|
-
import { GlobalSearch, moveActive } from "./global-search.js";
|
|
11
|
-
import { topBarButton } from "./top-bar.js";
|
|
12
12
|
import { AppShell } from "./app-shell.js";
|
|
13
13
|
import { PageHeader } from "./page-header.js";
|
|
14
14
|
export { AppShell, GlobalSearch, Logo, LogoMark, PageHeader, Sidebar, StatusDot, closeSidebarEvent, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/app-shell/leading-slot.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The top bar's leading slot on a phone, one layout for the app's logo and for the back link: a 28 point box at the
|
|
4
|
+
* bar's left inset, the app's mark or the back chevron, then the app's name or the page's title at the same place.
|
|
5
|
+
*/
|
|
6
|
+
export declare const leadingRow = "flex min-w-0 items-center gap-2.5";
|
|
7
|
+
/** The slot's box: the app mark's size (`AppMark`'s `sm`), which the back chevron takes too. */
|
|
8
|
+
export declare const leadingBox = "size-7";
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/app-shell/leading-slot.ts
|
|
2
|
+
/**
|
|
3
|
+
* The top bar's leading slot on a phone, one layout for the app's logo and for the back link: a 28 point box at the
|
|
4
|
+
* bar's left inset, the app's mark or the back chevron, then the app's name or the page's title at the same place.
|
|
5
|
+
*/
|
|
6
|
+
const leadingRow = "flex min-w-0 items-center gap-2.5";
|
|
7
|
+
/** The slot's box: the app mark's size (`AppMark`'s `sm`), which the back chevron takes too. */
|
|
8
|
+
const leadingBox = "size-7";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { leadingBox, leadingRow };
|
package/dist/app-shell/logo.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { leadingRow } from "./leading-slot.js";
|
|
2
3
|
import { LogoMark, solid } from "./logo-mark.js";
|
|
3
4
|
import { AppMark } from "./app-mark.js";
|
|
4
5
|
import { wordmarkPath } from "./wordmark-path.js";
|
|
@@ -21,7 +22,7 @@ const Wordmark = ({ className }) => /* @__PURE__ */ jsx("svg", {
|
|
|
21
22
|
* icon alone when compact.
|
|
22
23
|
*/
|
|
23
24
|
const Logo = ({ compact, workspace, appName, appIcon }) => /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className:
|
|
25
|
+
className: leadingRow,
|
|
25
26
|
children: [/* @__PURE__ */ jsx(AppMark, {
|
|
26
27
|
appName,
|
|
27
28
|
appIcon
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/app-shell/menu-page.d.ts
|
|
2
|
+
/** The sidebar as a page of its own, which "More" opens where the native tab bar draws the bottom bar. */
|
|
3
|
+
export declare const menuPagePath = "/-/menu";
|
|
4
|
+
/**
|
|
5
|
+
* Where the app goes instead of `path`: for the sidebar's own page, the first tab's address, `firstTab`, or the app's
|
|
6
|
+
* home without one, when the app is `starting` there, as the page is somewhere to go from a tab rather than to start,
|
|
7
|
+
* and whenever More page mode is off (`morePage`), as on a desktop, whose sidebar is beside every page. Nowhere for any
|
|
8
|
+
* other page, which opens as kept.
|
|
9
|
+
*/
|
|
10
|
+
export declare const menuPageInstead: (path: string, firstTab: string | undefined, { starting, morePage }: {
|
|
11
|
+
starting: boolean;
|
|
12
|
+
morePage: boolean;
|
|
13
|
+
}) => string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* While the sidebar's own page shows, the whole document takes the sidebar's colour, so it fills the viewport behind
|
|
16
|
+
* the native tab bar and the areas a pull past either end shows, never the page's background.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useMenuPageBackground: (shown: boolean) => void;
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
//#region src/app-shell/menu-page.ts
|
|
3
|
+
/** The sidebar as a page of its own, which "More" opens where the native tab bar draws the bottom bar. */
|
|
4
|
+
const menuPagePath = "/-/menu";
|
|
5
|
+
/**
|
|
6
|
+
* Where the app goes instead of `path`: for the sidebar's own page, the first tab's address, `firstTab`, or the app's
|
|
7
|
+
* home without one, when the app is `starting` there, as the page is somewhere to go from a tab rather than to start,
|
|
8
|
+
* and whenever More page mode is off (`morePage`), as on a desktop, whose sidebar is beside every page. Nowhere for any
|
|
9
|
+
* other page, which opens as kept.
|
|
10
|
+
*/
|
|
11
|
+
const menuPageInstead = (path, firstTab, { starting, morePage }) => path === "/-/menu" && (starting || !morePage) ? firstTab ?? "/" : void 0;
|
|
12
|
+
/**
|
|
13
|
+
* While the sidebar's own page shows, the whole document takes the sidebar's colour, so it fills the viewport behind
|
|
14
|
+
* the native tab bar and the areas a pull past either end shows, never the page's background.
|
|
15
|
+
*/
|
|
16
|
+
const useMenuPageBackground = (shown) => {
|
|
17
|
+
useLayoutEffect(() => {
|
|
18
|
+
if (!shown) return;
|
|
19
|
+
const root = document.documentElement;
|
|
20
|
+
root.style.setProperty("background-color", "var(--color-sidebar)");
|
|
21
|
+
document.body.style.setProperty("background-color", "var(--color-sidebar)");
|
|
22
|
+
return () => {
|
|
23
|
+
root.style.removeProperty("background-color");
|
|
24
|
+
document.body.style.removeProperty("background-color");
|
|
25
|
+
};
|
|
26
|
+
}, [shown]);
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { menuPageInstead, menuPagePath, useMenuPageBackground };
|
|
@@ -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: "roles" | "
|
|
5
|
-
rich(id: "roles" | "
|
|
4
|
+
(id: "roles" | "resources" | "organizations" | "system" | "loading" | "signOut" | "search" | "signIn" | "noMatches" | "clearSearch" | "navigation" | "tabs" | "couldNotLoad" | "light" | "dark" | "theme" | "more" | "recent" | "couldNotSearch" | "viewAll" | "breadcrumb" | "openNavigation" | "backTo" | "closeSearch" | "globalSearch" | "searchResults" | "searching" | "accountOf" | "profileMenu", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "roles" | "resources" | "organizations" | "system" | "loading" | "signOut" | "search" | "signIn" | "noMatches" | "clearSearch" | "navigation" | "tabs" | "couldNotLoad" | "light" | "dark" | "theme" | "more" | "recent" | "couldNotSearch" | "viewAll" | "breadcrumb" | "openNavigation" | "backTo" | "closeSearch" | "globalSearch" | "searchResults" | "searching" | "accountOf" | "profileMenu", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BottomBarTab } from "./bottom-bar.js";
|
|
2
|
+
//#region src/app-shell/more-page.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Whether the shell is in "More page" mode, as a phone app with a tab bar is: the sidebar is a page of its own that
|
|
5
|
+
* "More" opens, the account sits at the top right of the tabs' pages, search is part of the bottom bar, and a page that
|
|
6
|
+
* is no tab leads back to More. `href` is the sidebar's page, `shown` whether the address is it, and `onTab` whether the
|
|
7
|
+
* page shown is one of the bottom bar's tabs.
|
|
8
|
+
*/
|
|
9
|
+
export type MorePageMode = {
|
|
10
|
+
on: false;
|
|
11
|
+
} | {
|
|
12
|
+
on: true;
|
|
13
|
+
href: string;
|
|
14
|
+
shown: boolean;
|
|
15
|
+
onTab: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type MorePageInput = {
|
|
18
|
+
desktop: boolean;
|
|
19
|
+
/** The bottom bar's tabs; none or an empty list when the app has no bottom bar. */
|
|
20
|
+
tabs: BottomBarTab[] | undefined;
|
|
21
|
+
/** The sidebar's own page, and whether the address is it; none where the app gives it no address. */
|
|
22
|
+
menuPage: {
|
|
23
|
+
href: string;
|
|
24
|
+
shown: boolean;
|
|
25
|
+
} | undefined;
|
|
26
|
+
};
|
|
27
|
+
/** The one place the mode is decided: on below the desktop width, with a bottom bar and a page for the sidebar. */
|
|
28
|
+
export declare const morePageMode: ({ desktop, tabs, menuPage }: MorePageInput) => MorePageMode;
|
|
29
|
+
/** `morePageMode` for the screen the shell is on. */
|
|
30
|
+
export declare const useMorePageMode: (tabs: BottomBarTab[] | undefined, menuPage: MorePageInput["menuPage"]) => MorePageMode;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the account (the person's avatar, or a visitor's way in) is at the top right of the top bar rather than at
|
|
33
|
+
* the bottom of the sidebar: on every phone-width page, so its menu never opens over the sidebar's drawer.
|
|
34
|
+
*/
|
|
35
|
+
export declare const accountInTopBar: (desktop: boolean) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Where search is: in the top bar on a desktop and on a phone without a bottom bar; in More page mode, in the bottom bar
|
|
38
|
+
* where the app put it there (`m.search()`), and otherwise at the top of the More page.
|
|
39
|
+
*/
|
|
40
|
+
export declare const searchPlacement: ({ desktop, more, inBottomBar }: {
|
|
41
|
+
desktop: boolean;
|
|
42
|
+
more: boolean;
|
|
43
|
+
inBottomBar: boolean;
|
|
44
|
+
}) => "top-bar" | "bottom-bar" | "more-page";
|
|
45
|
+
//#endregion
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useIsDesktop } from "../lib/use-media-query.js";
|
|
2
|
+
//#region src/app-shell/more-page.ts
|
|
3
|
+
/** The one place the mode is decided: on below the desktop width, with a bottom bar and a page for the sidebar. */
|
|
4
|
+
const morePageMode = ({ desktop, tabs, menuPage }) => {
|
|
5
|
+
if (desktop || !tabs || tabs.length === 0 || !menuPage) return { on: false };
|
|
6
|
+
return {
|
|
7
|
+
on: true,
|
|
8
|
+
href: menuPage.href,
|
|
9
|
+
shown: menuPage.shown,
|
|
10
|
+
onTab: tabs.some((tab) => tab.active)
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** `morePageMode` for the screen the shell is on. */
|
|
14
|
+
const useMorePageMode = (tabs, menuPage) => morePageMode({
|
|
15
|
+
desktop: useIsDesktop(),
|
|
16
|
+
tabs,
|
|
17
|
+
menuPage
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Whether the account (the person's avatar, or a visitor's way in) is at the top right of the top bar rather than at
|
|
21
|
+
* the bottom of the sidebar: on every phone-width page, so its menu never opens over the sidebar's drawer.
|
|
22
|
+
*/
|
|
23
|
+
const accountInTopBar = (desktop) => !desktop;
|
|
24
|
+
/**
|
|
25
|
+
* Where search is: in the top bar on a desktop and on a phone without a bottom bar; in More page mode, in the bottom bar
|
|
26
|
+
* where the app put it there (`m.search()`), and otherwise at the top of the More page.
|
|
27
|
+
*/
|
|
28
|
+
const searchPlacement = ({ desktop, more, inBottomBar }) => desktop || !more ? "top-bar" : inBottomBar ? "bottom-bar" : "more-page";
|
|
29
|
+
//#endregion
|
|
30
|
+
export { accountInTopBar, morePageMode, searchPlacement, useMorePageMode };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { NativeBridge } from "../app/native-auth-fetch.js";
|
|
2
|
+
//#region src/app-shell/native-tab-bar.d.ts
|
|
3
|
+
/** The plugin that draws the mobile bottom bar as the system tab bar (@protobase/mobile's ProtobaseTabBar). */
|
|
4
|
+
export declare const nativeTabBarPlugin = "ProtobaseTabBar";
|
|
5
|
+
/**
|
|
6
|
+
* A tab as the native bar takes it: its label and its icon as a PNG data URL at 3x, `null` without one; `search` for the
|
|
7
|
+
* search tab, which the native bar draws as its own search.
|
|
8
|
+
*/
|
|
9
|
+
export type NativeTab = {
|
|
10
|
+
label: string;
|
|
11
|
+
icon: string | null;
|
|
12
|
+
search?: true;
|
|
13
|
+
};
|
|
14
|
+
/** The bar the shell wants: none, or its tabs and the current one (`null` for none). */
|
|
15
|
+
export type NativeTabBarState = {
|
|
16
|
+
visible: false;
|
|
17
|
+
} | {
|
|
18
|
+
visible: true;
|
|
19
|
+
tabs: NativeTab[];
|
|
20
|
+
selected: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type NativeTabBar = {
|
|
23
|
+
/**
|
|
24
|
+
* Asks for `state`, the whole of it each time, so the bar always shows what the shell last wanted; resolves with the
|
|
25
|
+
* bar's height while it shows, as `onHeight` tells it only when it changes.
|
|
26
|
+
*/
|
|
27
|
+
set: (state: NativeTabBarState) => Promise<{
|
|
28
|
+
height?: number;
|
|
29
|
+
}>;
|
|
30
|
+
/** Calls `tap` with the index of each tab tapped; returns what stops it. */
|
|
31
|
+
onTap: (tap: (index: number) => void) => () => void;
|
|
32
|
+
/** Calls `told` with the bar's height in CSS pixels, the home indicator's inset included, whenever it changes. */
|
|
33
|
+
onHeight: (told: (height: number) => void) => () => void;
|
|
34
|
+
};
|
|
35
|
+
/** The native tab bar of the app the page runs in, when its bridge offers the plugin; `undefined` otherwise. */
|
|
36
|
+
export declare const nativeTabBar: (bridge: NativeBridge | undefined) => NativeTabBar | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The bar's state for tabs labelled `labels`, with `icons` in the same order, the current one at `selected` and, when
|
|
39
|
+
* there is one, search at `search`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const nativeTabBarState: (labels: string[], icons: Array<string | null>, selected: number, search?: number) => Extract<NativeTabBarState, {
|
|
42
|
+
visible: true;
|
|
43
|
+
}>;
|
|
44
|
+
/** The app's native tab bar (`nativeTabBar`), which the mobile bottom bar draws itself with when there is one. */
|
|
45
|
+
export declare const NativeTabBarContext: import("react").Context<NativeTabBar | undefined>;
|
|
46
|
+
export declare const useNativeTabBar: () => NativeTabBar | undefined;
|
|
47
|
+
//#endregion
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
//#region src/app-shell/native-tab-bar.ts
|
|
3
|
+
/** The plugin that draws the mobile bottom bar as the system tab bar (@protobase/mobile's ProtobaseTabBar). */
|
|
4
|
+
const nativeTabBarPlugin = "ProtobaseTabBar";
|
|
5
|
+
const numberIn = (data, field) => {
|
|
6
|
+
const value = typeof data === "object" && data !== null ? data[field] : void 0;
|
|
7
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
8
|
+
};
|
|
9
|
+
/** The native tab bar of the app the page runs in, when its bridge offers the plugin; `undefined` otherwise. */
|
|
10
|
+
const nativeTabBar = (bridge) => {
|
|
11
|
+
if (!bridge?.isPluginAvailable("ProtobaseTabBar")) return;
|
|
12
|
+
const listen = (event, field, accept, hand) => {
|
|
13
|
+
const listener = bridge.addListener(nativeTabBarPlugin, event, (data) => {
|
|
14
|
+
const value = numberIn(data, field);
|
|
15
|
+
if (value !== void 0 && accept(value)) hand(value);
|
|
16
|
+
});
|
|
17
|
+
return () => void listener.remove();
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
set: async (state) => {
|
|
21
|
+
const height = numberIn(await bridge.nativePromise(nativeTabBarPlugin, "set", state), "height");
|
|
22
|
+
return height !== void 0 && height >= 0 ? { height } : {};
|
|
23
|
+
},
|
|
24
|
+
onTap: (tap) => listen("tap", "index", Number.isInteger, tap),
|
|
25
|
+
onHeight: (told) => listen("height", "height", (height) => height >= 0, told)
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The bar's state for tabs labelled `labels`, with `icons` in the same order, the current one at `selected` and, when
|
|
30
|
+
* there is one, search at `search`.
|
|
31
|
+
*/
|
|
32
|
+
const nativeTabBarState = (labels, icons, selected, search) => ({
|
|
33
|
+
visible: true,
|
|
34
|
+
tabs: labels.map((label, index) => ({
|
|
35
|
+
label,
|
|
36
|
+
icon: icons[index] ?? null,
|
|
37
|
+
...index === search && { search: true }
|
|
38
|
+
})),
|
|
39
|
+
selected: selected >= 0 && selected < labels.length ? selected : null
|
|
40
|
+
});
|
|
41
|
+
/** The app's native tab bar (`nativeTabBar`), which the mobile bottom bar draws itself with when there is one. */
|
|
42
|
+
const NativeTabBarContext = createContext(void 0);
|
|
43
|
+
const useNativeTabBar = () => useContext(NativeTabBarContext);
|
|
44
|
+
//#endregion
|
|
45
|
+
export { NativeTabBarContext, nativeTabBar, nativeTabBarPlugin, nativeTabBarState, useNativeTabBar };
|
|
@@ -20,7 +20,8 @@ export declare const usePageGutter: (on: boolean) => void;
|
|
|
20
20
|
/**
|
|
21
21
|
* While the page scrolls, says how tall its sticky bars are, on the root element: as `--pb-sticky-top` and
|
|
22
22
|
* `--pb-sticky-bottom` for content that sticks inside them, and as the page's scroll padding, which the browser keeps
|
|
23
|
-
* focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in.
|
|
23
|
+
* focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in. It
|
|
24
|
+
* measures again whenever a bar comes or goes (`topShown`, `bottomShown`), as their elements are then new.
|
|
24
25
|
*/
|
|
25
|
-
export declare const usePageInsets: (on: boolean, top: RefObject<HTMLElement | null>, bottom: RefObject<HTMLElement | null>, bottomShown: boolean) => void;
|
|
26
|
+
export declare const usePageInsets: (on: boolean, top: RefObject<HTMLElement | null>, bottom: RefObject<HTMLElement | null>, bottomShown: boolean, topShown?: boolean) => void;
|
|
26
27
|
//#endregion
|
|
@@ -41,9 +41,10 @@ const properties = [
|
|
|
41
41
|
/**
|
|
42
42
|
* While the page scrolls, says how tall its sticky bars are, on the root element: as `--pb-sticky-top` and
|
|
43
43
|
* `--pb-sticky-bottom` for content that sticks inside them, and as the page's scroll padding, which the browser keeps
|
|
44
|
-
* focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in.
|
|
44
|
+
* focused and scrolled-to content clear of, and which a virtual list reads as the part of the page it shows in. It
|
|
45
|
+
* measures again whenever a bar comes or goes (`topShown`, `bottomShown`), as their elements are then new.
|
|
45
46
|
*/
|
|
46
|
-
const usePageInsets = (on, top, bottom, bottomShown) => {
|
|
47
|
+
const usePageInsets = (on, top, bottom, bottomShown, topShown = true) => {
|
|
47
48
|
useLayoutEffect(() => {
|
|
48
49
|
if (!on) return;
|
|
49
50
|
const root = document.documentElement;
|
|
@@ -66,7 +67,8 @@ const usePageInsets = (on, top, bottom, bottomShown) => {
|
|
|
66
67
|
on,
|
|
67
68
|
top,
|
|
68
69
|
bottom,
|
|
69
|
-
bottomShown
|
|
70
|
+
bottomShown,
|
|
71
|
+
topShown
|
|
70
72
|
]);
|
|
71
73
|
};
|
|
72
74
|
//#endregion
|
|
@@ -68,7 +68,11 @@ export type ProfileMenuProps = {
|
|
|
68
68
|
theme?: ProfileTheme;
|
|
69
69
|
/** Shows the person's status by their name, and adds the item that sets it below them. */
|
|
70
70
|
status?: ProfileStatus;
|
|
71
|
+
/** What a screen reader calls the button, "Profile menu" by default. */
|
|
72
|
+
label?: string;
|
|
73
|
+
/** The avatar alone at the end of a phone's top bar, as large as the bar's buttons at any text size (`topBarBox`). */
|
|
74
|
+
inTopBar?: boolean;
|
|
71
75
|
};
|
|
72
76
|
/** The person at the bottom of the sidebar; the menu is fixed to the viewport so a narrow sidebar cannot clip it. */
|
|
73
|
-
export declare const ProfileMenu: ({ user, compact, open: controlled, items, account, onNavigate, onSignOut, organizations, roles, theme, status }: ProfileMenuProps) => import("react").JSX.Element;
|
|
77
|
+
export declare const ProfileMenu: ({ user, compact, open: controlled, items, account, onNavigate, onSignOut, organizations, roles, theme, status, label, inTopBar }: ProfileMenuProps) => import("react").JSX.Element;
|
|
74
78
|
//#endregion
|