@oxy.so/bloom 22.0.0 → 22.1.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/docs/adoption-matrix.mdx +13 -13
- package/docs/agent-task-index.mdx +1 -1
- package/docs/app-conventions.mdx +11 -0
- package/docs/app-shell.mdx +25 -2
- package/docs/compose-layouts.mdx +6 -0
- package/docs/composition.mdx +3 -1
- package/docs/dialog.mdx +57 -0
- package/docs/layout.mdx +10 -0
- package/docs/list.mdx +1 -1
- package/docs/project-board.mdx +28 -1
- package/docs/public-parts.mdx +8 -2
- package/docs/screen.mdx +15 -0
- package/docs/semantic-composition.mdx +207 -0
- package/docs/sidebar.mdx +16 -0
- package/docs/task-catalog.json +16 -3
- package/docs/task-catalog.mdx +6 -6
- package/docs/ui-architecture.mdx +6 -4
- package/lib/commonjs/app-shell/AppShell.js +18 -9
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
- package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
- package/lib/commonjs/app-shell/composition.js +232 -0
- package/lib/commonjs/app-shell/composition.js.map +1 -0
- package/lib/commonjs/app-shell/context.js +7 -1
- package/lib/commonjs/app-shell/context.js.map +1 -1
- package/lib/commonjs/app-shell/hooks/index.js +13 -0
- package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.js +38 -0
- package/lib/commonjs/app-shell/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.web.js +38 -0
- package/lib/commonjs/app-shell/index.web.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-session.js +210 -0
- package/lib/commonjs/app-shell/panel-session.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialog.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
- package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
- package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
- package/lib/commonjs/dialog/Dialog.js +101 -90
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/context.js +4 -1
- package/lib/commonjs/dialog/context.js.map +1 -1
- package/lib/commonjs/dialog/index.js +20 -0
- package/lib/commonjs/dialog/index.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js +20 -0
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +28 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/app-shell-region.js.map +1 -1
- package/lib/commonjs/layout/index.js +7 -0
- package/lib/commonjs/layout/index.js.map +1 -1
- package/lib/commonjs/layout/index.web.js +7 -0
- package/lib/commonjs/layout/index.web.js.map +1 -1
- package/lib/commonjs/layout/safe-area-ownership.js +31 -0
- package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
- package/lib/commonjs/layout/screen-scope.js +26 -20
- package/lib/commonjs/layout/screen-scope.js.map +1 -1
- package/lib/commonjs/list/ListItemBase.js +62 -58
- package/lib/commonjs/list/ListItemBase.js.map +1 -1
- package/lib/commonjs/list/ListMail.js +5 -1
- package/lib/commonjs/list/ListMail.js.map +1 -1
- package/lib/commonjs/list/list-style.js +2 -1
- package/lib/commonjs/list/list-style.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +3 -1
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
- package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
- package/lib/commonjs/project-board/context.js +9 -2
- package/lib/commonjs/project-board/context.js.map +1 -1
- package/lib/commonjs/project-board/index.js +7 -0
- package/lib/commonjs/project-board/index.js.map +1 -1
- package/lib/commonjs/project-board/index.web.js +7 -0
- package/lib/commonjs/project-board/index.web.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +44 -32
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenContent.js +61 -0
- package/lib/commonjs/screen/ScreenContent.js.map +1 -0
- package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/content.js +25 -0
- package/lib/commonjs/screen/content.js.map +1 -0
- package/lib/commonjs/screen/index.js +7 -0
- package/lib/commonjs/screen/index.js.map +1 -1
- package/lib/commonjs/screen/index.web.js +7 -0
- package/lib/commonjs/screen/index.web.js.map +1 -1
- package/lib/commonjs/screen/keyboard-components.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarFolder.js +61 -74
- package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTreeSection.js +30 -38
- package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/commonjs/sidebar/tree.js +2 -2
- package/lib/commonjs/sidebar/tree.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +15 -5
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +18 -5
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/AppShellPanels.js +52 -28
- package/lib/module/app-shell/AppShellPanels.js.map +1 -1
- package/lib/module/app-shell/composition.js +226 -0
- package/lib/module/app-shell/composition.js.map +1 -0
- package/lib/module/app-shell/context.js +4 -0
- package/lib/module/app-shell/context.js.map +1 -1
- package/lib/module/app-shell/hooks/index.js +1 -0
- package/lib/module/app-shell/hooks/index.js.map +1 -1
- package/lib/module/app-shell/index.js +3 -0
- package/lib/module/app-shell/index.js.map +1 -1
- package/lib/module/app-shell/index.web.js +3 -0
- package/lib/module/app-shell/index.web.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +7 -3
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-session.js +204 -0
- package/lib/module/app-shell/panel-session.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +6 -4
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +1 -0
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/module/dialog/DetailDialog.js +15 -0
- package/lib/module/dialog/DetailDialog.js.map +1 -0
- package/lib/module/dialog/DetailDialog.web.js +15 -0
- package/lib/module/dialog/DetailDialog.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogBase.js +200 -0
- package/lib/module/dialog/DetailDialogBase.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.js +81 -0
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
- package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogSection.js +44 -0
- package/lib/module/dialog/DetailDialogSection.js.map +1 -0
- package/lib/module/dialog/Dialog.js +102 -91
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/context.js +3 -0
- package/lib/module/dialog/context.js.map +1 -1
- package/lib/module/dialog/index.js +2 -0
- package/lib/module/dialog/index.js.map +1 -1
- package/lib/module/dialog/index.web.js +2 -0
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +2 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/app-shell-region.js.map +1 -1
- package/lib/module/layout/index.js +1 -0
- package/lib/module/layout/index.js.map +1 -1
- package/lib/module/layout/index.web.js +1 -0
- package/lib/module/layout/index.web.js.map +1 -1
- package/lib/module/layout/safe-area-ownership.js +26 -0
- package/lib/module/layout/safe-area-ownership.js.map +1 -0
- package/lib/module/layout/screen-scope.js +26 -20
- package/lib/module/layout/screen-scope.js.map +1 -1
- package/lib/module/list/ListItemBase.js +63 -59
- package/lib/module/list/ListItemBase.js.map +1 -1
- package/lib/module/list/ListMail.js +5 -1
- package/lib/module/list/ListMail.js.map +1 -1
- package/lib/module/list/list-style.js +1 -0
- package/lib/module/list/list-style.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +3 -1
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.js +2 -0
- package/lib/module/project-board/ProjectBoard.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.web.js +2 -0
- package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +30 -42
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
- package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketDetailDialog.js +317 -412
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.js +1 -78
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/module/project-board/TicketTokenChart.js +1 -1
- package/lib/module/project-board/TicketTokenChart.js.map +1 -1
- package/lib/module/project-board/context.js +1 -1
- package/lib/module/project-board/context.js.map +1 -1
- package/lib/module/project-board/index.js +1 -0
- package/lib/module/project-board/index.js.map +1 -1
- package/lib/module/project-board/index.web.js +1 -0
- package/lib/module/project-board/index.web.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +22 -10
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenContent.js +57 -0
- package/lib/module/screen/ScreenContent.js.map +1 -0
- package/lib/module/screen/ScreenScrollViewBase.js +67 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/content.js +21 -0
- package/lib/module/screen/content.js.map +1 -0
- package/lib/module/screen/index.js +1 -0
- package/lib/module/screen/index.js.map +1 -1
- package/lib/module/screen/index.web.js +1 -0
- package/lib/module/screen/index.web.js.map +1 -1
- package/lib/module/screen/keyboard-components.js.map +1 -1
- package/lib/module/sidebar/SidebarFolder.js +61 -74
- package/lib/module/sidebar/SidebarFolder.js.map +1 -1
- package/lib/module/sidebar/SidebarTreeSection.js +30 -38
- package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/module/sidebar/tree.js +2 -2
- package/lib/module/sidebar/tree.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
- package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +3 -3
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/list-style.d.ts +1 -0
- package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/types.d.ts +10 -3
- package/lib/typescript/commonjs/list/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
- package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/content.d.ts +6 -0
- package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/index.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/types.d.ts +7 -0
- package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/composition.d.ts +52 -0
- package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/context.d.ts +4 -0
- package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +15 -3
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/dialog/context.d.ts +2 -0
- package/lib/typescript/module/dialog/context.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.d.ts +3 -1
- package/lib/typescript/module/dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +3 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +37 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +3 -3
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.d.ts +1 -0
- package/lib/typescript/module/layout/index.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.web.d.ts +1 -0
- package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/module/list/list-style.d.ts +1 -0
- package/lib/typescript/module/list/list-style.d.ts.map +1 -1
- package/lib/typescript/module/list/types.d.ts +10 -3
- package/lib/typescript/module/list/types.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/module/project-board/context.d.ts +2 -1
- package/lib/typescript/module/project-board/context.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.d.ts +2 -1
- package/lib/typescript/module/project-board/index.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.web.d.ts +2 -1
- package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/types.d.ts +12 -0
- package/lib/typescript/module/project-board/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/content.d.ts +6 -0
- package/lib/typescript/module/screen/content.d.ts.map +1 -0
- package/lib/typescript/module/screen/index.d.ts +3 -0
- package/lib/typescript/module/screen/index.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.web.d.ts +3 -0
- package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/module/screen/types.d.ts +7 -0
- package/lib/typescript/module/screen/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +1 -1
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +19 -1
- package/src/app-shell/AppShell.tsx +15 -6
- package/src/app-shell/AppShellEngine.tsx +36 -10
- package/src/app-shell/AppShellPanelLayout.tsx +106 -55
- package/src/app-shell/AppShellPanels.tsx +75 -44
- package/src/app-shell/composition.ts +257 -0
- package/src/app-shell/context.ts +5 -0
- package/src/app-shell/hooks/index.ts +3 -0
- package/src/app-shell/index.ts +16 -0
- package/src/app-shell/index.web.ts +16 -0
- package/src/app-shell/panel-layout-css.ts +7 -3
- package/src/app-shell/panel-layout-types.ts +2 -1
- package/src/app-shell/panel-session.tsx +246 -0
- package/src/app-shell/shell-layout-css.ts +6 -1
- package/src/app-shell/types.ts +15 -3
- package/src/canvas/CanvasPanelBase.tsx +1 -1
- package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
- package/src/dialog/DetailDialog.tsx +13 -0
- package/src/dialog/DetailDialog.web.tsx +13 -0
- package/src/dialog/DetailDialogBase.tsx +207 -0
- package/src/dialog/DetailDialogMotion.tsx +75 -0
- package/src/dialog/DetailDialogMotion.web.tsx +360 -0
- package/src/dialog/DetailDialogSection.tsx +42 -0
- package/src/dialog/Dialog.tsx +98 -85
- package/src/dialog/context.ts +3 -0
- package/src/dialog/index.ts +5 -0
- package/src/dialog/index.web.ts +5 -0
- package/src/dialog/types.ts +40 -0
- package/src/index.ts +7 -0
- package/src/index.web.ts +7 -0
- package/src/layout/app-shell-region.ts +2 -0
- package/src/layout/index.ts +2 -0
- package/src/layout/index.web.ts +2 -0
- package/src/layout/safe-area-ownership.ts +22 -0
- package/src/layout/screen-scope.tsx +31 -22
- package/src/list/ListItemBase.tsx +59 -65
- package/src/list/ListMail.tsx +5 -1
- package/src/list/list-style.ts +1 -0
- package/src/list/types.ts +11 -3
- package/src/page-header/PageHeader.tsx +3 -1
- package/src/project-board/ProjectBoard.tsx +2 -0
- package/src/project-board/ProjectBoard.web.tsx +2 -0
- package/src/project-board/ProjectBoardBase.tsx +13 -13
- package/src/project-board/ProjectBoardCardContent.tsx +54 -0
- package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
- package/src/project-board/TicketDetailDialog.tsx +311 -426
- package/src/project-board/TicketGenieSurface.tsx +4 -75
- package/src/project-board/TicketTokenChart.tsx +1 -1
- package/src/project-board/context.ts +2 -1
- package/src/project-board/index.ts +2 -0
- package/src/project-board/index.web.ts +2 -0
- package/src/project-board/types.ts +13 -0
- package/src/screen/ScreenBase.tsx +30 -7
- package/src/screen/ScreenContent.tsx +61 -0
- package/src/screen/ScreenScrollViewBase.tsx +80 -1
- package/src/screen/content.ts +26 -0
- package/src/screen/index.ts +4 -0
- package/src/screen/index.web.ts +4 -0
- package/src/screen/keyboard-components.ts +2 -0
- package/src/screen/types.ts +7 -0
- package/src/sidebar/SidebarFolder.tsx +101 -91
- package/src/sidebar/SidebarTreeSection.tsx +36 -35
- package/src/sidebar/tree.ts +2 -2
- package/src/sidebar/types.ts +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Button","Screen","ScreenScrollView","Dialog","createDetailDialog","DetailDialogMotion","DetailDialog","Motion"],"sourceRoot":"../../../src","sources":["dialog/DetailDialog.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,WAAW;AACpD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,kBAAkB,QAAQ,uBAAoB;AACvD,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,OAAO,MAAMC,YAAY,GAAGF,kBAAkB,CAAC;EAC7CD,MAAM;EACNH,MAAM;EACNC,MAAM;EACNC,gBAAgB;EAChBK,MAAM,EAAEF;AACV,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Button } from "../button/index.web.js";
|
|
4
|
+
import { Screen, ScreenScrollView } from "../screen/index.web.js";
|
|
5
|
+
import { Dialog } from "./Dialog.web.js";
|
|
6
|
+
import { createDetailDialog } from "./DetailDialogBase.js";
|
|
7
|
+
import { DetailDialogMotion } from "./DetailDialogMotion.web.js";
|
|
8
|
+
export const DetailDialog = createDetailDialog({
|
|
9
|
+
Dialog,
|
|
10
|
+
Button,
|
|
11
|
+
Screen,
|
|
12
|
+
ScreenScrollView,
|
|
13
|
+
Motion: DetailDialogMotion
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=DetailDialog.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Button","Screen","ScreenScrollView","Dialog","createDetailDialog","DetailDialogMotion","DetailDialog","Motion"],"sourceRoot":"../../../src","sources":["dialog/DetailDialog.web.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,wBAAqB;AAC5C,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,wBAAqB;AAC9D,SAASC,MAAM,QAAQ,iBAAc;AACrC,SAASC,kBAAkB,QAAQ,uBAAoB;AACvD,SAASC,kBAAkB,QAAQ,6BAA0B;AAE7D,OAAO,MAAMC,YAAY,GAAGF,kBAAkB,CAAC;EAC7CD,MAAM;EACNH,MAAM;EACNC,MAAM;EACNC,gBAAgB;EAChBK,MAAM,EAAEF;AACV,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { PageHeader } from "../page-header/PageHeader.js";
|
|
5
|
+
import { RiCloseLine } from "../icons/remix/RiCloseLine.js";
|
|
6
|
+
import { useCommonMessages } from "../locale/common-messages.js";
|
|
7
|
+
import { useTopEdgeInset } from "../layout/top-edge.js";
|
|
8
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
9
|
+
import { Platform, useWindowDimensions } from 'react-native';
|
|
10
|
+
import { SafeAreaInsetsContext } from 'react-native-safe-area-context';
|
|
11
|
+
import { SafeAreaConsumedContext, NO_CONSUMED_SAFE_AREA, WindowSafeAreaInsetsContext } from "../layout/safe-area-ownership.js";
|
|
12
|
+
import { BREAKPOINTS } from "../styles/breakpoints.js";
|
|
13
|
+
import { StyledView } from "../styles/styled-primitives.js";
|
|
14
|
+
import { DetailDialogSectionGroup } from "./DetailDialogSection.js";
|
|
15
|
+
import { useDialogContext } from "./context.js";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
/** One layout/material/scroll owner for product records and the board template. */
|
|
18
|
+
export function createDetailDialog({
|
|
19
|
+
Dialog,
|
|
20
|
+
Button,
|
|
21
|
+
Screen,
|
|
22
|
+
ScreenScrollView,
|
|
23
|
+
Motion
|
|
24
|
+
}) {
|
|
25
|
+
function BodyViewport({
|
|
26
|
+
body,
|
|
27
|
+
scrollable,
|
|
28
|
+
testID
|
|
29
|
+
}) {
|
|
30
|
+
const top = useTopEdgeInset();
|
|
31
|
+
return /*#__PURE__*/_jsx(StyledView, {
|
|
32
|
+
className: "relative min-h-0 flex-1",
|
|
33
|
+
children: scrollable ? /*#__PURE__*/_jsx(ScreenScrollView, {
|
|
34
|
+
testID: `${testID}-scroll`,
|
|
35
|
+
style: {
|
|
36
|
+
flex: 1,
|
|
37
|
+
minHeight: 0
|
|
38
|
+
},
|
|
39
|
+
contentContainerStyle: {
|
|
40
|
+
flexGrow: 1,
|
|
41
|
+
paddingTop: top
|
|
42
|
+
},
|
|
43
|
+
children: body
|
|
44
|
+
}) : body
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function DetailContent({
|
|
48
|
+
header,
|
|
49
|
+
subtitle,
|
|
50
|
+
actions,
|
|
51
|
+
children,
|
|
52
|
+
scrollFooter,
|
|
53
|
+
footer,
|
|
54
|
+
footerKeyboardBehavior = 'visible',
|
|
55
|
+
closeLabel,
|
|
56
|
+
contentKind = 'document',
|
|
57
|
+
scrollable = true,
|
|
58
|
+
testID = 'detail-dialog'
|
|
59
|
+
}) {
|
|
60
|
+
const {
|
|
61
|
+
close
|
|
62
|
+
} = useDialogContext();
|
|
63
|
+
const {
|
|
64
|
+
colors
|
|
65
|
+
} = useTheme();
|
|
66
|
+
const common = useCommonMessages();
|
|
67
|
+
const body = /*#__PURE__*/_jsxs(StyledView, {
|
|
68
|
+
style: {
|
|
69
|
+
flexGrow: 1,
|
|
70
|
+
...(scrollable ? {} : {
|
|
71
|
+
flex: 1,
|
|
72
|
+
minHeight: 0
|
|
73
|
+
})
|
|
74
|
+
},
|
|
75
|
+
children: [/*#__PURE__*/_jsx(StyledView, {
|
|
76
|
+
className: "px-6 max-sm:px-4",
|
|
77
|
+
style: scrollable ? undefined : {
|
|
78
|
+
flex: 1,
|
|
79
|
+
minHeight: 0
|
|
80
|
+
},
|
|
81
|
+
children: scrollable ? /*#__PURE__*/_jsx(DetailDialogSectionGroup, {
|
|
82
|
+
children: children
|
|
83
|
+
}) : children
|
|
84
|
+
}), scrollFooter != null && /*#__PURE__*/_jsx(StyledView, {
|
|
85
|
+
className: "mt-auto flex flex-col gap-2.5 px-3 pb-3",
|
|
86
|
+
children: scrollFooter
|
|
87
|
+
})]
|
|
88
|
+
});
|
|
89
|
+
return /*#__PURE__*/_jsx(Motion, {
|
|
90
|
+
children: /*#__PURE__*/_jsx(StyledView, {
|
|
91
|
+
style: {
|
|
92
|
+
flex: 1,
|
|
93
|
+
minHeight: 0,
|
|
94
|
+
height: '100%',
|
|
95
|
+
borderRadius: 24,
|
|
96
|
+
overflow: 'hidden',
|
|
97
|
+
backgroundColor: colors.card
|
|
98
|
+
},
|
|
99
|
+
testID: `${testID}-surface`,
|
|
100
|
+
children: /*#__PURE__*/_jsx(Screen, {
|
|
101
|
+
kind: contentKind,
|
|
102
|
+
scroll: scrollable ? 'content' : 'none',
|
|
103
|
+
navigationScope: "isolated",
|
|
104
|
+
headerPlacement: scrollable ? 'overlay' : 'inset',
|
|
105
|
+
header: /*#__PURE__*/_jsx(PageHeader, {
|
|
106
|
+
testID: `${testID}-header`,
|
|
107
|
+
title: header,
|
|
108
|
+
subtitle: subtitle,
|
|
109
|
+
actions: /*#__PURE__*/_jsxs(_Fragment, {
|
|
110
|
+
children: [actions, /*#__PURE__*/_jsx(Button, {
|
|
111
|
+
appearance: "outline",
|
|
112
|
+
tone: "neutral",
|
|
113
|
+
iconOnly: true,
|
|
114
|
+
icon: /*#__PURE__*/_jsx(RiCloseLine, {}),
|
|
115
|
+
accessibilityLabel: closeLabel ?? common.close,
|
|
116
|
+
onPress: () => close()
|
|
117
|
+
})]
|
|
118
|
+
})
|
|
119
|
+
}),
|
|
120
|
+
bottomBar: footer,
|
|
121
|
+
bottomBarKeyboardBehavior: footerKeyboardBehavior,
|
|
122
|
+
children: /*#__PURE__*/_jsx(BodyViewport, {
|
|
123
|
+
body: body,
|
|
124
|
+
scrollable: scrollable,
|
|
125
|
+
testID: testID
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function DetailDialog(props) {
|
|
132
|
+
const {
|
|
133
|
+
width,
|
|
134
|
+
height
|
|
135
|
+
} = useWindowDimensions();
|
|
136
|
+
const windowInsets = useContext(WindowSafeAreaInsetsContext);
|
|
137
|
+
const triggerInsets = useContext(SafeAreaInsetsContext);
|
|
138
|
+
const physical = windowInsets ?? triggerInsets ?? NO_CONSUMED_SAFE_AREA;
|
|
139
|
+
const native = Platform.OS !== 'web';
|
|
140
|
+
const compact = width < BREAKPOINTS.sm;
|
|
141
|
+
const centered = props.mode === 'center' && !compact;
|
|
142
|
+
const gap = compact ? 8 : 12;
|
|
143
|
+
const targetWidth = Math.min(609, width - physical.left - physical.right - gap * 2);
|
|
144
|
+
const centerY = centered ? (height - physical.top - physical.bottom) * 0.04 : gap;
|
|
145
|
+
const nativeInset = {
|
|
146
|
+
top: physical.top + centerY,
|
|
147
|
+
bottom: physical.bottom + centerY,
|
|
148
|
+
left: centered ? (width - targetWidth) / 2 : physical.left + gap,
|
|
149
|
+
right: centered ? (width - targetWidth) / 2 : physical.right + gap
|
|
150
|
+
};
|
|
151
|
+
return /*#__PURE__*/_jsx(Dialog, {
|
|
152
|
+
open: props.open,
|
|
153
|
+
startOpen: props.startOpen,
|
|
154
|
+
onClose: props.onClose,
|
|
155
|
+
label: props.label,
|
|
156
|
+
testID: props.testID,
|
|
157
|
+
presentation: "custom",
|
|
158
|
+
exitDuration: 560,
|
|
159
|
+
placement: "center",
|
|
160
|
+
width: 609,
|
|
161
|
+
inset: native ? nativeInset : undefined,
|
|
162
|
+
minSideGutter: 0,
|
|
163
|
+
maxWidth: 609,
|
|
164
|
+
contentPadding: 0,
|
|
165
|
+
scrollable: false,
|
|
166
|
+
morph: false,
|
|
167
|
+
containerClassName: "fixed inset-0 z-100 flex items-stretch justify-end overflow-hidden p-3 max-sm:p-2",
|
|
168
|
+
containerStyle: {
|
|
169
|
+
alignItems: centered ? 'center' : 'flex-end',
|
|
170
|
+
justifyContent: centered ? 'center' : 'flex-start',
|
|
171
|
+
padding: compact ? 8 : 12
|
|
172
|
+
},
|
|
173
|
+
panelStyle: native ? {
|
|
174
|
+
backgroundColor: 'transparent'
|
|
175
|
+
} : {
|
|
176
|
+
width: '100%',
|
|
177
|
+
maxWidth: 609,
|
|
178
|
+
height: centered ? '92%' : '100%',
|
|
179
|
+
maxHeight: '100%',
|
|
180
|
+
backgroundColor: 'transparent'
|
|
181
|
+
},
|
|
182
|
+
children: /*#__PURE__*/_jsx(StyledView, {
|
|
183
|
+
className: "h-full w-full max-w-[609px] outline-none",
|
|
184
|
+
style: {
|
|
185
|
+
flex: 1,
|
|
186
|
+
minHeight: 0
|
|
187
|
+
},
|
|
188
|
+
children: /*#__PURE__*/_jsx(SafeAreaConsumedContext.Provider, {
|
|
189
|
+
value: native ? physical : NO_CONSUMED_SAFE_AREA,
|
|
190
|
+
children: /*#__PURE__*/_jsx(DetailContent, {
|
|
191
|
+
...props
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
DetailDialog.displayName = 'DetailDialog';
|
|
198
|
+
return DetailDialog;
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=DetailDialogBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","PageHeader","RiCloseLine","useCommonMessages","useTopEdgeInset","useTheme","Platform","useWindowDimensions","SafeAreaInsetsContext","SafeAreaConsumedContext","NO_CONSUMED_SAFE_AREA","WindowSafeAreaInsetsContext","BREAKPOINTS","StyledView","DetailDialogSectionGroup","useDialogContext","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","createDetailDialog","Dialog","Button","Screen","ScreenScrollView","Motion","BodyViewport","body","scrollable","testID","top","className","children","style","flex","minHeight","contentContainerStyle","flexGrow","paddingTop","DetailContent","header","subtitle","actions","scrollFooter","footer","footerKeyboardBehavior","closeLabel","contentKind","close","colors","common","undefined","height","borderRadius","overflow","backgroundColor","card","kind","scroll","navigationScope","headerPlacement","title","appearance","tone","iconOnly","icon","accessibilityLabel","onPress","bottomBar","bottomBarKeyboardBehavior","DetailDialog","props","width","windowInsets","triggerInsets","physical","native","OS","compact","sm","centered","mode","gap","targetWidth","Math","min","left","right","centerY","bottom","nativeInset","open","startOpen","onClose","label","presentation","exitDuration","placement","inset","minSideGutter","maxWidth","contentPadding","morph","containerClassName","containerStyle","alignItems","justifyContent","padding","panelStyle","maxHeight","Provider","value","displayName"],"sourceRoot":"../../../src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
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { useWindowDimensions } from 'react-native';
|
|
5
|
+
import Animated, { Easing, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
6
|
+
import { useDialogContext } from "./context.js";
|
|
7
|
+
import { StyledView } from "../styles/styled-primitives.js";
|
|
8
|
+
import { DetailDialogEnteredContext } from "./context.js";
|
|
9
|
+
import { usePrefersReducedMotion } from "../hooks/use-prefers-reduced-motion.js";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const AnimatedView = Animated.createAnimatedComponent(StyledView);
|
|
12
|
+
function phase(start, end, value) {
|
|
13
|
+
'worklet';
|
|
14
|
+
|
|
15
|
+
const t = Math.min(1, Math.max(0, (value - start) / (end - start)));
|
|
16
|
+
return t * t * (3 - 2 * t);
|
|
17
|
+
}
|
|
18
|
+
export function GenieSurface({
|
|
19
|
+
children,
|
|
20
|
+
corner = false
|
|
21
|
+
}) {
|
|
22
|
+
const {
|
|
23
|
+
isClosing = false
|
|
24
|
+
} = useDialogContext();
|
|
25
|
+
const reduced = usePrefersReducedMotion();
|
|
26
|
+
const progress = useSharedValue(reduced ? 0 : 1);
|
|
27
|
+
const [height, setHeight] = useState(280);
|
|
28
|
+
const [entered, setEntered] = useState(reduced || !corner);
|
|
29
|
+
const {
|
|
30
|
+
height: viewportHeight
|
|
31
|
+
} = useWindowDimensions();
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
progress.value = withTiming(isClosing ? 1 : 0, {
|
|
34
|
+
duration: reduced ? 0 : 480,
|
|
35
|
+
easing: Easing.bezier(0.42, 0, 0.58, 1)
|
|
36
|
+
});
|
|
37
|
+
}, [isClosing, progress, reduced]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (isClosing || !corner) return;
|
|
40
|
+
const timer = setTimeout(() => setEntered(true), reduced ? 0 : 480);
|
|
41
|
+
return () => clearTimeout(timer);
|
|
42
|
+
}, [isClosing, corner, reduced]);
|
|
43
|
+
const style = useAnimatedStyle(() => {
|
|
44
|
+
const p = reduced ? 0 : progress.value;
|
|
45
|
+
const extension = 64 * phase(0, 0.42, p);
|
|
46
|
+
const swallow = phase(0.32, 1, p);
|
|
47
|
+
const stretch = Math.max(0.001, (height + extension) * (1 - swallow) / height);
|
|
48
|
+
return {
|
|
49
|
+
opacity: 1 - phase(0.94, 1, p),
|
|
50
|
+
transform: [{
|
|
51
|
+
translateY: corner ? viewportHeight * swallow * 0.5 : extension + height * (1 - stretch) / 2
|
|
52
|
+
}, {
|
|
53
|
+
translateX: corner ? 24 * phase(0, 0.72, p) : 0
|
|
54
|
+
}, {
|
|
55
|
+
scaleX: corner ? 1 - 0.88 * swallow : 1
|
|
56
|
+
}, {
|
|
57
|
+
scaleY: stretch
|
|
58
|
+
}]
|
|
59
|
+
};
|
|
60
|
+
}, [progress, reduced, corner, height, viewportHeight]);
|
|
61
|
+
return /*#__PURE__*/_jsx(DetailDialogEnteredContext.Provider, {
|
|
62
|
+
value: entered,
|
|
63
|
+
children: /*#__PURE__*/_jsx(AnimatedView, {
|
|
64
|
+
onLayout: event => setHeight(event.nativeEvent.layout.height || 280),
|
|
65
|
+
style: [corner ? {
|
|
66
|
+
flex: 1,
|
|
67
|
+
minHeight: 0
|
|
68
|
+
} : {}, style],
|
|
69
|
+
children: children
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function DetailDialogMotion({
|
|
74
|
+
children
|
|
75
|
+
}) {
|
|
76
|
+
return /*#__PURE__*/_jsx(GenieSurface, {
|
|
77
|
+
corner: true,
|
|
78
|
+
children: children
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=DetailDialogMotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","useWindowDimensions","Animated","Easing","useAnimatedStyle","useSharedValue","withTiming","useDialogContext","StyledView","DetailDialogEnteredContext","usePrefersReducedMotion","jsx","_jsx","AnimatedView","createAnimatedComponent","phase","start","end","value","t","Math","min","max","GenieSurface","children","corner","isClosing","reduced","progress","height","setHeight","entered","setEntered","viewportHeight","duration","easing","bezier","timer","setTimeout","clearTimeout","style","p","extension","swallow","stretch","opacity","transform","translateY","translateX","scaleX","scaleY","Provider","onLayout","event","nativeEvent","layout","flex","minHeight","DetailDialogMotion"],"sourceRoot":"../../../src","sources":["dialog/DetailDialogMotion.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAwB,OAAO;AAC3D,SAASC,mBAAmB,QAAQ,cAAc;AAClD,OAAOC,QAAQ,IACbC,MAAM,EACNC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SAASC,gBAAgB,QAAQ,cAAW;AAC5C,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,0BAA0B,QAAQ,cAAW;AACtD,SAASC,uBAAuB,QAAQ,wCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAC9E,MAAMC,YAAY,GAAGX,QAAQ,CAACY,uBAAuB,CAACN,UAAU,CAAC;AACjE,SAASO,KAAKA,CAACC,KAAa,EAAEC,GAAW,EAAEC,KAAa,EAAE;EACxD,SAAS;;EACT,MAAMC,CAAC,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAE,CAACJ,KAAK,GAAGF,KAAK,KAAKC,GAAG,GAAGD,KAAK,CAAC,CAAC,CAAC;EACnE,OAAOG,CAAC,GAAGA,CAAC,IAAI,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC;AAC5B;AACA,OAAO,SAASI,YAAYA,CAAC;EAC3BC,QAAQ;EACRC,MAAM,GAAG;AAIX,CAAC,EAAE;EACD,MAAM;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGnB,gBAAgB,CAAC,CAAC;EAChD,MAAMoB,OAAO,GAAGjB,uBA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AAO,SAASkC,kBAAkBA,CAAC;EAAElC;AAAkC,CAAC,EAAE;EACxE,oBAAOZ,IAAA,CAACW,YAAY;IAACE,MAAM;IAAAD,QAAA,EAAEA;EAAQ,CAAe,CAAC;AACvD","ignoreList":[]}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { useDialogContext } from "./context.js";
|
|
5
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
6
|
+
import { DetailDialogEnteredContext } from "./context.js";
|
|
7
|
+
import { usePrefersReducedMotion } from "../hooks/use-prefers-reduced-motion.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const styles = {
|
|
10
|
+
band: 'bloom-detail-dialog-band',
|
|
11
|
+
bands: 'bloom-detail-dialog-bands',
|
|
12
|
+
genie: 'bloom-detail-dialog-genie',
|
|
13
|
+
panel: 'bloom-detail-dialog-panel',
|
|
14
|
+
shadow: 'bloom-detail-dialog-shadow',
|
|
15
|
+
surface: 'bloom-detail-dialog-surface'
|
|
16
|
+
};
|
|
17
|
+
const CSS = '/* React Aria keeps the panel mounted for the shared Genie timeline.\n * Its pixels bend into the bottom-right dock; the shell never slides. */\n.bloom-detail-dialog-panel[data-entering], .bloom-detail-dialog-panel[data-exiting] { animation: bloom-detail-dialog-detail-presence 560ms linear both; }\n.bloom-detail-dialog-panel[data-exiting] { pointer-events: none; }\n@keyframes bloom-detail-dialog-detail-presence {\n from { opacity: 0.9999; }\n to { opacity: 1; }\n}\n.bloom-detail-dialog-genie, .bloom-detail-dialog-surface { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.bloom-detail-dialog-genie { isolation: isolate; }\n/* Start the chart\'s own drawing animation only after the visual bands hand\n * back to the live panel, so it never flashes a completed copy first. */\n.bloom-detail-dialog-genie:not([data-entered="true"]) .bloom-detail-deferred svg {\n visibility: hidden;\n}\n.bloom-detail-dialog-shadow {\n position: absolute;\n inset: 0;\n border-radius: 24px;\n pointer-events: none;\n transform-origin: right bottom;\n box-shadow: -10px 0 34px rgb(0 0 0 / 0.05), -10px 0 250px rgb(0 0 0 / 0.25);\n}\n.bloom-detail-dialog-bands { position: absolute; inset: 0; pointer-events: none; opacity: 0; }\n.bloom-detail-dialog-band {\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n contain: strict;\n transform-origin: 0 0;\n will-change: transform;\n backface-visibility: hidden;\n}\n@media (prefers-reduced-motion: reduce) {\n .bloom-detail-dialog-panel[data-entering], .bloom-detail-dialog-panel[data-exiting] { animation: none; }\n}\n';
|
|
18
|
+
const DURATION = 480;
|
|
19
|
+
const FRAMES = 32;
|
|
20
|
+
const smooth = value => {
|
|
21
|
+
const t = Math.min(1, Math.max(0, value));
|
|
22
|
+
return t * t * (3 - 2 * t);
|
|
23
|
+
};
|
|
24
|
+
const phase = (start, end, value) => smooth((value - start) / (end - start));
|
|
25
|
+
|
|
26
|
+
/** Map a rectangular band to a trapezoid. Adjacent bands share their exact
|
|
27
|
+
* edges, producing a curved funnel using compositor-only transforms. */
|
|
28
|
+
function bandTransform(width, height, top, bottom, dockX, dockY, progress) {
|
|
29
|
+
const neck = phase(0, 0.72, progress);
|
|
30
|
+
const swallow = phase(0.32, 1, progress);
|
|
31
|
+
const extension = dockY * phase(0, 0.42, progress);
|
|
32
|
+
const scaleX = 1 - 0.88 * swallow;
|
|
33
|
+
const scaleY = Math.max(0.001, (height + extension) * (1 - swallow) / height);
|
|
34
|
+
const right = width + dockX * phase(0, 0.72, progress);
|
|
35
|
+
const section = y => {
|
|
36
|
+
const bend = neck * (y / height) ** 3;
|
|
37
|
+
return {
|
|
38
|
+
left: right - width * scaleX + width * scaleX * 0.92 * bend,
|
|
39
|
+
right: right - width * scaleX * 0.03 * bend,
|
|
40
|
+
y: height * (1 - scaleY) + extension + y * scaleY
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const a = section(top);
|
|
44
|
+
const b = section(bottom);
|
|
45
|
+
const bandHeight = bottom - top;
|
|
46
|
+
const topWidth = a.right - a.left;
|
|
47
|
+
const ratio = topWidth / (b.right - b.left);
|
|
48
|
+
return `matrix3d(${topWidth / width},0,0,0,${(b.left * ratio - a.left) / bandHeight},${(b.y * ratio - a.y) / bandHeight},0,${(ratio - 1) / bandHeight},0,0,1,0,${a.left},${a.y},0,1)`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Match complete IDs, so a reference ending in -10 never matches -1. */
|
|
52
|
+
function rebaseIds(copy, prefix) {
|
|
53
|
+
const elements = [copy, ...Array.from(copy.querySelectorAll('*'))];
|
|
54
|
+
const ids = new Map();
|
|
55
|
+
elements.forEach(element => {
|
|
56
|
+
if (element.id) {
|
|
57
|
+
const id = `${prefix}-${ids.size}`;
|
|
58
|
+
ids.set(element.id, id);
|
|
59
|
+
element.id = id;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
elements.forEach(element => {
|
|
63
|
+
for (const attribute of Array.from(element.attributes)) {
|
|
64
|
+
if (attribute.name === 'id') continue;
|
|
65
|
+
let value = attribute.value.replace(/url\((["']?)#([^"')]+)\1\)/g, (reference, _quote, id) => ids.has(id) ? `url(#${ids.get(id)})` : reference);
|
|
66
|
+
if (value.startsWith('#') && ids.has(value.slice(1))) value = `#${ids.get(value.slice(1))}`;
|
|
67
|
+
if (value !== attribute.value) element.setAttribute(attribute.name, value);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Paint the chart once, before slicing. Chromium can cull SVG strokes and
|
|
73
|
+
* gradient fills differently in each perspective-transformed clipping band.
|
|
74
|
+
* A shared bitmap keeps every band on the same paint, at device resolution. */
|
|
75
|
+
async function snapshotDeferredGraphics(source, copy) {
|
|
76
|
+
const charts = source.querySelectorAll('.bloom-detail-deferred svg');
|
|
77
|
+
const copies = copy.querySelectorAll('.bloom-detail-deferred svg');
|
|
78
|
+
await Promise.allSettled(Array.from(charts, async (chart, index) => {
|
|
79
|
+
const {
|
|
80
|
+
width,
|
|
81
|
+
height
|
|
82
|
+
} = chart.getBoundingClientRect();
|
|
83
|
+
if (!width || !height) return;
|
|
84
|
+
const svg = chart.cloneNode(true);
|
|
85
|
+
const originals = [chart, ...Array.from(chart.querySelectorAll('*'))];
|
|
86
|
+
const elements = [svg, ...Array.from(svg.querySelectorAll('*'))];
|
|
87
|
+
const paint = ['fill', 'fill-opacity', 'stroke', 'stroke-opacity', 'stroke-width', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'opacity', 'stop-color', 'stop-opacity', 'clip-path', 'visibility'];
|
|
88
|
+
elements.forEach((element, elementIndex) => {
|
|
89
|
+
const computed = getComputedStyle(originals[elementIndex]);
|
|
90
|
+
for (const property of paint) {
|
|
91
|
+
// Resolve theme variables and make document-local paint references
|
|
92
|
+
// local to the standalone SVG image too.
|
|
93
|
+
const value = computed.getPropertyValue(property).replace(/url\(["']?[^#)]*#([^"')]+)["']?\)/g, 'url(#$1)');
|
|
94
|
+
element.style.setProperty(property, value);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
98
|
+
svg.setAttribute('width', String(width));
|
|
99
|
+
svg.setAttribute('height', String(height));
|
|
100
|
+
svg.style.width = `${width}px`;
|
|
101
|
+
svg.style.height = `${height}px`;
|
|
102
|
+
const image = new Image();
|
|
103
|
+
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(svg))}`;
|
|
104
|
+
await image.decode();
|
|
105
|
+
const canvas = document.createElement('canvas');
|
|
106
|
+
const ratio = window.devicePixelRatio || 1;
|
|
107
|
+
canvas.width = Math.ceil(width * ratio);
|
|
108
|
+
canvas.height = Math.ceil(height * ratio);
|
|
109
|
+
const context = canvas.getContext('2d');
|
|
110
|
+
if (!context) return;
|
|
111
|
+
context.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
112
|
+
const bitmap = new Image();
|
|
113
|
+
bitmap.alt = '';
|
|
114
|
+
bitmap.style.cssText = `display:block;width:${width}px;height:${height}px;max-width:none`;
|
|
115
|
+
bitmap.src = canvas.toDataURL();
|
|
116
|
+
await bitmap.decode();
|
|
117
|
+
copies[index]?.replaceWith(bitmap);
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** Private visual copy: never duplicate live React controls or accessible IDs. */
|
|
122
|
+
function copySurface(source, prefix) {
|
|
123
|
+
const copy = source.cloneNode(true);
|
|
124
|
+
rebaseIds(copy, prefix);
|
|
125
|
+
const originals = [source, ...Array.from(source.querySelectorAll('*'))];
|
|
126
|
+
const elements = [copy, ...Array.from(copy.querySelectorAll('*'))];
|
|
127
|
+
elements.forEach((element, index) => {
|
|
128
|
+
// Freeze deferred reveals and progressive backdrop filters while the
|
|
129
|
+
// browser paints each clipped band once. No filters animate on these bands.
|
|
130
|
+
element.style.animation = 'none';
|
|
131
|
+
element.style.transition = 'none';
|
|
132
|
+
element.style.backdropFilter = 'none';
|
|
133
|
+
element.style.setProperty('--bloom-surface-filter', 'none');
|
|
134
|
+
element.style.setProperty('--bloom-surface-highlight-filter', 'none');
|
|
135
|
+
if (originals[index].closest('.bloom-detail-deferred')) {
|
|
136
|
+
element.style.clipPath = getComputedStyle(originals[index]).clipPath;
|
|
137
|
+
}
|
|
138
|
+
// Cloning preserves the DOM but not an internal scroll position.
|
|
139
|
+
if (originals[index].scrollTop) element.dataset.genieScroll = String(originals[index].scrollTop);
|
|
140
|
+
});
|
|
141
|
+
copy.style.visibility = 'visible';
|
|
142
|
+
copy.style.transform = 'none';
|
|
143
|
+
copy.style.filter = 'none';
|
|
144
|
+
return copy;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** Tall panels use cached bands instead of re-running a full-height SVG
|
|
148
|
+
* displacement + blur pass each frame. Only transform and opacity animate. */
|
|
149
|
+
export function DetailDialogMotion({
|
|
150
|
+
children
|
|
151
|
+
}) {
|
|
152
|
+
const {
|
|
153
|
+
isClosing: exiting = false
|
|
154
|
+
} = useDialogContext();
|
|
155
|
+
adoptStyleSheet('bloom-detail-dialog', CSS);
|
|
156
|
+
const rootRef = useRef(null);
|
|
157
|
+
const surfaceRef = useRef(null);
|
|
158
|
+
const bandsRef = useRef(null);
|
|
159
|
+
const shadowRef = useRef(null);
|
|
160
|
+
const progressRef = useRef(1);
|
|
161
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
162
|
+
const [entered, setEntered] = useState(reducedMotion);
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
const root = rootRef.current;
|
|
165
|
+
const surface = surfaceRef.current;
|
|
166
|
+
const bands = bandsRef.current;
|
|
167
|
+
const shadow = shadowRef.current;
|
|
168
|
+
if (!root || !surface || !bands || !shadow) return;
|
|
169
|
+
if (reducedMotion) {
|
|
170
|
+
root.dataset.entered = 'true';
|
|
171
|
+
setEntered(true);
|
|
172
|
+
surface.style.visibility = 'visible';
|
|
173
|
+
shadow.style.opacity = '1';
|
|
174
|
+
bands.replaceChildren();
|
|
175
|
+
progressRef.current = 0;
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
let cancelled = false;
|
|
179
|
+
let frame = 0;
|
|
180
|
+
let clock;
|
|
181
|
+
const animations = [];
|
|
182
|
+
const from = progressRef.current;
|
|
183
|
+
const to = exiting ? 1 : 0;
|
|
184
|
+
const start = async () => {
|
|
185
|
+
if (cancelled) return;
|
|
186
|
+
const width = surface.offsetWidth;
|
|
187
|
+
const height = surface.offsetHeight;
|
|
188
|
+
const bounds = root.getBoundingClientRect();
|
|
189
|
+
const dockX = Math.max(0, window.innerWidth - bounds.right) + 24;
|
|
190
|
+
const dockY = Math.max(0, window.innerHeight - bounds.bottom) + 24;
|
|
191
|
+
const count = Math.min(36, Math.max(16, Math.ceil(height / 32)));
|
|
192
|
+
const fragment = document.createDocumentFragment();
|
|
193
|
+
const slices = [];
|
|
194
|
+
const template = copySurface(surface, `genie-${crypto.randomUUID()}`);
|
|
195
|
+
if (root.dataset.entered === 'true') {
|
|
196
|
+
await snapshotDeferredGraphics(surface, template);
|
|
197
|
+
} else {
|
|
198
|
+
// The entrance reveals the live chart after the handoff. Capturing an
|
|
199
|
+
// invisible plot adds SVG serialization, PNG encoding, and two decodes
|
|
200
|
+
// to the cold opening path without contributing any visible pixels.
|
|
201
|
+
template.querySelectorAll('.bloom-detail-deferred svg').forEach(chart => chart.remove());
|
|
202
|
+
}
|
|
203
|
+
if (cancelled) return;
|
|
204
|
+
for (let index = 0; index < count; index++) {
|
|
205
|
+
const top = height * index / count;
|
|
206
|
+
// Subpixel overlap prevents hairline seams at fractional browser zoom.
|
|
207
|
+
const bottom = Math.min(height, height * (index + 1) / count + 0.5);
|
|
208
|
+
const element = document.createElement('div');
|
|
209
|
+
element.className = styles.band;
|
|
210
|
+
element.style.width = `${width}px`;
|
|
211
|
+
element.style.height = `${bottom - top}px`;
|
|
212
|
+
element.style.transform = bandTransform(width, height, top, bottom, dockX, dockY, 0);
|
|
213
|
+
const copy = template.cloneNode(true);
|
|
214
|
+
// Definitions in each slice need unique IDs (e.g. chart gradients).
|
|
215
|
+
rebaseIds(copy, `genie-band-${index}-${crypto.randomUUID()}`);
|
|
216
|
+
Object.assign(copy.style, {
|
|
217
|
+
position: 'absolute',
|
|
218
|
+
width: `${width}px`,
|
|
219
|
+
height: `${height}px`,
|
|
220
|
+
top: `${-top}px`,
|
|
221
|
+
left: '0'
|
|
222
|
+
});
|
|
223
|
+
element.append(copy);
|
|
224
|
+
fragment.append(element);
|
|
225
|
+
slices.push({
|
|
226
|
+
element,
|
|
227
|
+
top,
|
|
228
|
+
bottom
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
bands.replaceChildren(fragment);
|
|
232
|
+
bands.querySelectorAll('[data-genie-scroll]').forEach(element => {
|
|
233
|
+
element.scrollTop = Number(element.dataset.genieScroll);
|
|
234
|
+
});
|
|
235
|
+
if (!exiting) {
|
|
236
|
+
// Paint at the final resolution before shrinking to the dock. Starting
|
|
237
|
+
// cold at a near-zero scale makes Chromium rasterize growing layers
|
|
238
|
+
// during the entrance; closing already has full-size painted content.
|
|
239
|
+
// A nonzero, imperceptible opacity prevents paint culling. Two frames
|
|
240
|
+
// give the compositor one complete paint before starting the timeline.
|
|
241
|
+
bands.style.opacity = '0.001';
|
|
242
|
+
await new Promise(resolve => {
|
|
243
|
+
frame = requestAnimationFrame(() => {
|
|
244
|
+
frame = requestAnimationFrame(() => resolve());
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
if (cancelled) return;
|
|
248
|
+
}
|
|
249
|
+
surface.style.visibility = 'hidden';
|
|
250
|
+
bands.style.opacity = '1';
|
|
251
|
+
const progress = Array.from({
|
|
252
|
+
length: FRAMES + 1
|
|
253
|
+
}, (_, index) => from + (to - from) * smooth(index / FRAMES));
|
|
254
|
+
for (const {
|
|
255
|
+
element,
|
|
256
|
+
top,
|
|
257
|
+
bottom
|
|
258
|
+
} of slices) {
|
|
259
|
+
animations.push(element.animate(progress.map(value => ({
|
|
260
|
+
transform: bandTransform(width, height, top, bottom, dockX, dockY, value)
|
|
261
|
+
})), {
|
|
262
|
+
duration: DURATION,
|
|
263
|
+
fill: 'both',
|
|
264
|
+
easing: 'linear'
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
clock = bands.animate(progress.map(value => ({
|
|
268
|
+
opacity: 1 - phase(0.94, 1, value)
|
|
269
|
+
})), {
|
|
270
|
+
duration: DURATION,
|
|
271
|
+
fill: 'both',
|
|
272
|
+
easing: 'linear'
|
|
273
|
+
});
|
|
274
|
+
animations.push(clock);
|
|
275
|
+
animations.push(shadow.animate(progress.map(value => ({
|
|
276
|
+
transform: `translate(${dockX * phase(0, 0.72, value)}px, ${dockY * phase(0, 0.42, value)}px) scale(${1 - phase(0, 0.72, value) * 0.65}, ${1 - phase(0.32, 1, value) * 0.9})`,
|
|
277
|
+
opacity: 1 - phase(0.08, 0.72, value)
|
|
278
|
+
})), {
|
|
279
|
+
duration: DURATION,
|
|
280
|
+
fill: 'both',
|
|
281
|
+
easing: 'linear'
|
|
282
|
+
}));
|
|
283
|
+
void clock.finished.then(() => {
|
|
284
|
+
if (cancelled) return;
|
|
285
|
+
progressRef.current = to;
|
|
286
|
+
if (!exiting) {
|
|
287
|
+
root.dataset.entered = 'true';
|
|
288
|
+
setEntered(true);
|
|
289
|
+
surface.style.visibility = 'visible';
|
|
290
|
+
shadow.style.opacity = '1';
|
|
291
|
+
shadow.style.transform = 'none';
|
|
292
|
+
bands.style.opacity = '0';
|
|
293
|
+
bands.replaceChildren();
|
|
294
|
+
animations.forEach(animation => animation.cancel());
|
|
295
|
+
}
|
|
296
|
+
}).catch(() => {
|
|
297
|
+
/* Interrupted transitions reverse from their current shape. */
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
// Let the panel obtain its first layout before preparing the visual bands.
|
|
301
|
+
if (exiting) start();else frame = requestAnimationFrame(() => {
|
|
302
|
+
frame = requestAnimationFrame(start);
|
|
303
|
+
});
|
|
304
|
+
return () => {
|
|
305
|
+
cancelled = true;
|
|
306
|
+
cancelAnimationFrame(frame);
|
|
307
|
+
if (clock && (clock.playState === 'running' || clock.playState === 'paused')) {
|
|
308
|
+
progressRef.current = from + (to - from) * smooth(Number(clock.currentTime ?? 0) / DURATION);
|
|
309
|
+
}
|
|
310
|
+
animations.forEach(animation => animation.cancel());
|
|
311
|
+
bands.replaceChildren();
|
|
312
|
+
};
|
|
313
|
+
}, [exiting, reducedMotion]);
|
|
314
|
+
return /*#__PURE__*/_jsx(DetailDialogEnteredContext.Provider, {
|
|
315
|
+
value: entered,
|
|
316
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
317
|
+
ref: rootRef,
|
|
318
|
+
className: styles.genie,
|
|
319
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
320
|
+
ref: shadowRef,
|
|
321
|
+
"aria-hidden": true,
|
|
322
|
+
className: styles.shadow,
|
|
323
|
+
style: {
|
|
324
|
+
opacity: reducedMotion ? 1 : 0
|
|
325
|
+
}
|
|
326
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
327
|
+
ref: surfaceRef,
|
|
328
|
+
className: styles.surface,
|
|
329
|
+
style: {
|
|
330
|
+
visibility: reducedMotion ? 'visible' : 'hidden'
|
|
331
|
+
},
|
|
332
|
+
children: children
|
|
333
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
334
|
+
ref: bandsRef,
|
|
335
|
+
"aria-hidden": true,
|
|
336
|
+
inert: true,
|
|
337
|
+
className: styles.bands
|
|
338
|
+
})]
|
|
339
|
+
})
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
//# sourceMappingURL=DetailDialogMotion.web.js.map
|