@protobase/ui 0.116.0 → 0.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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-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/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/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-messages.d.ts +2 -2
- package/dist/app/list-page.js +1 -1
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/meta-gate-messages.d.ts +2 -2
- package/dist/app/new-version/messages.d.ts +2 -2
- package/dist/app/pages/action-inputs/action-inputs-dialog.js +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-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/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/carousel/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/inline-child-table/messages.d.ts +2 -2
- 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/mailbox/messages.d.ts +2 -2
- package/dist/mocks/customers.d.ts +1 -1
- package/dist/mocks/invoices.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/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/shell/assets/{account-page-9Aq9kvrG.js → account-page-dcJyxP-d.js} +2 -2
- package/dist/shell/assets/app-BAQxWF5r.css +2 -0
- package/dist/shell/assets/app-DTl8rg8j.js +34 -0
- package/dist/shell/assets/{assistant-shell-BGtjYwwY.js → assistant-shell-Bw1jJrLm.js} +2 -2
- package/dist/shell/assets/board-display-DDFDZzOk.js +2 -0
- package/dist/shell/assets/{calendar-display-DKXi1P_o.js → calendar-display-B0R6JkIL.js} +2 -2
- package/dist/shell/assets/call-rings-CzvSKlfI.js +2 -0
- package/dist/shell/assets/{calls-DR-Ci2ND.js → calls-BgwbMyeR.js} +2 -2
- package/dist/shell/assets/{circle-alert-C0Jeesr7.js → circle-alert-CANqQIsU.js} +2 -2
- package/dist/shell/assets/composed-page-gwTeW0b3.js +2 -0
- package/dist/shell/assets/{composer-section-rLoyhseD.js → composer-section-gsOgYgY2.js} +2 -2
- package/dist/shell/assets/{connect-route-B9xNNieq.js → connect-route-CtL1EJIN.js} +2 -2
- package/dist/shell/assets/{copy-field-DkCyHPwg.js → copy-field-CamvXHHQ.js} +2 -2
- package/dist/shell/assets/create-route-Cx8yqS-H.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-Do5pWJ_q.js → custom-step-container-field-0-Q_RuZy.js} +4 -4
- package/dist/shell/assets/embedded-list-56J4XDiR.js +3 -0
- package/dist/shell/assets/en-CtEQkQWj.js +2 -0
- package/dist/shell/assets/{export-dialog-CovrAwYy.js → export-dialog-CEp2g6vx.js} +2 -2
- package/dist/shell/assets/export-worker-DlWkifnE.js +15 -0
- package/dist/shell/assets/{graph-view-BfRhAOfb.js → graph-view-CgjfBK_g.js} +2 -2
- package/dist/shell/assets/{group-donut-DC8GLnC8.js → group-donut-DGZUg_gn.js} +2 -2
- package/dist/shell/assets/{guest-call-page-Dc8M5yz6.js → guest-call-page-BhTshbrl.js} +3 -3
- package/dist/shell/assets/{html-viewer-DH_s-gLB.js → html-viewer-GD1mwLEo.js} +2 -2
- package/dist/shell/assets/{import-dialog-Ge24RdwQ.js → import-dialog-ByRCf2Cp.js} +2 -2
- package/dist/shell/assets/import-table-dialog-CiDY_0RT.js +2 -0
- package/dist/shell/assets/{index-Bi_Jks-d.js → index-PtDa8a1m.js} +1 -1
- package/dist/shell/assets/invitations-page-Bh-RCnnl.js +2 -0
- package/dist/shell/assets/{layout-grid-DCBxzjaE.js → layout-grid-DJrFC12w.js} +2 -2
- package/dist/shell/assets/{legend-item-BZXnHPzh.js → legend-item-YdN_NHUz.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-BU1MrXbN.js +4 -0
- package/dist/shell/assets/maplibre-BedvDUG2.js +2 -0
- package/dist/shell/assets/{markdown-content-DMl-cVjQ.js → markdown-content-BlKajH2l.js} +2 -2
- package/dist/shell/assets/members-page-BYUO0Dq2.js +2 -0
- package/dist/shell/assets/{messages-D5XhIbDz.js → messages-DQ0cj-Ao.js} +2 -2
- package/dist/shell/assets/nl-9OWL4NdF.js +2 -0
- package/dist/shell/assets/organization-page-BrC1nHC-.js +2 -0
- package/dist/shell/assets/organizations-page-CaUeWdr4.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-juUdWvG6.js} +2 -2
- package/dist/shell/assets/{period-chart-CoT2IDzy.js → period-chart-BUZhUb5l.js} +2 -2
- package/dist/shell/assets/{person-row-DBeHOA2K.js → person-row-DH3JhMfz.js} +2 -2
- package/dist/shell/assets/public-form-page-d3TamPPE.js +2 -0
- package/dist/shell/assets/record-lines-NtlHP9Lz.js +2 -0
- package/dist/shell/assets/{record-map-BR34Q9uI.js → record-map-BDXoF9AS.js} +2 -2
- package/dist/shell/assets/{record-opens-Dbjd4FLe.js → record-opens-C1KgR6ff.js} +2 -2
- package/dist/shell/assets/record-page-D88DdoET.js +3 -0
- package/dist/shell/assets/record-preview-BT9_Hdcn.js +2 -0
- package/dist/shell/assets/{records-map-CXanq-qN.js → records-map-BjHcY5gU.js} +2 -2
- package/dist/shell/assets/render-node-v6KfRocH.js +3 -0
- package/dist/shell/assets/reorder-button-B3GeKMOJ.js +2 -0
- package/dist/shell/assets/{run-trace-view-D1DZCrDs.js → run-trace-view-Ddc0SELh.js} +2 -2
- package/dist/shell/assets/{runner-install-field-C2XhrG0M.js → runner-install-field-CiD9Pw1j.js} +2 -2
- package/dist/shell/assets/{runtime-update-C5TxLpYf.js → runtime-update-CoXcnfxB.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-CwLnXvxx.js +1 -0
- package/dist/shell/assets/sheet-source-DbJu1SrV.js +3 -0
- package/dist/shell/assets/sign-in-policy-page-B40iAeJa.js +2 -0
- package/dist/shell/assets/start-block-queries-C_udrEM9.js +2 -0
- package/dist/shell/assets/step-catalog-7obnZV6X.js +2 -0
- package/dist/shell/assets/{step-panel-TfW-31Gv.js → step-panel-BM_xu6Yy.js} +2 -2
- package/dist/shell/assets/timeline-display-CdLfWAbQ.js +2 -0
- package/dist/shell/assets/{trash-BjnGkZfx.js → trash-BHo3HvFy.js} +2 -2
- package/dist/shell/assets/{update-set-BahNKmxv.js → update-set-DTikSoau.js} +2 -2
- package/dist/shell/assets/use-calendar-move-Bhha2yOp.js +2 -0
- package/dist/shell/assets/{use-display-rows-DsBBYuKB.js → use-display-rows-CS_0O_UE.js} +2 -2
- package/dist/shell/assets/{use-paged-search-DaT4uUhX.js → use-paged-search-ChxCRCpF.js} +2 -2
- package/dist/shell/assets/{use-run-trace-DHk7l8MX.js → use-run-trace-BfRRgSgG.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-DPIhXcnb.js → use-workflow-page-CTdBd8_8.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-Bp8iqkBg.js → use-workflow-types-cZQ59ATf.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-B0kWJeH0.js} +4 -4
- package/dist/shell/assets/{workflow-field-lqBx3RDj.js → workflow-field-DXIk6V2Y.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-DgufTFii.js → workflow-graph-editor-Cem4aY2u.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-C4BtvPnB.js → workflow-run-field-BeMn3eOH.js} +3 -3
- package/dist/shell/assets/workflow-status-field-0wvGDiva.js +2 -0
- package/dist/shell/assets/workflow-workbench-qT5c0xnH.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-dcJyxP-d.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-DTl8rg8j.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-BGtjYwwY.js.map → assistant-shell-Bw1jJrLm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-Ck6nnv4b.js.map → board-display-DDFDZzOk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-DKXi1P_o.js.map → calendar-display-B0R6JkIL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-Bs9dtURX.js.map → call-rings-CzvSKlfI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-DR-Ci2ND.js.map → calls-BgwbMyeR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-C0Jeesr7.js.map → circle-alert-CANqQIsU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-Bdzzzuyj.js.map → composed-page-gwTeW0b3.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-rLoyhseD.js.map → composer-section-gsOgYgY2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-B9xNNieq.js.map → connect-route-CtL1EJIN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-DkCyHPwg.js.map → copy-field-CamvXHHQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-DBrv5Kqi.js.map → create-route-Cx8yqS-H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-Do5pWJ_q.js.map → custom-step-container-field-0-Q_RuZy.js.map} +1 -1
- package/dist/shell-source-maps/assets/embedded-list-56J4XDiR.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-CEp2g6vx.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-CgjfBK_g.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-DC8GLnC8.js.map → group-donut-DGZUg_gn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-Dc8M5yz6.js.map → guest-call-page-BhTshbrl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-DH_s-gLB.js.map → html-viewer-GD1mwLEo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-Ge24RdwQ.js.map → import-dialog-ByRCf2Cp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-D1aVXF3R.js.map → import-table-dialog-CiDY_0RT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-CFwYUoqb.js.map → invitations-page-Bh-RCnnl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-DCBxzjaE.js.map → layout-grid-DJrFC12w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-BZXnHPzh.js.map → legend-item-YdN_NHUz.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-BU1MrXbN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-C7kZagL3.js.map → maplibre-BedvDUG2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-DMl-cVjQ.js.map → markdown-content-BlKajH2l.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-BfrzLCXo.js.map → members-page-BYUO0Dq2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-D5XhIbDz.js.map → messages-DQ0cj-Ao.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-BrC1nHC-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Bf4oXbvZ.js.map → organizations-page-CaUeWdr4.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-juUdWvG6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-CoT2IDzy.js.map → period-chart-BUZhUb5l.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DBeHOA2K.js.map → person-row-DH3JhMfz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-Dhinql3j.js.map → public-form-page-d3TamPPE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-Dmb8bl38.js.map → record-lines-NtlHP9Lz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-BR34Q9uI.js.map → record-map-BDXoF9AS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-Dbjd4FLe.js.map → record-opens-C1KgR6ff.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-Dnpo_8uE.js.map → record-page-D88DdoET.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-CarOT-Gn.js.map → record-preview-BT9_Hdcn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-CXanq-qN.js.map → records-map-BjHcY5gU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-DGYXKoGV.js.map → render-node-v6KfRocH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-9_dAk_3O.js.map → reorder-button-B3GeKMOJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-D1DZCrDs.js.map → run-trace-view-Ddc0SELh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-C2XhrG0M.js.map → runner-install-field-CiD9Pw1j.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-C5TxLpYf.js.map → runtime-update-CoXcnfxB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-DqFYbJpm.js.map → sheet-source-DbJu1SrV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-vjGTg9Do.js.map → sign-in-policy-page-B40iAeJa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-CmVDv8_F.js.map → start-block-queries-C_udrEM9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-PWiIgJSI.js.map → step-catalog-7obnZV6X.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-TfW-31Gv.js.map → step-panel-BM_xu6Yy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-eBf3tuig.js.map → timeline-display-CdLfWAbQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BjnGkZfx.js.map → trash-BHo3HvFy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-BahNKmxv.js.map → update-set-DTikSoau.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-Bfp2yC0P.js.map → use-calendar-move-Bhha2yOp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-DsBBYuKB.js.map → use-display-rows-CS_0O_UE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-DaT4uUhX.js.map → use-paged-search-ChxCRCpF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-DHk7l8MX.js.map → use-run-trace-BfRRgSgG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-DPIhXcnb.js.map → use-workflow-page-CTdBd8_8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-Bp8iqkBg.js.map → use-workflow-types-cZQ59ATf.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-B0kWJeH0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-lqBx3RDj.js.map → workflow-field-DXIk6V2Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-DgufTFii.js.map → workflow-graph-editor-Cem4aY2u.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-C4BtvPnB.js.map → workflow-run-field-BeMn3eOH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-CqDaP0V9.js.map → workflow-status-field-0wvGDiva.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-CgL6wHPG.js.map → workflow-workbench-qT5c0xnH.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
|
@@ -2,24 +2,28 @@ import { cn } from "../lib/cn.js";
|
|
|
2
2
|
import { text } from "./messages.js";
|
|
3
3
|
import { Badge } from "../primitives/badge.js";
|
|
4
4
|
import { Avatar } from "../primitives/avatar.js";
|
|
5
|
+
import { topBarBox } from "./top-bar.js";
|
|
5
6
|
import { SwitchGroup } from "./switch-group.js";
|
|
6
7
|
import { ThemeSwitch } from "./theme-switch.js";
|
|
8
|
+
import { MenuSurface } from "../primitives/menu-surface.js";
|
|
7
9
|
import { useEffect, useRef, useState } from "react";
|
|
8
10
|
import { ChevronsUpDown, LogOut, SmilePlus } from "lucide-react";
|
|
9
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
12
|
//#region src/app-shell/profile-menu.tsx
|
|
11
13
|
const menuRow = "flex min-h-11 w-full items-center gap-2.5 px-3 py-1.5 text-left text-muted-foreground hover:bg-muted md:min-h-0";
|
|
12
14
|
/** The person at the bottom of the sidebar; the menu is fixed to the viewport so a narrow sidebar cannot clip it. */
|
|
13
|
-
const ProfileMenu = ({ user, compact, open: controlled, items = [], account, onNavigate, onSignOut, organizations, roles, theme, status }) => {
|
|
15
|
+
const ProfileMenu = ({ user, compact, open: controlled, items = [], account, onNavigate, onSignOut, organizations, roles, theme, status, label, inTopBar }) => {
|
|
14
16
|
const activeRole = roles?.roles.find((role) => role.name === roles.active);
|
|
15
17
|
const [local, setLocal] = useState(false);
|
|
16
18
|
const open = controlled ?? local;
|
|
17
19
|
const root = useRef(null);
|
|
20
|
+
const menuRef = useRef(null);
|
|
18
21
|
const [anchor, setAnchor] = useState();
|
|
19
22
|
useEffect(() => {
|
|
20
23
|
if (!open || controlled !== void 0) return;
|
|
21
24
|
const close = (event) => {
|
|
22
|
-
|
|
25
|
+
const inside = root.current?.contains(event.target) || menuRef.current?.contains(event.target);
|
|
26
|
+
if (event instanceof KeyboardEvent ? event.key === "Escape" : !inside) setLocal(false);
|
|
23
27
|
};
|
|
24
28
|
document.addEventListener("mousedown", close);
|
|
25
29
|
document.addEventListener("keydown", close);
|
|
@@ -43,17 +47,140 @@ const ProfileMenu = ({ user, compact, open: controlled, items = [], account, onN
|
|
|
43
47
|
});
|
|
44
48
|
setLocal(!local);
|
|
45
49
|
};
|
|
50
|
+
const menu = /* @__PURE__ */ jsxs("div", {
|
|
51
|
+
ref: menuRef,
|
|
52
|
+
role: "menu",
|
|
53
|
+
className: controlled === void 0 ? "fixed z-[60] w-56 overflow-hidden rounded-lg border bg-background py-1 shadow-pop" : "absolute bottom-full left-0 z-50 mb-2 w-56 overflow-hidden rounded-lg border bg-background py-1 shadow-pop",
|
|
54
|
+
style: controlled === void 0 && anchor ? {
|
|
55
|
+
left: anchor.left,
|
|
56
|
+
bottom: anchor.bottom
|
|
57
|
+
} : void 0,
|
|
58
|
+
children: [
|
|
59
|
+
account ? /* @__PURE__ */ jsxs("a", {
|
|
60
|
+
role: "menuitem",
|
|
61
|
+
href: account,
|
|
62
|
+
onClick: (event) => follow(event, account),
|
|
63
|
+
className: "block border-b px-3 pb-2 pt-1.5 hover:bg-muted",
|
|
64
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
65
|
+
className: "font-medium",
|
|
66
|
+
children: user.name
|
|
67
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
68
|
+
className: "truncate text-xs text-muted-foreground",
|
|
69
|
+
children: user.email
|
|
70
|
+
})]
|
|
71
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
72
|
+
className: "border-b px-3 pb-2 pt-1.5",
|
|
73
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
74
|
+
className: "font-medium",
|
|
75
|
+
children: user.name
|
|
76
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: "truncate text-xs text-muted-foreground",
|
|
78
|
+
children: user.email
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
status && /* @__PURE__ */ jsx("div", {
|
|
82
|
+
className: "border-b py-1",
|
|
83
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
role: "menuitem",
|
|
86
|
+
className: menuRow,
|
|
87
|
+
onClick: () => {
|
|
88
|
+
setLocal(false);
|
|
89
|
+
status.onOpen();
|
|
90
|
+
},
|
|
91
|
+
children: [/* @__PURE__ */ jsx(SmilePlus, { className: "size-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
|
|
92
|
+
className: "min-w-0 flex-1 truncate",
|
|
93
|
+
children: status.label
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
}),
|
|
97
|
+
organizations && (organizations.current || organizations.others.length > 0) && /* @__PURE__ */ jsx(SwitchGroup, {
|
|
98
|
+
label: text("organizations"),
|
|
99
|
+
...organizations.current && { current: {
|
|
100
|
+
id: organizations.current.id,
|
|
101
|
+
label: organizations.current.name
|
|
102
|
+
} },
|
|
103
|
+
others: organizations.others.map(({ id, name }) => ({
|
|
104
|
+
id,
|
|
105
|
+
label: name
|
|
106
|
+
})),
|
|
107
|
+
rowClassName: menuRow,
|
|
108
|
+
onSwitch: (id) => {
|
|
109
|
+
setLocal(false);
|
|
110
|
+
organizations.onSwitch(id);
|
|
111
|
+
}
|
|
112
|
+
}),
|
|
113
|
+
roles && roles.roles.length > 1 && /* @__PURE__ */ jsx(SwitchGroup, {
|
|
114
|
+
label: text("roles"),
|
|
115
|
+
...activeRole && { current: {
|
|
116
|
+
id: activeRole.name,
|
|
117
|
+
label: activeRole.label
|
|
118
|
+
} },
|
|
119
|
+
others: roles.roles.filter((role) => role !== activeRole).map(({ name, label }) => ({
|
|
120
|
+
id: name,
|
|
121
|
+
label
|
|
122
|
+
})),
|
|
123
|
+
rowClassName: menuRow,
|
|
124
|
+
onSwitch: (name) => {
|
|
125
|
+
setLocal(false);
|
|
126
|
+
roles.onSwitch(name);
|
|
127
|
+
}
|
|
128
|
+
}),
|
|
129
|
+
groups.map((group, index) => /* @__PURE__ */ jsx("div", {
|
|
130
|
+
role: "group",
|
|
131
|
+
className: cn("py-1", (index < groups.length - 1 || theme || onSignOut) && "border-b"),
|
|
132
|
+
children: group.map((item) => {
|
|
133
|
+
const Icon = item.icon;
|
|
134
|
+
return /* @__PURE__ */ jsxs("a", {
|
|
135
|
+
role: "menuitem",
|
|
136
|
+
href: item.href,
|
|
137
|
+
"aria-current": item.active ? "page" : void 0,
|
|
138
|
+
...item.external ? {
|
|
139
|
+
target: "_blank",
|
|
140
|
+
rel: "noreferrer"
|
|
141
|
+
} : {},
|
|
142
|
+
onClick: (event) => follow(event, item.href, item.external),
|
|
143
|
+
className: cn(menuRow, item.active && "bg-muted text-foreground"),
|
|
144
|
+
children: [/* @__PURE__ */ jsx(Icon, { className: "size-4" }), item.label]
|
|
145
|
+
}, item.id);
|
|
146
|
+
})
|
|
147
|
+
}, group[0]?.id)),
|
|
148
|
+
theme && /* @__PURE__ */ jsx("div", {
|
|
149
|
+
className: cn(onSignOut && "border-b"),
|
|
150
|
+
children: /* @__PURE__ */ jsx(ThemeSwitch, {
|
|
151
|
+
theme,
|
|
152
|
+
className: cn(menuRow, "hover:bg-transparent")
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
onSignOut && /* @__PURE__ */ jsxs("button", {
|
|
156
|
+
type: "button",
|
|
157
|
+
role: "menuitem",
|
|
158
|
+
onClick: onSignOut,
|
|
159
|
+
className: menuRow,
|
|
160
|
+
children: [/* @__PURE__ */ jsx(LogOut, { className: "size-4" }), text("signOut")]
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
46
164
|
return /* @__PURE__ */ jsxs("div", {
|
|
47
165
|
ref: root,
|
|
48
166
|
className: "relative",
|
|
49
167
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
50
168
|
type: "button",
|
|
51
|
-
className: "flex min-h-11 w-full items-center gap-2.5 rounded-md p-1 text-left hover:bg-muted md:min-h-0",
|
|
52
|
-
"aria-label": text("profileMenu"),
|
|
169
|
+
className: inTopBar ? cn(topBarBox, "flex items-center justify-center rounded-md hover:bg-muted") : "flex min-h-11 w-full items-center gap-2.5 rounded-md p-1 text-left hover:bg-muted md:min-h-0",
|
|
170
|
+
"aria-label": label ?? text("profileMenu"),
|
|
53
171
|
"aria-haspopup": "menu",
|
|
54
172
|
"aria-expanded": open,
|
|
55
173
|
onClick: toggle,
|
|
56
|
-
children: [/* @__PURE__ */ jsx(
|
|
174
|
+
children: [inTopBar ? /* @__PURE__ */ jsx("span", {
|
|
175
|
+
"aria-hidden": true,
|
|
176
|
+
className: "contents",
|
|
177
|
+
children: /* @__PURE__ */ jsx(Avatar, {
|
|
178
|
+
initials: user.initials,
|
|
179
|
+
hue: user.hue,
|
|
180
|
+
size: "bar",
|
|
181
|
+
className: "ring-0"
|
|
182
|
+
})
|
|
183
|
+
}) : /* @__PURE__ */ jsx(Avatar, {
|
|
57
184
|
initials: user.initials,
|
|
58
185
|
hue: user.hue,
|
|
59
186
|
size: "md",
|
|
@@ -76,118 +203,12 @@ const ProfileMenu = ({ user, compact, open: controlled, items = [], account, onN
|
|
|
76
203
|
children: user.role
|
|
77
204
|
})]
|
|
78
205
|
}), /* @__PURE__ */ jsx(ChevronsUpDown, { className: "size-3.5 shrink-0 text-faint-foreground" })] })]
|
|
79
|
-
}), open && /* @__PURE__ */
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} : void 0,
|
|
86
|
-
children: [
|
|
87
|
-
account ? /* @__PURE__ */ jsxs("a", {
|
|
88
|
-
role: "menuitem",
|
|
89
|
-
href: account,
|
|
90
|
-
onClick: (event) => follow(event, account),
|
|
91
|
-
className: "block border-b px-3 pb-2 pt-1.5 hover:bg-muted",
|
|
92
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
93
|
-
className: "font-medium",
|
|
94
|
-
children: user.name
|
|
95
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
96
|
-
className: "truncate text-xs text-muted-foreground",
|
|
97
|
-
children: user.email
|
|
98
|
-
})]
|
|
99
|
-
}) : /* @__PURE__ */ jsxs("div", {
|
|
100
|
-
className: "border-b px-3 pb-2 pt-1.5",
|
|
101
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
102
|
-
className: "font-medium",
|
|
103
|
-
children: user.name
|
|
104
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
105
|
-
className: "truncate text-xs text-muted-foreground",
|
|
106
|
-
children: user.email
|
|
107
|
-
})]
|
|
108
|
-
}),
|
|
109
|
-
status && /* @__PURE__ */ jsx("div", {
|
|
110
|
-
className: "border-b py-1",
|
|
111
|
-
children: /* @__PURE__ */ jsxs("button", {
|
|
112
|
-
type: "button",
|
|
113
|
-
role: "menuitem",
|
|
114
|
-
className: menuRow,
|
|
115
|
-
onClick: () => {
|
|
116
|
-
setLocal(false);
|
|
117
|
-
status.onOpen();
|
|
118
|
-
},
|
|
119
|
-
children: [/* @__PURE__ */ jsx(SmilePlus, { className: "size-4 shrink-0" }), /* @__PURE__ */ jsx("span", {
|
|
120
|
-
className: "min-w-0 flex-1 truncate",
|
|
121
|
-
children: status.label
|
|
122
|
-
})]
|
|
123
|
-
})
|
|
124
|
-
}),
|
|
125
|
-
organizations && (organizations.current || organizations.others.length > 0) && /* @__PURE__ */ jsx(SwitchGroup, {
|
|
126
|
-
label: text("organizations"),
|
|
127
|
-
...organizations.current && { current: {
|
|
128
|
-
id: organizations.current.id,
|
|
129
|
-
label: organizations.current.name
|
|
130
|
-
} },
|
|
131
|
-
others: organizations.others.map(({ id, name }) => ({
|
|
132
|
-
id,
|
|
133
|
-
label: name
|
|
134
|
-
})),
|
|
135
|
-
rowClassName: menuRow,
|
|
136
|
-
onSwitch: (id) => {
|
|
137
|
-
setLocal(false);
|
|
138
|
-
organizations.onSwitch(id);
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
141
|
-
roles && roles.roles.length > 1 && /* @__PURE__ */ jsx(SwitchGroup, {
|
|
142
|
-
label: text("roles"),
|
|
143
|
-
...activeRole && { current: {
|
|
144
|
-
id: activeRole.name,
|
|
145
|
-
label: activeRole.label
|
|
146
|
-
} },
|
|
147
|
-
others: roles.roles.filter((role) => role !== activeRole).map(({ name, label }) => ({
|
|
148
|
-
id: name,
|
|
149
|
-
label
|
|
150
|
-
})),
|
|
151
|
-
rowClassName: menuRow,
|
|
152
|
-
onSwitch: (name) => {
|
|
153
|
-
setLocal(false);
|
|
154
|
-
roles.onSwitch(name);
|
|
155
|
-
}
|
|
156
|
-
}),
|
|
157
|
-
groups.map((group, index) => /* @__PURE__ */ jsx("div", {
|
|
158
|
-
role: "group",
|
|
159
|
-
className: cn("py-1", (index < groups.length - 1 || theme || onSignOut) && "border-b"),
|
|
160
|
-
children: group.map((item) => {
|
|
161
|
-
const Icon = item.icon;
|
|
162
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
163
|
-
role: "menuitem",
|
|
164
|
-
href: item.href,
|
|
165
|
-
"aria-current": item.active ? "page" : void 0,
|
|
166
|
-
...item.external ? {
|
|
167
|
-
target: "_blank",
|
|
168
|
-
rel: "noreferrer"
|
|
169
|
-
} : {},
|
|
170
|
-
onClick: (event) => follow(event, item.href, item.external),
|
|
171
|
-
className: cn(menuRow, item.active && "bg-muted text-foreground"),
|
|
172
|
-
children: [/* @__PURE__ */ jsx(Icon, { className: "size-4" }), item.label]
|
|
173
|
-
}, item.id);
|
|
174
|
-
})
|
|
175
|
-
}, group[0]?.id)),
|
|
176
|
-
theme && /* @__PURE__ */ jsx("div", {
|
|
177
|
-
className: cn(onSignOut && "border-b"),
|
|
178
|
-
children: /* @__PURE__ */ jsx(ThemeSwitch, {
|
|
179
|
-
theme,
|
|
180
|
-
className: cn(menuRow, "hover:bg-transparent")
|
|
181
|
-
})
|
|
182
|
-
}),
|
|
183
|
-
onSignOut && /* @__PURE__ */ jsxs("button", {
|
|
184
|
-
type: "button",
|
|
185
|
-
role: "menuitem",
|
|
186
|
-
onClick: onSignOut,
|
|
187
|
-
className: menuRow,
|
|
188
|
-
children: [/* @__PURE__ */ jsx(LogOut, { className: "size-4" }), text("signOut")]
|
|
189
|
-
})
|
|
190
|
-
]
|
|
206
|
+
}), controlled !== void 0 ? open && menu : /* @__PURE__ */ jsx(MenuSurface, {
|
|
207
|
+
open,
|
|
208
|
+
title: text("profileMenu"),
|
|
209
|
+
onClose: () => setLocal(false),
|
|
210
|
+
menu,
|
|
211
|
+
inPlaceOnDesktop: true
|
|
191
212
|
})]
|
|
192
213
|
});
|
|
193
214
|
};
|
|
@@ -3,6 +3,7 @@ import { NavGroup } from "./nav.js";
|
|
|
3
3
|
import { ProfileTheme } from "./theme-switch.js";
|
|
4
4
|
import { ProfileMenuItem, ProfileOrganizations, ProfileRoles, ProfileStatus, ShellUser } from "./profile-menu.js";
|
|
5
5
|
import { SidebarMode } from "./sidebar-mode.js";
|
|
6
|
+
import { GlobalSearchModel } from "./global-search.js";
|
|
6
7
|
import { ShellLogoProps } from "./logo.js";
|
|
7
8
|
import { ComponentType, ReactNode } from "react";
|
|
8
9
|
//#region src/app-shell/sidebar.d.ts
|
|
@@ -42,6 +43,16 @@ export type SidebarProps = {
|
|
|
42
43
|
notice?: ReactNode;
|
|
43
44
|
/** As wide as its container, such as the phone drawer, in place of the mode's width. */
|
|
44
45
|
fill?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Drawn as a page of its own, in the page's flow, which scrolls it, rather than as a panel the height of its
|
|
48
|
+
* container; as wide as the page, with no edge, its logo fixed at the top under the status bar, as the page's top bar
|
|
49
|
+
* would be, and the items scrolling below it.
|
|
50
|
+
*/
|
|
51
|
+
page?: boolean;
|
|
52
|
+
/** The account is in the top bar (`accountInTopBar`), so the sidebar's foot leaves it out. */
|
|
53
|
+
accountInTopBar?: boolean;
|
|
54
|
+
/** The app's search at its top, as on a phone (`searchPlacement`), whose results show in place of the items. */
|
|
55
|
+
search?: GlobalSearchModel;
|
|
45
56
|
};
|
|
46
|
-
export declare const Sidebar: ({ mode, activeItem, user, workspace, appName, appIcon, forceExpanded, profileMenuOpen, groups, userMenu, account, onNavigate, onSignOut, signIn, organizations, roles, theme, status, sticky, logo: SidebarLogo, notice, fill }: SidebarProps) => import("react").JSX.Element;
|
|
57
|
+
export declare const Sidebar: ({ mode, activeItem, user, workspace, appName, appIcon, forceExpanded, profileMenuOpen, groups, userMenu, account, onNavigate, onSignOut, signIn, organizations, roles, theme, status, sticky, logo: SidebarLogo, notice, fill, page, search, accountInTopBar }: SidebarProps) => import("react").JSX.Element;
|
|
47
58
|
//#endregion
|
|
@@ -3,6 +3,7 @@ import { text } from "./messages.js";
|
|
|
3
3
|
import { RouteLink } from "../primitives/route-link.js";
|
|
4
4
|
import { Logo } from "./logo.js";
|
|
5
5
|
import { tellLogoTap } from "./logo-tap.js";
|
|
6
|
+
import { GlobalSearch } from "./global-search.js";
|
|
6
7
|
import { ThemeSwitch } from "./theme-switch.js";
|
|
7
8
|
import { ProfileMenu } from "./profile-menu.js";
|
|
8
9
|
import { SidebarCreateLink } from "./sidebar-create-link.js";
|
|
@@ -13,17 +14,17 @@ import { Fragment } from "react";
|
|
|
13
14
|
import { LogIn } from "lucide-react";
|
|
14
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
16
|
//#region src/app-shell/sidebar.tsx
|
|
16
|
-
const Sidebar = ({ mode, activeItem, user, workspace, appName, appIcon, forceExpanded, profileMenuOpen, groups = [], userMenu, account, onNavigate, onSignOut, signIn, organizations, roles, theme, status, sticky, logo: SidebarLogo = Logo, notice, fill }) => {
|
|
17
|
+
const Sidebar = ({ mode, activeItem, user, workspace, appName, appIcon, forceExpanded, profileMenuOpen, groups = [], userMenu, account, onNavigate, onSignOut, signIn, organizations, roles, theme, status, sticky, logo: SidebarLogo = Logo, notice, fill, page, search, accountInTopBar }) => {
|
|
17
18
|
const expanding = mode === "icon-expand";
|
|
18
19
|
const expanded = expanding && forceExpanded;
|
|
19
20
|
const inline = isTextMode(mode) || expanding;
|
|
20
21
|
return /* @__PURE__ */ jsx("nav", {
|
|
21
22
|
"aria-label": text("resources"),
|
|
22
|
-
className: cn(sticky ? "sticky top-0 h-dvh self-start" : "relative", "z-30 shrink-0", fill ? "w-full" : sidebarWidth[mode]),
|
|
23
|
+
className: page ? "w-full" : cn(sticky ? "sticky top-0 h-dvh self-start" : "relative", "z-30 shrink-0", fill ? "w-full" : sidebarWidth[mode]),
|
|
23
24
|
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className: cn("group/side absolute inset-y-0 left-0 flex flex-col overflow-hidden border-r bg-sidebar pb-[var(--pb-safe-bottom)] pt-[var(--pb-safe-top)]", expanding ? "w-14 transition-[width,box-shadow] duration-150 hover:w-60 hover:shadow-pop focus-within:w-60 focus-within:shadow-pop" : "w-full", expanded && "w-60 shadow-pop"),
|
|
25
|
+
className: cn(page ? "group/side flex flex-col bg-sidebar" : "group/side absolute inset-y-0 left-0 flex flex-col overflow-hidden border-r bg-sidebar pb-[var(--pb-safe-bottom)] pt-[var(--pb-safe-top)]", expanding ? "w-14 transition-[width,box-shadow] duration-150 hover:w-60 hover:shadow-pop focus-within:w-60 focus-within:shadow-pop" : "w-full", expanded && "w-60 shadow-pop"),
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */ jsx("div", {
|
|
27
|
+
!page && /* @__PURE__ */ jsx("div", {
|
|
27
28
|
className: cn("flex h-12 shrink-0 items-center px-3.5", mode === "icon-label" && "justify-center px-0"),
|
|
28
29
|
onClick: () => tellLogoTap(),
|
|
29
30
|
children: /* @__PURE__ */ jsx(SidebarLogo, {
|
|
@@ -33,8 +34,17 @@ const Sidebar = ({ mode, activeItem, user, workspace, appName, appIcon, forceExp
|
|
|
33
34
|
appIcon
|
|
34
35
|
})
|
|
35
36
|
}),
|
|
36
|
-
/* @__PURE__ */ jsx("div", {
|
|
37
|
-
className:
|
|
37
|
+
search && /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: "px-5 pt-3 pb-3",
|
|
39
|
+
children: /* @__PURE__ */ jsx(GlobalSearch, {
|
|
40
|
+
search,
|
|
41
|
+
className: "w-full",
|
|
42
|
+
showShortcut: false,
|
|
43
|
+
inline: true
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
!(search && (search.query !== "" || search.loading)) && /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: cn(page ? "pb-2" : "flex-1 overflow-y-auto overflow-x-hidden pb-2", mode === "icon-label" ? "px-2" : "px-2"),
|
|
38
48
|
children: groups.map((group, index) => /* @__PURE__ */ jsxs("div", {
|
|
39
49
|
className: cn("flex flex-col gap-0.5", index > 0 && "mt-3"),
|
|
40
50
|
children: [inline ? group.label && /* @__PURE__ */ jsx("h2", {
|
|
@@ -62,9 +72,9 @@ const Sidebar = ({ mode, activeItem, user, workspace, appName, appIcon, forceExp
|
|
|
62
72
|
}, group.label))
|
|
63
73
|
}),
|
|
64
74
|
notice,
|
|
65
|
-
/* @__PURE__ */ jsx("div", {
|
|
66
|
-
className: cn("shrink-0 border-t p-2", mode !== "text-large" && mode !== "text-small" && !expanding && "flex justify-center"),
|
|
67
|
-
children: user ? /* @__PURE__ */ jsx(ProfileMenu, {
|
|
75
|
+
!(page && user) && /* @__PURE__ */ jsx("div", {
|
|
76
|
+
className: cn("shrink-0 border-t p-2 empty:hidden", mode !== "text-large" && mode !== "text-small" && !expanding && "flex justify-center"),
|
|
77
|
+
children: user && accountInTopBar ? null : user ? /* @__PURE__ */ jsx(ProfileMenu, {
|
|
68
78
|
user,
|
|
69
79
|
compact: !inline,
|
|
70
80
|
open: profileMenuOpen,
|
|
@@ -79,7 +89,7 @@ const Sidebar = ({ mode, activeItem, user, workspace, appName, appIcon, forceExp
|
|
|
79
89
|
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [theme && inline && /* @__PURE__ */ jsx(ThemeSwitch, {
|
|
80
90
|
theme,
|
|
81
91
|
className: "flex min-h-11 w-full items-center gap-2.5 whitespace-nowrap p-1.5 text-muted-foreground md:min-h-0"
|
|
82
|
-
}), signIn && /* @__PURE__ */ jsxs(RouteLink, {
|
|
92
|
+
}), signIn && !page && !accountInTopBar && /* @__PURE__ */ jsxs(RouteLink, {
|
|
83
93
|
to: signIn,
|
|
84
94
|
"aria-label": text("signIn"),
|
|
85
95
|
className: "flex min-h-11 w-full items-center gap-2.5 rounded-md p-1.5 text-left font-medium text-muted-foreground hover:bg-muted hover:text-foreground md:min-h-0",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/app-shell/tab-icon.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A tab's SVG icon as a PNG data URL, in black on transparent, for the native tab bar to tint as it does its own; `null`
|
|
4
|
+
* without an icon or where it cannot be drawn.
|
|
5
|
+
*/
|
|
6
|
+
export declare const tabIcon: (svg: SVGElement | null) => Promise<string | null>;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/app-shell/tab-icon.ts
|
|
2
|
+
const drawn = /* @__PURE__ */ new Map();
|
|
3
|
+
/** Pixels a side the icon is drawn at: 24 points at 3x, as the native tab bar takes it. */
|
|
4
|
+
const side = 72;
|
|
5
|
+
/**
|
|
6
|
+
* A tab's SVG icon as a PNG data URL, in black on transparent, for the native tab bar to tint as it does its own; `null`
|
|
7
|
+
* without an icon or where it cannot be drawn.
|
|
8
|
+
*/
|
|
9
|
+
const tabIcon = (svg) => {
|
|
10
|
+
if (!svg) return Promise.resolve(null);
|
|
11
|
+
const copy = svg.cloneNode(true);
|
|
12
|
+
copy.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
13
|
+
copy.setAttribute("width", "24");
|
|
14
|
+
copy.setAttribute("height", "24");
|
|
15
|
+
copy.removeAttribute("class");
|
|
16
|
+
const markup = new XMLSerializer().serializeToString(copy).replaceAll("currentColor", "#000");
|
|
17
|
+
let icon = drawn.get(markup);
|
|
18
|
+
if (!icon) {
|
|
19
|
+
icon = new Promise((resolve) => {
|
|
20
|
+
const image = new Image();
|
|
21
|
+
image.onload = () => {
|
|
22
|
+
const canvas = document.createElement("canvas");
|
|
23
|
+
canvas.width = side;
|
|
24
|
+
canvas.height = side;
|
|
25
|
+
const context = canvas.getContext("2d");
|
|
26
|
+
if (!context) return resolve(null);
|
|
27
|
+
context.drawImage(image, 0, 0, side, side);
|
|
28
|
+
resolve(canvas.toDataURL("image/png"));
|
|
29
|
+
};
|
|
30
|
+
image.onerror = () => resolve(null);
|
|
31
|
+
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(markup)}`;
|
|
32
|
+
});
|
|
33
|
+
drawn.set(markup, icon);
|
|
34
|
+
}
|
|
35
|
+
return icon;
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { tabIcon };
|
|
@@ -22,6 +22,19 @@ export type TopBarProps = {
|
|
|
22
22
|
* spacer of its height, so it stays put while the page is pulled past its top as well, as an iOS app's bar does.
|
|
23
23
|
*/
|
|
24
24
|
sticky?: boolean;
|
|
25
|
+
/** In the app's brand colour on a phone (`brandBar`), up behind the status bar. */
|
|
26
|
+
brand?: boolean;
|
|
27
|
+
/** In place of the back link and the trail, such as the app's logo and name on the app's first page. */
|
|
28
|
+
leading?: ReactNode;
|
|
29
|
+
/** The back link in the leading slot, in the app logo's place, with the title where the app's name sits (`leadingRow`). */
|
|
30
|
+
backInLeadingSlot?: boolean;
|
|
31
|
+
/** At the right end, after the actions, such as the account's entry on a phone. */
|
|
32
|
+
account?: ReactNode;
|
|
33
|
+
/** Whether a phone gets a search button here; off where search is part of the bottom bar, which opens it instead. */
|
|
34
|
+
searchButton?: boolean;
|
|
35
|
+
/** Whether the phone's search field covers the bar, for a shell that opens it from elsewhere; the bar's own otherwise. */
|
|
36
|
+
searchOpen?: boolean;
|
|
37
|
+
onSearchOpenChange?: (open: boolean) => void;
|
|
25
38
|
/** Gets the element, shown below `md`, that a page's own controls are portalled into (see `useTopBarSlot`). */
|
|
26
39
|
slotRef?: (element: HTMLDivElement | null) => void;
|
|
27
40
|
ref?: Ref<HTMLElement>;
|
|
@@ -29,9 +42,12 @@ export type TopBarProps = {
|
|
|
29
42
|
/**
|
|
30
43
|
* An icon button of the top bar on a mobile screen, as the menu, back and search buttons are. It and its icon grow with
|
|
31
44
|
* the text size beyond their default 44px and 20px only up to 13% and 6% of the screen's width, so four buttons still
|
|
32
|
-
* fit at the largest text sizes, as in a native app's bar. The caps
|
|
33
|
-
*
|
|
45
|
+
* fit at the largest text sizes, as in a native app's bar. The caps are in pixels and screen width, not `rem` as other
|
|
46
|
+
* sizes are, because a size in `rem` alone grows with the text past the screen's width; the bar's spacing is on the
|
|
47
|
+
* spacing scale, which grows with the text a little.
|
|
34
48
|
*/
|
|
35
49
|
export declare const topBarButton = "inline-flex size-[min(2.75rem,max(44px,13vw))] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted md:hidden [&_svg]:size-[min(1.25rem,max(20px,6vw))]";
|
|
36
|
-
|
|
50
|
+
/** The box of any other control at the bar's end, such as the account's avatar, capped as the icon buttons are. */
|
|
51
|
+
export declare const topBarBox = "size-[min(2.75rem,max(44px,13vw))] shrink-0";
|
|
52
|
+
export declare const TopBar: ({ breadcrumb, titleStatus, onNavigate, onBack, actions, brand, leading, backInLeadingSlot, account, searchButton, searchOpen: openFromOutside, onSearchOpenChange, onMenu, menuOpen, menuControls, search, sticky, slotRef, ref }: TopBarProps) => import("react").JSX.Element;
|
|
37
53
|
//#endregion
|