@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
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ import { Input, InputProps } from "./primitives/input.js";
|
|
|
116
116
|
import { Select, SelectProps } from "./primitives/select.js";
|
|
117
117
|
import { Segmented, SegmentedOption, SegmentedProps } from "./primitives/segmented.js";
|
|
118
118
|
import { MenuSelect, MenuSelectProps } from "./primitives/menu-select.js";
|
|
119
|
+
import { MenuSurface, MenuSurfaceProps } from "./primitives/menu-surface.js";
|
|
119
120
|
import { ChoiceOption, Choices, ChoicesProps } from "./primitives/choices.js";
|
|
120
121
|
import { Dialog, DialogProps } from "./primitives/dialog.js";
|
|
121
122
|
import { Field, FieldProps } from "./record-view/field.js";
|
|
@@ -125,4 +126,4 @@ import { RecordPicker, RecordPickerProps } from "./app/record-picker.js";
|
|
|
125
126
|
import { Spinner } from "./primitives/spinner.js";
|
|
126
127
|
import { uiReadyEvent } from "./app/ui-ready.js";
|
|
127
128
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
128
|
-
export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, ToneEdge, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
129
|
+
export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, MenuSurface, type MenuSurfaceProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, ToneEdge, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,11 @@ import { closeSidebarEvent } from "./app-shell/close-sidebar.js";
|
|
|
9
9
|
import { LogoMark } from "./app-shell/logo-mark.js";
|
|
10
10
|
import { AppMark } from "./app-shell/app-mark.js";
|
|
11
11
|
import { logoTapEvent } from "./app-shell/logo-tap.js";
|
|
12
|
-
import { Segmented } from "./primitives/segmented.js";
|
|
13
|
-
import { AvailabilityMark, StatusMark } from "./status/status-mark.js";
|
|
14
12
|
import { useFieldControl } from "./primitives/field-control.js";
|
|
15
13
|
import { Input } from "./primitives/input.js";
|
|
14
|
+
import { Segmented } from "./primitives/segmented.js";
|
|
15
|
+
import { MenuSurface } from "./primitives/menu-surface.js";
|
|
16
|
+
import { AvailabilityMark, StatusMark } from "./status/status-mark.js";
|
|
16
17
|
import { OtpInput } from "./primitives/otp-input.js";
|
|
17
18
|
import { AuthLayout } from "./auth/auth-layout.js";
|
|
18
19
|
import { ResendCodeButton } from "./auth/resend-code-button.js";
|
|
@@ -29,6 +30,7 @@ import { usePresence } from "./presence/presence.js";
|
|
|
29
30
|
import { definePlugin, defineUi } from "./app/pages/project-ui.js";
|
|
30
31
|
import { usePushNotifications } from "./notifications/push/use-push-notifications.js";
|
|
31
32
|
import { useInbox, useMarkNotificationsRead, useUnreadNotifications } from "./notifications/bell/use-inbox.js";
|
|
33
|
+
import { ResponsiveDialog } from "./primitives/responsive-dialog.js";
|
|
32
34
|
import { statusRefreshMs, useOwnStatus, useStatuses } from "./status/use-statuses.js";
|
|
33
35
|
import { useMembers } from "./people/use-members.js";
|
|
34
36
|
import { AppLink, useAppAddress } from "./app/use-app-address.js";
|
|
@@ -51,7 +53,6 @@ import { FieldBadge } from "./app/field-badge.js";
|
|
|
51
53
|
import { ToneEdge } from "./app/related-cards/tone-edge.js";
|
|
52
54
|
import { useListDisplay } from "./app/displays/display-context.js";
|
|
53
55
|
import { RecordLink } from "./app/displays/record-link.js";
|
|
54
|
-
import { ResponsiveDialog } from "./primitives/responsive-dialog.js";
|
|
55
56
|
import { CallView } from "./calls/call-view.js";
|
|
56
57
|
import { useRecordCallAddress } from "./calls/use-record-call-address.js";
|
|
57
58
|
import { RecordCall } from "./calls/record-call.js";
|
|
@@ -96,4 +97,4 @@ import { useCreateForm } from "./app/create/use-create-form.js";
|
|
|
96
97
|
import { InPlaceForm } from "./app/create/in-place-form.js";
|
|
97
98
|
import { RecordPicker } from "./app/record-picker.js";
|
|
98
99
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
99
|
-
export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
100
|
+
export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, MenuSurface, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, showTextsIn, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/inline-child-table/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "line" | "
|
|
5
|
-
rich(id: "line" | "
|
|
4
|
+
(id: "line" | "instructions" | "pickedUp" | "over" | "dropped" | "droppedAtStart" | "cancelled" | "addLine" | "noLines" | "moveUp" | "moveDown" | "removeLine" | "dragToReorder" | "actionsFor", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "line" | "instructions" | "pickedUp" | "over" | "dropped" | "droppedAtStart" | "cancelled" | "addLine" | "noLines" | "moveUp" | "moveDown" | "removeLine" | "dragToReorder" | "actionsFor", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/invitations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "until" | "email" | "revoke" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "until" | "email" | "revoke" | "invite" | "expired" | "sendAgain" | "passLinkOn", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/live/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/live/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "yes" | "no" | "shownIn" | "fileMissing" | "jsonItems", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "yes" | "no" | "shownIn" | "fileMissing" | "jsonItems", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/locale/en.js
CHANGED
|
@@ -249,6 +249,7 @@ var en_default = {
|
|
|
249
249
|
"onlyAdminPolicy": "Only an admin can change how people sign in.",
|
|
250
250
|
"ownersOnly": "Owners and admins only",
|
|
251
251
|
"onlyOwners": "Only the organization's owners and admins manage its members.",
|
|
252
|
+
"menu": "Menu",
|
|
252
253
|
"chooseResource": "Choose a resource",
|
|
253
254
|
"pickFromSidebar": "Pick one from the sidebar.",
|
|
254
255
|
"nothingHere": "There is nothing at this address.",
|
|
@@ -288,6 +289,11 @@ var en_default = {
|
|
|
288
289
|
"noMatches": "No matches",
|
|
289
290
|
"loading": "Loading",
|
|
290
291
|
"refreshing": "Refreshing",
|
|
292
|
+
"refreshFailedTitle": "Showing what the app last loaded",
|
|
293
|
+
"refreshFailedHelp": "The page could not be refreshed, so it shows what the app loaded before. You may be offline, or the server did not answer.",
|
|
294
|
+
"refreshRetry": "Try again",
|
|
295
|
+
"refreshClose": "Close",
|
|
296
|
+
"refreshWhy": "Why the page could not refresh",
|
|
291
297
|
"refreshFailed": "Could not refresh. This is what the app last loaded.",
|
|
292
298
|
"leaveTitle": "Leave without saving?",
|
|
293
299
|
"leaveDescription": "You have unsaved changes on this page. They stay in this browser, and come back when you open the record again.",
|
|
@@ -330,6 +336,7 @@ var en_default = {
|
|
|
330
336
|
"searchResults": "Search results",
|
|
331
337
|
"searching": "Searching",
|
|
332
338
|
"noMatches": "No matches for “{query}”",
|
|
339
|
+
"accountOf": "Account, {name}",
|
|
333
340
|
"profileMenu": "Profile menu",
|
|
334
341
|
"organizations": "Organizations",
|
|
335
342
|
"roles": "Roles",
|
package/dist/locale/en.json.d.ts
CHANGED
|
@@ -251,6 +251,7 @@ declare const _exports: {
|
|
|
251
251
|
onlyAdminPolicy: string;
|
|
252
252
|
ownersOnly: string;
|
|
253
253
|
onlyOwners: string;
|
|
254
|
+
menu: string;
|
|
254
255
|
chooseResource: string;
|
|
255
256
|
pickFromSidebar: string;
|
|
256
257
|
nothingHere: string;
|
|
@@ -290,6 +291,11 @@ declare const _exports: {
|
|
|
290
291
|
noMatches: string;
|
|
291
292
|
loading: string;
|
|
292
293
|
refreshing: string;
|
|
294
|
+
refreshFailedTitle: string;
|
|
295
|
+
refreshFailedHelp: string;
|
|
296
|
+
refreshRetry: string;
|
|
297
|
+
refreshClose: string;
|
|
298
|
+
refreshWhy: string;
|
|
293
299
|
refreshFailed: string;
|
|
294
300
|
leaveTitle: string;
|
|
295
301
|
leaveDescription: string;
|
|
@@ -332,6 +338,7 @@ declare const _exports: {
|
|
|
332
338
|
searchResults: string;
|
|
333
339
|
searching: string;
|
|
334
340
|
noMatches: string;
|
|
341
|
+
accountOf: string;
|
|
335
342
|
profileMenu: string;
|
|
336
343
|
organizations: string;
|
|
337
344
|
roles: string;
|
|
@@ -280,6 +280,7 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
280
280
|
onlyAdminPolicy: string;
|
|
281
281
|
ownersOnly: string;
|
|
282
282
|
onlyOwners: string;
|
|
283
|
+
menu: string;
|
|
283
284
|
chooseResource: string;
|
|
284
285
|
pickFromSidebar: string;
|
|
285
286
|
nothingHere: string;
|
|
@@ -319,6 +320,11 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
319
320
|
noMatches: string;
|
|
320
321
|
loading: string;
|
|
321
322
|
refreshing: string;
|
|
323
|
+
refreshFailedTitle: string;
|
|
324
|
+
refreshFailedHelp: string;
|
|
325
|
+
refreshRetry: string;
|
|
326
|
+
refreshClose: string;
|
|
327
|
+
refreshWhy: string;
|
|
322
328
|
refreshFailed: string;
|
|
323
329
|
leaveTitle: string;
|
|
324
330
|
leaveDescription: string;
|
|
@@ -361,6 +367,7 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
361
367
|
searchResults: string;
|
|
362
368
|
searching: string;
|
|
363
369
|
noMatches: string;
|
|
370
|
+
accountOf: string;
|
|
364
371
|
profileMenu: string;
|
|
365
372
|
organizations: string;
|
|
366
373
|
roles: string;
|
|
@@ -2600,6 +2607,7 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
2600
2607
|
onlyAdminPolicy: string;
|
|
2601
2608
|
ownersOnly: string;
|
|
2602
2609
|
onlyOwners: string;
|
|
2610
|
+
menu: string;
|
|
2603
2611
|
chooseResource: string;
|
|
2604
2612
|
pickFromSidebar: string;
|
|
2605
2613
|
nothingHere: string;
|
|
@@ -2639,6 +2647,11 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
2639
2647
|
noMatches: string;
|
|
2640
2648
|
loading: string;
|
|
2641
2649
|
refreshing: string;
|
|
2650
|
+
refreshFailedTitle: string;
|
|
2651
|
+
refreshFailedHelp: string;
|
|
2652
|
+
refreshRetry: string;
|
|
2653
|
+
refreshClose: string;
|
|
2654
|
+
refreshWhy: string;
|
|
2642
2655
|
refreshFailed: string;
|
|
2643
2656
|
leaveTitle: string;
|
|
2644
2657
|
leaveDescription: string;
|
|
@@ -2681,6 +2694,7 @@ export declare const messages: <N extends Namespace>(namespace: N) => {
|
|
|
2681
2694
|
searchResults: string;
|
|
2682
2695
|
searching: string;
|
|
2683
2696
|
noMatches: string;
|
|
2697
|
+
accountOf: string;
|
|
2684
2698
|
profileMenu: string;
|
|
2685
2699
|
organizations: string;
|
|
2686
2700
|
roles: string;
|
package/dist/locale/nl.js
CHANGED
|
@@ -249,6 +249,7 @@ var nl_default = {
|
|
|
249
249
|
"onlyAdminPolicy": "Alleen een beheerder kan wijzigen hoe mensen inloggen.",
|
|
250
250
|
"ownersOnly": "Alleen eigenaren en beheerders",
|
|
251
251
|
"onlyOwners": "Alleen de eigenaren en beheerders van de organisatie beheren de leden.",
|
|
252
|
+
"menu": "Menu",
|
|
252
253
|
"chooseResource": "Kies een onderdeel",
|
|
253
254
|
"pickFromSidebar": "Kies er een in de zijbalk.",
|
|
254
255
|
"nothingHere": "Er is niets op dit adres.",
|
|
@@ -288,6 +289,11 @@ var nl_default = {
|
|
|
288
289
|
"noMatches": "Niets gevonden",
|
|
289
290
|
"loading": "Laden",
|
|
290
291
|
"refreshing": "Vernieuwen",
|
|
292
|
+
"refreshFailedTitle": "Je ziet wat de app het laatst laadde",
|
|
293
|
+
"refreshFailedHelp": "De pagina kon niet worden vernieuwd, dus je ziet wat de app eerder laadde. Misschien ben je offline, of antwoordde de server niet.",
|
|
294
|
+
"refreshRetry": "Opnieuw proberen",
|
|
295
|
+
"refreshClose": "Sluiten",
|
|
296
|
+
"refreshWhy": "Waarom de pagina niet vernieuwde",
|
|
291
297
|
"refreshFailed": "Kon niet vernieuwen. Dit is wat de app het laatst laadde.",
|
|
292
298
|
"leaveTitle": "Weggaan zonder te bewaren?",
|
|
293
299
|
"leaveDescription": "Je hebt niet-bewaarde wijzigingen op deze pagina. Ze blijven in deze browser, en komen terug als je het record weer opent.",
|
|
@@ -330,6 +336,7 @@ var nl_default = {
|
|
|
330
336
|
"searchResults": "Zoekresultaten",
|
|
331
337
|
"searching": "Zoeken",
|
|
332
338
|
"noMatches": "Niets gevonden voor “{query}”",
|
|
339
|
+
"accountOf": "Account, {name}",
|
|
333
340
|
"profileMenu": "Profielmenu",
|
|
334
341
|
"organizations": "Organisaties",
|
|
335
342
|
"roles": "Rollen",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/mailbox/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "missing" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly" | "connect" | "connectAgain", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "missing" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly" | "connect" | "connectAgain", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -4,7 +4,7 @@ export declare const customerAt: (index: number) => {
|
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
country: "GB" | "NL" | "DE";
|
|
7
|
-
city: NonNullable<"
|
|
7
|
+
city: NonNullable<"Rotterdam" | "Eindhoven" | "Utrecht" | "Zwolle" | "Breda" | "Groningen" | "Düsseldorf" | "Köln" | "Stuttgart" | "Hamburg" | "Münster" | "Nürnberg" | "Leeds" | "Bristol" | "Birmingham" | "Manchester" | "Sheffield">;
|
|
8
8
|
};
|
|
9
9
|
export type Customer = ReturnType<typeof customerAt>;
|
|
10
10
|
//#endregion
|
package/dist/mocks/invoices.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare const invoiceAt: (index: number) => {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
country: "GB" | "NL" | "DE";
|
|
22
|
-
city: NonNullable<"
|
|
22
|
+
city: NonNullable<"Rotterdam" | "Eindhoven" | "Utrecht" | "Zwolle" | "Breda" | "Groningen" | "Düsseldorf" | "Köln" | "Stuttgart" | "Hamburg" | "Münster" | "Nürnberg" | "Leeds" | "Bristol" | "Birmingham" | "Manchester" | "Sheffield">;
|
|
23
23
|
};
|
|
24
|
-
status: "
|
|
24
|
+
status: "draft" | "sent" | "paid" | "overdue";
|
|
25
25
|
issuedAt: number;
|
|
26
26
|
dueAt: number;
|
|
27
27
|
currency: string;
|
package/dist/mocks/orders.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const orderAt: (index: number) => {
|
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
12
|
country: "GB" | "NL" | "DE";
|
|
13
|
-
status: "draft" | "
|
|
13
|
+
status: "draft" | "cancelled" | "confirmed" | "picking" | "shipped" | "delivered";
|
|
14
14
|
totalCents: number;
|
|
15
15
|
discount: 0 | 15 | 10 | 5;
|
|
16
16
|
paid: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/notifications/bell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "unread" | "
|
|
5
|
-
rich(id: "unread" | "
|
|
4
|
+
(id: "unread" | "empty" | "tryAgain" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "turnOn" | "pushOn" | "turnOff" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "unread" | "empty" | "tryAgain" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "turnOn" | "pushOn" | "turnOff" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from "../../primitives/button.js";
|
|
2
2
|
import { useRouter } from "../../app/router.js";
|
|
3
|
+
import { MenuSurface } from "../../primitives/menu-surface.js";
|
|
3
4
|
import { CountBadge } from "../../primitives/count-badge.js";
|
|
4
5
|
import { usePopoverMenu } from "../../primitives/popover-menu.js";
|
|
5
6
|
import { usePushNotifications } from "../push/use-push-notifications.js";
|
|
@@ -11,7 +12,6 @@ import { bellLabel } from "./unread-label.js";
|
|
|
11
12
|
import { useState } from "react";
|
|
12
13
|
import { Bell } from "lucide-react";
|
|
13
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { createPortal } from "react-dom";
|
|
15
15
|
//#region src/notifications/bell/notification-bell.tsx
|
|
16
16
|
/**
|
|
17
17
|
* The top bar's bell: how many of the signed-in user's notifications are unread, and the panel it opens, their inbox,
|
|
@@ -51,41 +51,46 @@ const NotificationBell = () => {
|
|
|
51
51
|
count: unread.data,
|
|
52
52
|
className: "pointer-events-none absolute -top-1 -right-1.5 max-md:top-0 max-md:right-0"
|
|
53
53
|
})]
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
}), /* @__PURE__ */ jsx(MenuSurface, {
|
|
55
|
+
open,
|
|
56
|
+
title: bellLabel(void 0),
|
|
57
|
+
onClose: () => setOpen(false),
|
|
58
|
+
menu: /* @__PURE__ */ jsx("div", {
|
|
59
|
+
ref: menu,
|
|
60
|
+
role: "dialog",
|
|
61
|
+
"aria-label": bellLabel(void 0),
|
|
62
|
+
style: place ?? { visibility: "hidden" },
|
|
63
|
+
className: "fixed z-50 w-[min(22rem,calc(100%-0.5rem))] rounded-md border bg-background shadow-pop",
|
|
64
|
+
children: /* @__PURE__ */ jsx(NotificationPanel, {
|
|
65
|
+
items: inbox.items,
|
|
66
|
+
loading: inbox.isPending,
|
|
67
|
+
failed: inbox.isError,
|
|
68
|
+
onRetry: () => void inbox.refetch(),
|
|
69
|
+
hasMore: inbox.hasNextPage,
|
|
70
|
+
loadingMore: inbox.isFetchingNextPage,
|
|
71
|
+
onMore: () => void inbox.fetchNextPage(),
|
|
72
|
+
onMarkAllRead: markAllRead,
|
|
73
|
+
markingAll,
|
|
74
|
+
targetOf: (item) => notificationTarget(item.url, {
|
|
75
|
+
origin,
|
|
76
|
+
basePath
|
|
77
|
+
}),
|
|
78
|
+
onNavigate: (path) => navigate(path),
|
|
79
|
+
onOpen: (item) => {
|
|
80
|
+
markRead(item);
|
|
81
|
+
setOpen(false);
|
|
82
|
+
},
|
|
83
|
+
footer: /* @__PURE__ */ jsx(PushControl, {
|
|
84
|
+
state: push.state,
|
|
85
|
+
busy: push.busy,
|
|
86
|
+
failure: push.failure,
|
|
87
|
+
onTurnOn: () => void push.turnOn(),
|
|
88
|
+
onTurnOff: () => void push.turnOff()
|
|
89
|
+
}),
|
|
90
|
+
now
|
|
91
|
+
})
|
|
87
92
|
})
|
|
88
|
-
})
|
|
93
|
+
})] });
|
|
89
94
|
};
|
|
90
95
|
//#endregion
|
|
91
96
|
export { NotificationBell };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/organizations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "create" | "open" | "organizations" | "accept" | "join" | "name" | "invitations" | "
|
|
5
|
-
rich(id: "create" | "open" | "organizations" | "accept" | "join" | "name" | "invitations" | "
|
|
4
|
+
(id: "create" | "open" | "organizations" | "accept" | "join" | "name" | "invitations" | "signOut" | "loading" | "save" | "cancel" | "until" | "current" | "password" | "delete" | "owner" | "admin" | "member" | "passwordOptional" | "yourName" | "invalidLink" | "leave" | "remove" | "guestLinks" | "manageOrganizations" | "organization" | "members" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "create" | "open" | "organizations" | "accept" | "join" | "name" | "invitations" | "signOut" | "loading" | "save" | "cancel" | "until" | "current" | "password" | "delete" | "owner" | "admin" | "member" | "passwordOptional" | "yourName" | "invalidLink" | "leave" | "remove" | "guestLinks" | "manageOrganizations" | "organization" | "members" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/package.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type AvatarProps = {
|
|
3
3
|
initials: string;
|
|
4
4
|
hue: number;
|
|
5
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'bar';
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const Avatar: ({ initials, hue, size, className }: AvatarProps) => import("react").JSX.Element;
|
|
@@ -5,7 +5,8 @@ const sizes = {
|
|
|
5
5
|
xs: "size-5 text-[0.5625rem]",
|
|
6
6
|
sm: "size-6 text-[0.625rem]",
|
|
7
7
|
md: "size-8 text-xs",
|
|
8
|
-
lg: "size-10 text-base"
|
|
8
|
+
lg: "size-10 text-base",
|
|
9
|
+
bar: "size-[min(2rem,max(32px,9vw))] text-[min(0.75rem,max(12px,3.4vw))]"
|
|
9
10
|
};
|
|
10
11
|
const Avatar = ({ initials, hue, size = "sm", className }) => /* @__PURE__ */ jsx("span", {
|
|
11
12
|
className: cn("inline-flex shrink-0 select-none items-center justify-center rounded-full font-semibold text-white ring-2 ring-background", sizes[size], className),
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/primitives/drawer-math.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The drawer's numbers, as a native iOS side drawer tuned on a device has them, for every drawer and sheet of the
|
|
4
|
+
* shell along either axis: in pure functions, so tests prove them.
|
|
5
|
+
*/
|
|
6
|
+
/** How far a touch moves before it is a drag of the drawer; below it, a lift is a tap, in pixels. */
|
|
7
|
+
export declare const drawerSlop = 10;
|
|
8
|
+
/** How fast a release finishes in its own direction, however far the drawer moved, in pixels a second. */
|
|
9
|
+
export declare const drawerFlick = 500;
|
|
10
|
+
/** The backdrop's dim at fully open. */
|
|
11
|
+
export declare const drawerDim = 0.35;
|
|
12
|
+
/** The most the drawer goes past open, never reached, in pixels. */
|
|
13
|
+
export declare const drawerBandLimit = 40;
|
|
14
|
+
/** The steepest angle from its axis a drag on the drawer may start at (30 degrees): tan 30. */
|
|
15
|
+
export declare const drawerSlope = 0.58;
|
|
16
|
+
/** On the backdrop, with nothing to scroll (45 degrees). */
|
|
17
|
+
export declare const backdropSlope = 1;
|
|
18
|
+
/** How long a release settles, in milliseconds. */
|
|
19
|
+
export declare const drawerSettleMs = 350;
|
|
20
|
+
/** A critically damped spring, as a CSS curve: fast at first, coming to rest without overshoot. */
|
|
21
|
+
export declare const drawerSettleCurve = "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
22
|
+
/** A side drawer's width: 88% of the screen, at most 384 pixels. */
|
|
23
|
+
export declare const sideDrawerWidth = "min(88vw, 384px)";
|
|
24
|
+
/** Whether the drawer ends open on release, at `progress` (0 closed, 1 open) moving `velocity` pixels a second, positive towards open. */
|
|
25
|
+
export declare const endsOpen: (progress: number, velocity: number) => boolean;
|
|
26
|
+
/** How far past open the drawer shows for a drag `over` pixels past it. */
|
|
27
|
+
export declare const rubberBand: (over: number) => number;
|
|
28
|
+
/** The backdrop's opacity at `progress`. */
|
|
29
|
+
export declare const backdropAlpha: (progress: number) => number;
|
|
30
|
+
/** Whether a movement lies within `slope` of the axis, `along` its distance on the axis and `across` off it. */
|
|
31
|
+
export declare const withinAngle: (along: number, across: number, slope: number) => boolean;
|
|
32
|
+
/** Whether a first movement `along` and `across` the axis may start a drag: far enough, and within `slope` of the axis. */
|
|
33
|
+
export declare const startsDrag: (along: number, across: number, slope: number) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Where the drawer stands for a finger `moved` pixels towards open from where it was at `from` (0 closed, 1 open),
|
|
36
|
+
* across `size` pixels: following the finger, and past open as a rubber band.
|
|
37
|
+
*/
|
|
38
|
+
export declare const dragProgress: (from: number, moved: number, size: number) => number;
|
|
39
|
+
//#endregion
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/primitives/drawer-math.ts
|
|
2
|
+
/**
|
|
3
|
+
* The drawer's numbers, as a native iOS side drawer tuned on a device has them, for every drawer and sheet of the
|
|
4
|
+
* shell along either axis: in pure functions, so tests prove them.
|
|
5
|
+
*/
|
|
6
|
+
/** How far a touch moves before it is a drag of the drawer; below it, a lift is a tap, in pixels. */
|
|
7
|
+
const drawerSlop = 10;
|
|
8
|
+
/** How fast a release finishes in its own direction, however far the drawer moved, in pixels a second. */
|
|
9
|
+
const drawerFlick = 500;
|
|
10
|
+
/** The backdrop's dim at fully open. */
|
|
11
|
+
const drawerDim = .35;
|
|
12
|
+
/** The most the drawer goes past open, never reached, in pixels. */
|
|
13
|
+
const drawerBandLimit = 40;
|
|
14
|
+
/** The steepest angle from its axis a drag on the drawer may start at (30 degrees): tan 30. */
|
|
15
|
+
const drawerSlope = .58;
|
|
16
|
+
/** On the backdrop, with nothing to scroll (45 degrees). */
|
|
17
|
+
const backdropSlope = 1;
|
|
18
|
+
/** How long a release settles, in milliseconds. */
|
|
19
|
+
const drawerSettleMs = 350;
|
|
20
|
+
/** A critically damped spring, as a CSS curve: fast at first, coming to rest without overshoot. */
|
|
21
|
+
const drawerSettleCurve = "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
22
|
+
/** A side drawer's width: 88% of the screen, at most 384 pixels. */
|
|
23
|
+
const sideDrawerWidth = "min(88vw, 384px)";
|
|
24
|
+
/** Whether the drawer ends open on release, at `progress` (0 closed, 1 open) moving `velocity` pixels a second, positive towards open. */
|
|
25
|
+
const endsOpen = (progress, velocity) => Math.abs(velocity) >= 500 ? velocity > 0 : progress >= .5;
|
|
26
|
+
/** How far past open the drawer shows for a drag `over` pixels past it. */
|
|
27
|
+
const rubberBand = (over) => over > 0 ? 40 * (1 - 1 / (.55 * over / 40 + 1)) : 0;
|
|
28
|
+
/** The backdrop's opacity at `progress`. */
|
|
29
|
+
const backdropAlpha = (progress) => drawerDim * Math.min(Math.max(progress, 0), 1);
|
|
30
|
+
/** Whether a movement lies within `slope` of the axis, `along` its distance on the axis and `across` off it. */
|
|
31
|
+
const withinAngle = (along, across, slope) => along !== 0 && Math.abs(across) <= slope * Math.abs(along);
|
|
32
|
+
/** Whether a first movement `along` and `across` the axis may start a drag: far enough, and within `slope` of the axis. */
|
|
33
|
+
const startsDrag = (along, across, slope) => Math.hypot(along, across) >= 10 && withinAngle(along, across, slope);
|
|
34
|
+
/**
|
|
35
|
+
* Where the drawer stands for a finger `moved` pixels towards open from where it was at `from` (0 closed, 1 open),
|
|
36
|
+
* across `size` pixels: following the finger, and past open as a rubber band.
|
|
37
|
+
*/
|
|
38
|
+
const dragProgress = (from, moved, size) => {
|
|
39
|
+
const raw = from + moved / Math.max(1, size);
|
|
40
|
+
return raw <= 1 ? Math.max(raw, 0) : 1 + rubberBand((raw - 1) * size) / Math.max(1, size);
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { backdropAlpha, backdropSlope, dragProgress, drawerBandLimit, drawerDim, drawerFlick, drawerSettleCurve, drawerSettleMs, drawerSlop, drawerSlope, endsOpen, rubberBand, sideDrawerWidth, startsDrag, withinAngle };
|