sparkdesign 0.4.3 → 0.4.5
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/README.md +205 -111
- package/dist/_basePickBy-DnQN8w3y.js +151 -0
- package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
- package/dist/_baseUniq-B-N2NQ50.js +614 -0
- package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
- package/dist/arc-BQBhijZ6.js +83 -0
- package/dist/arc-mWQt0Yph.cjs +1 -0
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
- package/dist/channel-BQn0o8bs.js +5 -0
- package/dist/channel-DaN7XniJ.cjs +1 -0
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
- package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
- package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
- package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
- package/dist/clone-Cde_NQ8V.js +8 -0
- package/dist/clone-DCNjWuM2.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
- package/dist/graph-DIbblrZP.cjs +1 -0
- package/dist/graph-DPcK91G3.js +247 -0
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
- package/dist/katex.css +1 -0
- package/dist/layout-Byuh8f-J.cjs +1 -0
- package/dist/layout-CdLdvj1j.js +1335 -0
- package/dist/linear-C2Q_PI9B.js +259 -0
- package/dist/linear-C69aPBW1.cjs +1 -0
- package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
- package/dist/mermaid.core-gFR0XUlD.js +15300 -0
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
- package/dist/qoder-design.css +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
- package/dist/registry/basic/alert-dialog.d.ts +40 -0
- package/dist/registry/basic/avatar.d.ts +30 -0
- package/dist/registry/basic/button.d.ts +16 -0
- package/dist/registry/basic/collapse.d.ts +22 -0
- package/dist/registry/basic/collapsible-card.d.ts +34 -0
- package/dist/registry/basic/collapsible.d.ts +15 -0
- package/dist/registry/basic/dropdown-menu.d.ts +52 -0
- package/dist/registry/basic/icon-button.d.ts +12 -0
- package/dist/registry/basic/icons-inline.d.ts +51 -0
- package/dist/registry/basic/kbd.d.ts +23 -0
- package/dist/registry/basic/option-list.d.ts +16 -0
- package/dist/registry/basic/pagination.d.ts +33 -0
- package/dist/registry/basic/progress.d.ts +18 -0
- package/dist/registry/basic/radio-group.d.ts +25 -0
- package/dist/registry/basic/resizable.d.ts +318 -0
- package/dist/registry/basic/scrollbar.d.ts +12 -0
- package/dist/registry/basic/select.d.ts +35 -0
- package/dist/registry/basic/shimmering-text.d.ts +27 -0
- package/dist/registry/basic/sidebar-menu.d.ts +23 -0
- package/dist/registry/basic/skeleton.d.ts +10 -0
- package/dist/registry/basic/slider.d.ts +16 -0
- package/dist/registry/basic/sonner.d.ts +23 -0
- package/dist/registry/basic/spinner.d.ts +5 -0
- package/dist/registry/basic/switch.d.ts +20 -0
- package/dist/registry/basic/table.d.ts +18 -0
- package/dist/registry/basic/tabs.d.ts +29 -0
- package/dist/registry/basic/tag.d.ts +23 -0
- package/dist/registry/basic/theme-from-document.d.ts +10 -0
- package/dist/registry/basic/toggle.d.ts +29 -0
- package/dist/registry/basic/tooltip.d.ts +34 -0
- package/dist/registry/basic/typography.d.ts +76 -0
- package/dist/registry/chat/ask-user-part.d.ts +24 -0
- package/dist/registry/chat/browser-action-part.d.ts +28 -0
- package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
- package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
- package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
- package/dist/registry/chat/chat-input/compound.d.ts +97 -0
- package/dist/registry/chat/chat-input/context.d.ts +64 -0
- package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
- package/dist/registry/chat/chat-input/index.d.ts +34 -0
- package/dist/registry/chat/chat-input/types.d.ts +79 -0
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
- package/dist/registry/chat/code-block-part.d.ts +23 -0
- package/dist/registry/chat/file-attachment.d.ts +19 -0
- package/dist/registry/chat/file-card.d.ts +10 -0
- package/dist/registry/chat/file-review-part.d.ts +30 -0
- package/dist/registry/chat/folder-button.d.ts +20 -0
- package/dist/registry/chat/generated-images-grid.d.ts +15 -0
- package/dist/registry/chat/generation-status-bar.d.ts +19 -0
- package/dist/registry/chat/hint-banner.d.ts +28 -0
- package/dist/registry/chat/image-attachment.d.ts +19 -0
- package/dist/registry/chat/image-generating.d.ts +15 -0
- package/dist/registry/chat/markdown.d.ts +8 -0
- package/dist/registry/chat/mermaid-part.d.ts +17 -0
- package/dist/registry/chat/permission-card.d.ts +24 -0
- package/dist/registry/chat/plan-part.d.ts +30 -0
- package/dist/registry/chat/queue-indicator.d.ts +27 -0
- package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
- package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
- package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
- package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
- package/dist/registry/chat/related-prompts.d.ts +23 -0
- package/dist/registry/chat/response/compound.d.ts +25 -0
- package/dist/registry/chat/response/context.d.ts +9 -0
- package/dist/registry/chat/response/index.d.ts +15 -0
- package/dist/registry/chat/response/types.d.ts +99 -0
- package/dist/registry/chat/send-button.d.ts +17 -0
- package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
- package/dist/registry/chat/task-part.d.ts +28 -0
- package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
- package/dist/registry/chat/thinking-indicator.d.ts +14 -0
- package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
- package/dist/registry/chat/user-message.d.ts +6 -0
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
- package/dist/registry/chat/user-question/compound.d.ts +37 -0
- package/dist/registry/chat/user-question/context.d.ts +55 -0
- package/dist/registry/chat/user-question/index.d.ts +15 -0
- package/dist/registry/chat/user-question/types.d.ts +52 -0
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
- package/dist/registry/chat/user-question-answer.d.ts +13 -0
- package/dist/registry/lib/file-icon-maps.d.ts +20 -0
- package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
- package/dist/registry/lib/utils.d.ts +11 -0
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
- package/dist/scale/computed.css +103 -0
- package/dist/scale/config.css +110 -0
- package/dist/scale/index.css +30 -0
- package/dist/scale/presets/compact.css +30 -0
- package/dist/scale/presets/dense.css +64 -0
- package/dist/scale/presets/sharp.css +40 -0
- package/dist/scale/presets/soft.css +16 -0
- package/dist/scale.css +13 -0
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
- package/dist/spark-design.cjs.js +265 -0
- package/dist/spark-design.es.js +13486 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
- package/dist/src/components/basic/Avatar/index.d.ts +7 -0
- package/dist/src/components/basic/Button/index.d.ts +7 -0
- package/dist/src/components/basic/Collapse/index.d.ts +15 -0
- package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
- package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
- package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
- package/dist/src/components/basic/IconButton/index.d.ts +7 -0
- package/dist/src/components/basic/Kbd/index.d.ts +7 -0
- package/dist/src/components/basic/OptionList/index.d.ts +7 -0
- package/dist/src/components/basic/Pagination/index.d.ts +7 -0
- package/dist/src/components/basic/Progress/index.d.ts +7 -0
- package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
- package/dist/src/components/basic/Resizable/index.d.ts +7 -0
- package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
- package/dist/src/components/basic/Select/index.d.ts +17 -0
- package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
- package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
- package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
- package/dist/src/components/basic/Slider/index.d.ts +7 -0
- package/dist/src/components/basic/Spinner/index.d.ts +7 -0
- package/dist/src/components/basic/Switch/index.d.ts +38 -0
- package/dist/src/components/basic/Table/index.d.ts +7 -0
- package/dist/src/components/basic/Tabs/index.d.ts +7 -0
- package/dist/src/components/basic/Tag/index.d.ts +10 -0
- package/dist/src/components/basic/Toast/index.d.ts +12 -0
- package/dist/src/components/basic/Toggle/index.d.ts +7 -0
- package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
- package/dist/src/components/basic/Typography/index.d.ts +7 -0
- package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
- package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
- package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
- package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
- package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/FileCard/index.d.ts +3 -0
- package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
- package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
- package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
- package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
- package/dist/src/components/chat/Markdown/index.d.ts +7 -0
- package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
- package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
- package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
- package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
- package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
- package/dist/src/components/chat/Response/index.d.ts +16 -0
- package/dist/src/components/chat/SendButton/index.d.ts +5 -0
- package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
- package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
- package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
- package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
- package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
- package/dist/src/components/index.d.ts +138 -0
- package/dist/src/icons/context.d.ts +26 -0
- package/dist/src/icons/types.d.ts +18 -0
- package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
- package/dist/src/lib/file-icon.d.ts +16 -0
- package/dist/src/lib/i18n.d.ts +12 -0
- package/dist/src/lib/index.d.ts +10 -0
- package/dist/src/lib/motion.d.ts +22 -0
- package/dist/src/lib/utils.d.ts +11 -0
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
- package/dist/theme-base.css +270 -0
- package/dist/theme.css +17 -0
- package/dist/themes/dark-parchment.css +133 -0
- package/dist/themes/dark-qoder.css +133 -0
- package/dist/themes/light-parchment.css +124 -0
- package/dist/themes/light-qoder.css +132 -0
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
- package/dist/tokens/CLAUDE.md +305 -0
- package/dist/tokens/index.css +35 -0
- package/dist/tokens/scale/computed.css +103 -0
- package/dist/tokens/scale/config.css +110 -0
- package/dist/tokens/scale/index.css +30 -0
- package/dist/tokens/scale/presets/compact.css +30 -0
- package/dist/tokens/scale/presets/dense.css +64 -0
- package/dist/tokens/scale/presets/sharp.css +40 -0
- package/dist/tokens/scale/presets/soft.css +16 -0
- package/dist/tokens/scale.css +13 -0
- package/dist/tokens/scrollbar-utility.css +35 -0
- package/dist/tokens/theme-base.css +270 -0
- package/dist/tokens/theme.css +17 -0
- package/dist/tokens/themes/dark-parchment.css +133 -0
- package/dist/tokens/themes/dark-qoder.css +133 -0
- package/dist/tokens/themes/light-parchment.css +124 -0
- package/dist/tokens/themes/light-qoder.css +132 -0
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
- package/package.json +128 -19
- /package/{dist → cli/dist}/commands/add.js +0 -0
- /package/{dist → cli/dist}/commands/diff.js +0 -0
- /package/{dist → cli/dist}/commands/init.js +0 -0
- /package/{dist → cli/dist}/commands/list.js +0 -0
- /package/{dist → cli/dist}/index.js +0 -0
- /package/{dist → cli/dist}/utils/config.js +0 -0
- /package/{dist → cli/dist}/utils/registry.js +0 -0
- /package/{dist → cli/dist}/utils/tokens.js +0 -0
- /package/{dist → cli/dist}/utils/transform.js +0 -0
- /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
- /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
- /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
- /package/{registry → cli/registry}/basic/button.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
- /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
- /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
- /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
- /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
- /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
- /package/{registry → cli/registry}/basic/progress.tsx +0 -0
- /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
- /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
- /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
- /package/{registry → cli/registry}/basic/select.tsx +0 -0
- /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
- /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
- /package/{registry → cli/registry}/basic/slider.tsx +0 -0
- /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
- /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
- /package/{registry → cli/registry}/basic/switch.tsx +0 -0
- /package/{registry → cli/registry}/basic/table.tsx +0 -0
- /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
- /package/{registry → cli/registry}/basic/tag.tsx +0 -0
- /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
- /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
- /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
- /package/{registry → cli/registry}/basic/typography.tsx +0 -0
- /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
- /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
- /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
- /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
- /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
- /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
- /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
- /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/types.ts +0 -0
- /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
- /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
- /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
- /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
- /package/{registry → cli/registry}/lib/utils.ts +0 -0
- /package/{registry → cli/registry}/meta.json +0 -0
- /package/{registry → cli/registry}/tokens/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
- /package/{registry → cli/registry}/tokens/scale.css +0 -0
- /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
- /package/{registry → cli/registry}/tokens/theme.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* Theme: Dark Parchment (羊皮纸暗色)
|
|
3
|
+
* 用户可复制此文件作为自定义主题模板
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
[data-theme="dark-parchment"] {
|
|
7
|
+
color-scheme: dark;
|
|
8
|
+
/* --- Primary --- */
|
|
9
|
+
--token-color-primary: #C4B8A8;
|
|
10
|
+
--token-color-primary-hover: #D4C9BC;
|
|
11
|
+
--token-color-primary-active: #A89888;
|
|
12
|
+
--token-color-primary-bg: #2D2A22;
|
|
13
|
+
--token-color-primary-bg-hover: #363228;
|
|
14
|
+
--token-color-primary-border: #4A463C;
|
|
15
|
+
--token-color-primary-border-hover: #5B564C;
|
|
16
|
+
--token-color-primary-text: #FAF9F6;
|
|
17
|
+
--token-color-primary-text-hover: #D4C9BC;
|
|
18
|
+
--token-color-primary-text-active: #C4B8A8;
|
|
19
|
+
--token-color-text-on-primary: #1A1814;
|
|
20
|
+
|
|
21
|
+
/* --- Text --- */
|
|
22
|
+
--token-color-text: #FAF9F6;
|
|
23
|
+
--token-color-text-secondary: #C9C4B8;
|
|
24
|
+
--token-color-text-tertiary: #A8A296;
|
|
25
|
+
--token-color-text-quaternary: #8A857A;
|
|
26
|
+
--token-color-text-base: #F0EDE7;
|
|
27
|
+
|
|
28
|
+
/* --- Border --- */
|
|
29
|
+
--token-color-border: #4A463C;
|
|
30
|
+
--token-color-border-secondary: #3D3930;
|
|
31
|
+
--token-color-border-tertiary: #2D2A22;
|
|
32
|
+
|
|
33
|
+
/* --- Fill --- */
|
|
34
|
+
--token-color-fill: #3D3930;
|
|
35
|
+
--token-color-fill-secondary: #363228;
|
|
36
|
+
--token-color-fill-tertiary: #252220;
|
|
37
|
+
--token-color-fill-quaternary: #1E1C18;
|
|
38
|
+
--token-color-fill-disable: #4A463C;
|
|
39
|
+
|
|
40
|
+
/* --- Background --- */
|
|
41
|
+
--token-color-bg-container: #1E1C18;
|
|
42
|
+
--token-color-bg-elevated: #252220;
|
|
43
|
+
--token-color-bg-layout: #1A1814;
|
|
44
|
+
--token-color-bg-spotlight: #252220;
|
|
45
|
+
--token-color-bg-mask: rgba(0, 0, 0, 0.6);
|
|
46
|
+
/* PlanPart 点阵高亮遮罩渐变(随主题) */
|
|
47
|
+
--token-color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
48
|
+
--token-color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
49
|
+
--token-color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
50
|
+
--token-color-bg-base: #1A1814;
|
|
51
|
+
--token-color-bg-highlight: #C9C4B8;
|
|
52
|
+
--token-color-bg-highlight-hover: #D4C9BC;
|
|
53
|
+
|
|
54
|
+
/* --- Semantic Colors --- */
|
|
55
|
+
--token-color-link: #C4B8A8;
|
|
56
|
+
--token-color-error: #FF6B6B;
|
|
57
|
+
--token-color-error-hover: #FF8787;
|
|
58
|
+
--token-color-error-bg: #4A2A2A;
|
|
59
|
+
--token-color-error-bg-hover: #5C3535;
|
|
60
|
+
--token-color-error-border: #663338;
|
|
61
|
+
--token-color-info: #5EBCFF;
|
|
62
|
+
--token-color-info-hover: #7EC9FF;
|
|
63
|
+
--token-color-info-bg: #1A2838;
|
|
64
|
+
--token-color-info-bg-hover: #223244;
|
|
65
|
+
--token-color-info-border: #2A4050;
|
|
66
|
+
--token-color-success: #6B8F71;
|
|
67
|
+
--token-color-success-hover: #7FA385;
|
|
68
|
+
--token-color-success-bg: #1C2A1E;
|
|
69
|
+
--token-color-success-bg-hover: #243224;
|
|
70
|
+
--token-color-success-border: #3D4A3C;
|
|
71
|
+
--token-color-warning: #E5A814;
|
|
72
|
+
--token-color-warning-hover: #F5C024;
|
|
73
|
+
--token-color-warning-bg: #4A4019;
|
|
74
|
+
--token-color-warning-bg-hover: #5C4E1F;
|
|
75
|
+
--token-color-warning-border: #664D19;
|
|
76
|
+
|
|
77
|
+
/* --- Accent Colors --- */
|
|
78
|
+
--token-color-pink: #EC4899;
|
|
79
|
+
--token-color-pink-bg: #4A2A38;
|
|
80
|
+
--token-color-pink-bg-hover: #5C3540;
|
|
81
|
+
--token-color-purple: #8B7BED;
|
|
82
|
+
--token-color-purple-bg: #2A2238;
|
|
83
|
+
--token-color-purple-bg-hover: #362E44;
|
|
84
|
+
--token-color-yellow: #E5C04A;
|
|
85
|
+
--token-color-yellow-bg: #4A4030;
|
|
86
|
+
--token-color-yellow-bg-hover: #5C5040;
|
|
87
|
+
--token-color-orange: #E07830;
|
|
88
|
+
--token-color-orange-bg: #4A3020;
|
|
89
|
+
--token-color-orange-bg-hover: #5C3A28;
|
|
90
|
+
--token-color-teal: #14B8A6;
|
|
91
|
+
--token-color-teal-bg: #1A3230;
|
|
92
|
+
--token-color-teal-bg-hover: #243A38;
|
|
93
|
+
--token-color-blue: #0090FF;
|
|
94
|
+
--token-color-blue-bg: #1A2838;
|
|
95
|
+
--token-color-blue-bg-hover: #223244;
|
|
96
|
+
--token-color-mauve: #9C9AA8;
|
|
97
|
+
--token-color-mauve-bg: #2A2830;
|
|
98
|
+
--token-color-mauve-bg-hover: #363438;
|
|
99
|
+
--token-color-slate: #5C5A52;
|
|
100
|
+
--token-color-slate-bg: #2D2A22;
|
|
101
|
+
--token-color-slate-bg-hover: #363228;
|
|
102
|
+
--token-color-lavender: #B99DFF;
|
|
103
|
+
--token-color-lavender-bg: #2A2238;
|
|
104
|
+
--token-color-lavender-bg-hover: #362E44;
|
|
105
|
+
--token-color-sage: #6BB394;
|
|
106
|
+
--token-color-sage-bg: #1C2A24;
|
|
107
|
+
--token-color-sage-bg-hover: #243228;
|
|
108
|
+
|
|
109
|
+
/* --- Select 等组件 (input/ring/popover 等) --- */
|
|
110
|
+
--token-color-input: var(--token-color-border-tertiary);
|
|
111
|
+
--token-color-ring: var(--token-color-primary-border);
|
|
112
|
+
--token-color-popover: var(--token-color-bg-container);
|
|
113
|
+
--token-color-popover-foreground: var(--token-color-text);
|
|
114
|
+
--token-color-accent: var(--token-color-fill-secondary);
|
|
115
|
+
--token-color-accent-foreground: var(--token-color-text);
|
|
116
|
+
--token-color-muted: var(--token-color-fill-tertiary);
|
|
117
|
+
--token-color-muted-foreground: var(--token-color-text-secondary);
|
|
118
|
+
--token-color-background: var(--token-color-bg-base);
|
|
119
|
+
|
|
120
|
+
/* --- Diff --- */
|
|
121
|
+
--token-color-diff-insert: #6B8F71;
|
|
122
|
+
--token-color-diff-insert-bg: #1C2A1E;
|
|
123
|
+
--token-color-diff-remove: #FC6B83;
|
|
124
|
+
--token-color-diff-remove-bg: #2A1C1E;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* SendButton: dark-parchment 模式下 normal 状态使用 success 色 */
|
|
128
|
+
[data-theme="dark-parchment"] .SendButton-send {
|
|
129
|
+
background-color: var(--token-color-success);
|
|
130
|
+
}
|
|
131
|
+
[data-theme="dark-parchment"] .SendButton-send:hover:not(:disabled) {
|
|
132
|
+
background-color: var(--token-color-success-hover);
|
|
133
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* Theme: Dark (暗色模式)
|
|
3
|
+
* 用户可复制此文件作为自定义主题模板
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
[data-theme="dark"] {
|
|
7
|
+
color-scheme: dark;
|
|
8
|
+
/* --- Primary --- */
|
|
9
|
+
--token-color-primary: #8EE5A1;
|
|
10
|
+
--token-color-primary-hover: #9BE6B3;
|
|
11
|
+
--token-color-primary-active: #73CD94;
|
|
12
|
+
--token-color-primary-bg: #14261C;
|
|
13
|
+
--token-color-primary-bg-hover: #1A2E21;
|
|
14
|
+
--token-color-primary-border: #335942;
|
|
15
|
+
--token-color-primary-border-hover: #407354;
|
|
16
|
+
--token-color-primary-text: #8EE5A1;
|
|
17
|
+
--token-color-primary-text-hover: #9BE6B3;
|
|
18
|
+
--token-color-primary-text-active: #73CD94;
|
|
19
|
+
--token-color-text-on-primary: #0D0D0D;
|
|
20
|
+
|
|
21
|
+
/* --- Text --- */
|
|
22
|
+
--token-color-text: #FAF9F5;
|
|
23
|
+
--token-color-text-secondary: #9C9D9E;
|
|
24
|
+
--token-color-text-tertiary: #7C7D7F;
|
|
25
|
+
--token-color-text-quaternary: #717374;
|
|
26
|
+
--token-color-text-base: #F0F2F3;
|
|
27
|
+
|
|
28
|
+
/* --- Border --- */
|
|
29
|
+
--token-color-border: #404040;
|
|
30
|
+
--token-color-border-secondary: #2A2A2A;
|
|
31
|
+
--token-color-border-tertiary: #262626;
|
|
32
|
+
|
|
33
|
+
/* --- Fill --- */
|
|
34
|
+
--token-color-fill: #454545;
|
|
35
|
+
--token-color-fill-secondary: #363636;
|
|
36
|
+
--token-color-fill-tertiary: #1A1A1A;
|
|
37
|
+
--token-color-fill-quaternary: #1A1A1A;
|
|
38
|
+
--token-color-fill-disable: #525252;
|
|
39
|
+
|
|
40
|
+
/* --- Background --- */
|
|
41
|
+
--token-color-bg-container: #0D0D0D;
|
|
42
|
+
--token-color-bg-elevated: #080808;
|
|
43
|
+
--token-color-bg-layout: #050505;
|
|
44
|
+
--token-color-bg-spotlight: #080808;
|
|
45
|
+
--token-color-bg-mask: rgba(0, 0, 0, 0.7);
|
|
46
|
+
/* PlanPart 点阵高亮遮罩渐变(随主题) */
|
|
47
|
+
--token-color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
48
|
+
--token-color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
49
|
+
--token-color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
50
|
+
--token-color-bg-base: #000000;
|
|
51
|
+
--token-color-bg-highlight: #d0d0d0;
|
|
52
|
+
--token-color-bg-highlight-hover: #e0e0e0;
|
|
53
|
+
|
|
54
|
+
/* --- Semantic Colors --- */
|
|
55
|
+
--token-color-link: #8EE5A1;
|
|
56
|
+
--token-color-error: #FF4D4F;
|
|
57
|
+
--token-color-error-hover: #FF7875;
|
|
58
|
+
--token-color-error-bg: #4A1A1B;
|
|
59
|
+
--token-color-error-bg-hover: #5C2224;
|
|
60
|
+
--token-color-error-border: #663338;
|
|
61
|
+
--token-color-info: #0B83F1;
|
|
62
|
+
--token-color-info-hover: #5EBCFF;
|
|
63
|
+
--token-color-info-bg: #19080E;
|
|
64
|
+
--token-color-info-bg-hover: #220A12;
|
|
65
|
+
--token-color-info-border: #4F1C0E;
|
|
66
|
+
--token-color-success: #73CD94;
|
|
67
|
+
--token-color-success-hover: #8EE5A1;
|
|
68
|
+
--token-color-success-bg: #14261C;
|
|
69
|
+
--token-color-success-bg-hover: #1A2E21;
|
|
70
|
+
--token-color-success-border: #335942;
|
|
71
|
+
--token-color-warning: #FAAD14;
|
|
72
|
+
--token-color-warning-hover: #FFD666;
|
|
73
|
+
--token-color-warning-bg: #4A4019;
|
|
74
|
+
--token-color-warning-bg-hover: #5C4E1F;
|
|
75
|
+
--token-color-warning-border: #664D19;
|
|
76
|
+
|
|
77
|
+
/* --- Accent Colors --- */
|
|
78
|
+
--token-color-pink: #EC4899;
|
|
79
|
+
--token-color-pink-bg: #4A1C31;
|
|
80
|
+
--token-color-pink-bg-hover: #5C2440;
|
|
81
|
+
--token-color-purple: #615CED;
|
|
82
|
+
--token-color-purple-bg: #14160E;
|
|
83
|
+
--token-color-purple-bg-hover: #1C1E14;
|
|
84
|
+
--token-color-yellow: #FAC414;
|
|
85
|
+
--token-color-yellow-bg: #4A4030;
|
|
86
|
+
--token-color-yellow-bg-hover: #5C5040;
|
|
87
|
+
--token-color-orange: #FA8125;
|
|
88
|
+
--token-color-orange-bg: #4A1021;
|
|
89
|
+
--token-color-orange-bg-hover: #5C1429;
|
|
90
|
+
--token-color-teal: #14B8A6;
|
|
91
|
+
--token-color-teal-bg: #21080E;
|
|
92
|
+
--token-color-teal-bg-hover: #2E0E14;
|
|
93
|
+
--token-color-blue: #0090FF;
|
|
94
|
+
--token-color-blue-bg: #21120E;
|
|
95
|
+
--token-color-blue-bg-hover: #2E1A14;
|
|
96
|
+
--token-color-mauve: #8E8C99;
|
|
97
|
+
--token-color-mauve-bg: #0E0D0C;
|
|
98
|
+
--token-color-mauve-bg-hover: #1A1818;
|
|
99
|
+
--token-color-slate: #363636;
|
|
100
|
+
--token-color-slate-bg: #1a1a1a;
|
|
101
|
+
--token-color-slate-bg-hover: #262626;
|
|
102
|
+
--token-color-lavender: #B99DFF;
|
|
103
|
+
--token-color-lavender-bg: #131B0E;
|
|
104
|
+
--token-color-lavender-bg-hover: #1C2614;
|
|
105
|
+
--token-color-sage: #6BB394;
|
|
106
|
+
--token-color-sage-bg: #100C0D;
|
|
107
|
+
--token-color-sage-bg-hover: #1A1418;
|
|
108
|
+
|
|
109
|
+
/* --- Select 等组件 (input/ring/popover 等) --- */
|
|
110
|
+
--token-color-input: var(--token-color-border-tertiary);
|
|
111
|
+
--token-color-ring: var(--token-color-primary-border);
|
|
112
|
+
--token-color-popover: var(--token-color-bg-container);
|
|
113
|
+
--token-color-popover-foreground: var(--token-color-text);
|
|
114
|
+
--token-color-accent: var(--token-color-fill-secondary);
|
|
115
|
+
--token-color-accent-foreground: var(--token-color-text);
|
|
116
|
+
--token-color-muted: var(--token-color-fill-tertiary);
|
|
117
|
+
--token-color-muted-foreground: var(--token-color-text-secondary);
|
|
118
|
+
--token-color-background: var(--token-color-bg-base);
|
|
119
|
+
|
|
120
|
+
/* --- Diff --- */
|
|
121
|
+
--token-color-diff-insert: #73CD94;
|
|
122
|
+
--token-color-diff-insert-bg: #14261C;
|
|
123
|
+
--token-color-diff-remove: #FC6B83;
|
|
124
|
+
--token-color-diff-remove-bg: #1C2E2A;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* SendButton: dark 模式下 normal 状态使用 success 色(与 light 下 bg-bg-highlight 区分) */
|
|
128
|
+
[data-theme="dark"] .SendButton-send {
|
|
129
|
+
background-color: var(--token-color-success);
|
|
130
|
+
}
|
|
131
|
+
[data-theme="dark"] .SendButton-send:hover:not(:disabled) {
|
|
132
|
+
background-color: var(--token-color-success-hover);
|
|
133
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* Theme: Light Parchment (羊皮纸亮色 - Figma 导入)
|
|
3
|
+
* 用户可复制此文件作为自定义主题模板
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
[data-theme="light-parchment"] {
|
|
7
|
+
/* --- Primary --- */
|
|
8
|
+
--token-color-primary: #202116;
|
|
9
|
+
--token-color-primary-hover: #3D3930;
|
|
10
|
+
--token-color-primary-active: #3D3930;
|
|
11
|
+
--token-color-primary-bg: #F0EDE7;
|
|
12
|
+
--token-color-primary-bg-hover: #E8E4DC;
|
|
13
|
+
--token-color-primary-border: #D4CFC6;
|
|
14
|
+
--token-color-primary-border-hover: #C4BEB4;
|
|
15
|
+
--token-color-primary-text: #202116;
|
|
16
|
+
--token-color-primary-text-hover: #3D3930;
|
|
17
|
+
--token-color-primary-text-active: #3D3930;
|
|
18
|
+
--token-color-text-on-primary: #FAF9F6;
|
|
19
|
+
|
|
20
|
+
/* --- Text --- */
|
|
21
|
+
--token-color-text: #202116;
|
|
22
|
+
--token-color-text-secondary: #4A463C;
|
|
23
|
+
--token-color-text-tertiary: #6B665C;
|
|
24
|
+
--token-color-text-quaternary: #8A857A;
|
|
25
|
+
--token-color-text-base: #202116;
|
|
26
|
+
|
|
27
|
+
/* --- Border --- */
|
|
28
|
+
--token-color-border: #D4CFC6;
|
|
29
|
+
--token-color-border-secondary: #E5E1D9;
|
|
30
|
+
--token-color-border-tertiary: #EDE9E2;
|
|
31
|
+
|
|
32
|
+
/* --- Fill --- */
|
|
33
|
+
--token-color-fill: #F5F0E7;
|
|
34
|
+
--token-color-fill-secondary: #EDE8E0;
|
|
35
|
+
--token-color-fill-tertiary: #F7F4EF;
|
|
36
|
+
--token-color-fill-quaternary: #FAF9F6;
|
|
37
|
+
--token-color-fill-disable: #E0DCD4;
|
|
38
|
+
|
|
39
|
+
/* --- Background --- */
|
|
40
|
+
--token-color-bg-container: #FAF9F6;
|
|
41
|
+
--token-color-bg-elevated: #F7F4EF;
|
|
42
|
+
--token-color-bg-layout: #FDFCFA;
|
|
43
|
+
--token-color-bg-spotlight: #FAF9F6;
|
|
44
|
+
--token-color-bg-mask: rgba(0, 0, 0, 0.5);
|
|
45
|
+
/* PlanPart 点阵高亮遮罩渐变(随主题) */
|
|
46
|
+
--token-color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
47
|
+
--token-color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
48
|
+
--token-color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
49
|
+
--token-color-bg-base: #FFFFFF;
|
|
50
|
+
--token-color-bg-highlight: #202116;
|
|
51
|
+
--token-color-bg-highlight-hover: #2D2A22;
|
|
52
|
+
|
|
53
|
+
/* --- Semantic Colors --- */
|
|
54
|
+
--token-color-link: #5B4A3A;
|
|
55
|
+
--token-color-error: #FF4D4F;
|
|
56
|
+
--token-color-error-hover: #FF7875;
|
|
57
|
+
--token-color-error-bg: #FFF2F0;
|
|
58
|
+
--token-color-error-bg-hover: #FFF1F0;
|
|
59
|
+
--token-color-error-border: #FFCCC7;
|
|
60
|
+
--token-color-info: #0B83F1;
|
|
61
|
+
--token-color-info-hover: #5EBCFF;
|
|
62
|
+
--token-color-info-bg: #E6F7FF;
|
|
63
|
+
--token-color-info-bg-hover: #D0EFFF;
|
|
64
|
+
--token-color-info-border: #B0E3FF;
|
|
65
|
+
--token-color-success: #5A7A5E;
|
|
66
|
+
--token-color-success-hover: #6B8F71;
|
|
67
|
+
--token-color-success-bg: #EEF2ED;
|
|
68
|
+
--token-color-success-bg-hover: #E4EBE2;
|
|
69
|
+
--token-color-success-border: #C5D4C4;
|
|
70
|
+
--token-color-warning: #FAAD14;
|
|
71
|
+
--token-color-warning-hover: #FFD666;
|
|
72
|
+
--token-color-warning-bg: #FFFBE6;
|
|
73
|
+
--token-color-warning-bg-hover: #FFF3CF;
|
|
74
|
+
--token-color-warning-border: #FFE5BF;
|
|
75
|
+
|
|
76
|
+
/* --- Accent Colors --- */
|
|
77
|
+
--token-color-pink: #EC4899;
|
|
78
|
+
--token-color-pink-bg: #F9E3F3;
|
|
79
|
+
--token-color-pink-bg-hover: #F5D4EB;
|
|
80
|
+
--token-color-purple: #615CED;
|
|
81
|
+
--token-color-purple-bg: #EBE9FF;
|
|
82
|
+
--token-color-purple-bg-hover: #DDDAFF;
|
|
83
|
+
--token-color-yellow: #FAC414;
|
|
84
|
+
--token-color-yellow-bg: #FFF3CF;
|
|
85
|
+
--token-color-yellow-bg-hover: #FFE9A8;
|
|
86
|
+
--token-color-orange: #FA8125;
|
|
87
|
+
--token-color-orange-bg: #FFEFDE;
|
|
88
|
+
--token-color-orange-bg-hover: #FFE3C7;
|
|
89
|
+
--token-color-teal: #14B8A6;
|
|
90
|
+
--token-color-teal-bg: #DEF7F1;
|
|
91
|
+
--token-color-teal-bg-hover: #CAF0E8;
|
|
92
|
+
--token-color-blue: #0090FF;
|
|
93
|
+
--token-color-blue-bg: #DEEDFF;
|
|
94
|
+
--token-color-blue-bg-hover: #C8E3FF;
|
|
95
|
+
--token-color-mauve: #8E8C99;
|
|
96
|
+
--token-color-mauve-bg: #F1F2F3;
|
|
97
|
+
--token-color-mauve-bg-hover: #E4E5E7;
|
|
98
|
+
--token-color-slate: #1E293B;
|
|
99
|
+
--token-color-slate-bg: #E2E8F0;
|
|
100
|
+
--token-color-slate-bg-hover: #EFEFEF;
|
|
101
|
+
--token-color-lavender: #B99DFF;
|
|
102
|
+
--token-color-lavender-bg: #ECE4FF;
|
|
103
|
+
--token-color-lavender-bg-hover: #E0D4FF;
|
|
104
|
+
--token-color-sage: #6BB394;
|
|
105
|
+
--token-color-sage-bg: #EFF3F2;
|
|
106
|
+
--token-color-sage-bg-hover: #E2EAE8;
|
|
107
|
+
|
|
108
|
+
/* --- Select 等组件 (input/ring/popover 等) --- */
|
|
109
|
+
--token-color-input: var(--token-color-border-tertiary);
|
|
110
|
+
--token-color-ring: var(--token-color-primary-border);
|
|
111
|
+
--token-color-popover: var(--token-color-bg-container);
|
|
112
|
+
--token-color-popover-foreground: var(--token-color-text);
|
|
113
|
+
--token-color-accent: var(--token-color-fill-secondary);
|
|
114
|
+
--token-color-accent-foreground: var(--token-color-text);
|
|
115
|
+
--token-color-muted: var(--token-color-fill-tertiary);
|
|
116
|
+
--token-color-muted-foreground: var(--token-color-text-secondary);
|
|
117
|
+
--token-color-background: var(--token-color-bg-base);
|
|
118
|
+
|
|
119
|
+
/* --- Diff --- */
|
|
120
|
+
--token-color-diff-insert: #A6DCBA;
|
|
121
|
+
--token-color-diff-insert-bg: #D9EBE0;
|
|
122
|
+
--token-color-diff-remove: #FC6B83;
|
|
123
|
+
--token-color-diff-remove-bg: #E3D1D5;
|
|
124
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* Theme: Light (亮色模式)
|
|
3
|
+
* 用户可复制此文件作为自定义主题模板
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-theme="light"] {
|
|
8
|
+
color-scheme: light;
|
|
9
|
+
/* --- Primary --- */
|
|
10
|
+
--token-color-primary: #8EE5A1;
|
|
11
|
+
--token-color-primary-hover: #73CD94;
|
|
12
|
+
--token-color-primary-active: #5CB870;
|
|
13
|
+
--token-color-primary-bg: #F1FAF3;
|
|
14
|
+
--token-color-primary-bg-hover: #E6F7EC;
|
|
15
|
+
--token-color-primary-border: #CDEFD9;
|
|
16
|
+
--token-color-primary-border-hover: #B3E6C7;
|
|
17
|
+
--token-color-primary-text: #141414;
|
|
18
|
+
--token-color-primary-text-hover: #73CD94;
|
|
19
|
+
--token-color-primary-text-active: #5CB870;
|
|
20
|
+
--token-color-text-on-primary: #FDFDFD;
|
|
21
|
+
|
|
22
|
+
/* --- Text --- */
|
|
23
|
+
--token-color-text: #141414;
|
|
24
|
+
--token-color-text-secondary: #636261;
|
|
25
|
+
--token-color-text-tertiary: #838280;
|
|
26
|
+
--token-color-text-quaternary: #8E8C8B;
|
|
27
|
+
--token-color-text-base: #0F0D0C;
|
|
28
|
+
|
|
29
|
+
/* --- Border --- */
|
|
30
|
+
--token-color-border: #BCBBBA;
|
|
31
|
+
--token-color-border-secondary: #DDDDDD;
|
|
32
|
+
--token-color-border-tertiary: #E6E6E6;
|
|
33
|
+
|
|
34
|
+
/* --- Fill --- */
|
|
35
|
+
--token-color-fill: #DFDFDF;
|
|
36
|
+
--token-color-fill-secondary: #EFEFEF;
|
|
37
|
+
--token-color-fill-tertiary: #F9F9F9;
|
|
38
|
+
--token-color-fill-quaternary: #FCFCFC;
|
|
39
|
+
--token-color-fill-disable: #DAD9D8;
|
|
40
|
+
|
|
41
|
+
/* --- Background --- */
|
|
42
|
+
--token-color-bg-container: #FFFFFF;
|
|
43
|
+
--token-color-bg-elevated: #F9F9F9;
|
|
44
|
+
--token-color-bg-layout: #FDFDFD;
|
|
45
|
+
--token-color-bg-spotlight: #FAFAFA;
|
|
46
|
+
--token-color-bg-mask: rgba(0, 0, 0, 0.5);
|
|
47
|
+
/* PlanPart 点阵高亮遮罩渐变(随主题) */
|
|
48
|
+
--token-color-mask-shimmer-weak: rgba(0, 0, 0, 0.3);
|
|
49
|
+
--token-color-mask-shimmer-strong: rgba(0, 0, 0, 0.8);
|
|
50
|
+
--token-color-mask-shimmer-full: rgba(0, 0, 0, 1);
|
|
51
|
+
--token-color-bg-base: #FFFFFF;
|
|
52
|
+
--token-color-bg-highlight: #080807;
|
|
53
|
+
--token-color-bg-highlight-hover: #1a1a1a;
|
|
54
|
+
|
|
55
|
+
/* --- Shadow (输入框等浮层,1~4 级与 primary/secondary/tertiary/quaternary 一致,与 data-theme 无关) --- */
|
|
56
|
+
--token-color-shadow-primary: rgba(0, 0, 0, 0.02);
|
|
57
|
+
--token-color-shadow-secondary: rgba(0, 0, 0, 0.035);
|
|
58
|
+
--token-color-shadow-tertiary: rgba(0, 0, 0, 0.055);
|
|
59
|
+
--token-color-shadow-quaternary: rgba(0, 0, 0, 0.075);
|
|
60
|
+
|
|
61
|
+
/* --- Semantic Colors --- */
|
|
62
|
+
--token-color-link: #5CB870;
|
|
63
|
+
--token-color-error: #FF4D4F;
|
|
64
|
+
--token-color-error-hover: #FF7875;
|
|
65
|
+
--token-color-error-bg: #FFF2F0;
|
|
66
|
+
--token-color-error-bg-hover: #FFE4E0;
|
|
67
|
+
--token-color-error-border: #FFCCC7;
|
|
68
|
+
--token-color-info: #0B83F1;
|
|
69
|
+
--token-color-info-hover: #5EBCFF;
|
|
70
|
+
--token-color-info-bg: #E6F7FF;
|
|
71
|
+
--token-color-info-bg-hover: #D0EFFF;
|
|
72
|
+
--token-color-info-border: #B0E3FF;
|
|
73
|
+
--token-color-success: #73CD94;
|
|
74
|
+
--token-color-success-hover: #8EE5A1;
|
|
75
|
+
--token-color-success-bg: #F1FAF3;
|
|
76
|
+
--token-color-success-bg-hover: #E6F7EC;
|
|
77
|
+
--token-color-success-border: #CDEFD9;
|
|
78
|
+
--token-color-warning: #FAAD14;
|
|
79
|
+
--token-color-warning-hover: #FFD666;
|
|
80
|
+
--token-color-warning-bg: #FFFBE6;
|
|
81
|
+
--token-color-warning-bg-hover: #FFF3CF;
|
|
82
|
+
--token-color-warning-border: #FFE5BF;
|
|
83
|
+
|
|
84
|
+
/* --- Accent Colors --- */
|
|
85
|
+
--token-color-pink: #EC4899;
|
|
86
|
+
--token-color-pink-bg: #F9E3F3;
|
|
87
|
+
--token-color-pink-bg-hover: #F5D4EB;
|
|
88
|
+
--token-color-purple: #615CED;
|
|
89
|
+
--token-color-purple-bg: #EBE9FF;
|
|
90
|
+
--token-color-purple-bg-hover: #DDDAFF;
|
|
91
|
+
--token-color-yellow: #FAC414;
|
|
92
|
+
--token-color-yellow-bg: #FFF3CF;
|
|
93
|
+
--token-color-yellow-bg-hover: #FFE9A8;
|
|
94
|
+
--token-color-orange: #FA8125;
|
|
95
|
+
--token-color-orange-bg: #FFEFDE;
|
|
96
|
+
--token-color-orange-bg-hover: #FFE3C7;
|
|
97
|
+
--token-color-teal: #14B8A6;
|
|
98
|
+
--token-color-teal-bg: #DEF7F1;
|
|
99
|
+
--token-color-teal-bg-hover: #CAF0E8;
|
|
100
|
+
--token-color-blue: #0090FF;
|
|
101
|
+
--token-color-blue-bg: #DEEDFF;
|
|
102
|
+
--token-color-blue-bg-hover: #C8E3FF;
|
|
103
|
+
--token-color-mauve: #8E8C99;
|
|
104
|
+
--token-color-mauve-bg: #F1F2F3;
|
|
105
|
+
--token-color-mauve-bg-hover: #E4E5E7;
|
|
106
|
+
--token-color-slate: #404040;
|
|
107
|
+
--token-color-slate-bg: #FAFAFA;
|
|
108
|
+
--token-color-slate-bg-hover: #EFEFEF;
|
|
109
|
+
--token-color-lavender: #B99DFF;
|
|
110
|
+
--token-color-lavender-bg: #ECE4FF;
|
|
111
|
+
--token-color-lavender-bg-hover: #E0D4FF;
|
|
112
|
+
--token-color-sage: #6BB394;
|
|
113
|
+
--token-color-sage-bg: #EFF3F2;
|
|
114
|
+
--token-color-sage-bg-hover: #E2EAE8;
|
|
115
|
+
|
|
116
|
+
/* --- Select 等组件 (input/ring/popover 等) --- */
|
|
117
|
+
--token-color-input: var(--token-color-border-tertiary);
|
|
118
|
+
--token-color-ring: var(--token-color-primary-border);
|
|
119
|
+
--token-color-popover: var(--token-color-bg-container);
|
|
120
|
+
--token-color-popover-foreground: var(--token-color-text);
|
|
121
|
+
--token-color-accent: var(--token-color-fill-secondary);
|
|
122
|
+
--token-color-accent-foreground: var(--token-color-text);
|
|
123
|
+
--token-color-muted: var(--token-color-fill-tertiary);
|
|
124
|
+
--token-color-muted-foreground: var(--token-color-text-secondary);
|
|
125
|
+
--token-color-background: var(--token-color-bg-base);
|
|
126
|
+
|
|
127
|
+
/* --- Diff --- */
|
|
128
|
+
--token-color-diff-insert: #A6DCBA;
|
|
129
|
+
--token-color-diff-insert-bg: #D9EBE0;
|
|
130
|
+
--token-color-diff-remove: #FC6B83;
|
|
131
|
+
--token-color-diff-remove-bg: #E3D1D5;
|
|
132
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./mermaid.core-DBwAx_jp.cjs"),tt=require("./arc-mWQt0Yph.cjs");var J=(function(){var r=n.__name(function(m,s,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=s);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],_=[1,16],f=[1,17],p={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:n.__name(function(s,a,c,u,g,o,w){var k=o.length-1;switch(g){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,7],{1:[2,1]}),r(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,5]),r(t,[2,6]),r(t,[2,8]),{13:[1,19]},{15:[1,20]},r(t,[2,11]),r(t,[2,12]),r(t,[2,13]),r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),r(t,[2,4]),r(t,[2,9]),r(t,[2,10])],defaultActions:{},parseError:n.__name(function(s,a){if(a.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=a,c}},"parseError"),parse:n.__name(function(s){var a=this,c=[0],u=[],g=[null],o=[],w=this.table,k="",I=0,H=0,z=2,G=1,M=o.slice.call(arguments,1),y=Object.create(this.lexer),b={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(b.yy[N]=this.yy[N]);y.setInput(s,b.yy),b.yy.lexer=y,b.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var $=y.yylloc;o.push($);var V=y.options&&y.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(E){c.length=c.length-2*E,g.length=g.length-E,o.length=o.length-E}n.__name(q,"popStack");function Y(){var E;return E=u.pop()||y.lex()||G,typeof E!="number"&&(E instanceof Array&&(u=E,E=u.pop()),E=a.symbols_[E]||E),E}n.__name(Y,"lex");for(var S,P,T,U,C={},W,L,D,B;;){if(P=c[c.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=Y()),T=w[P]&&w[P][S]),typeof T>"u"||!T.length||!T[0]){var Z="";B=[];for(W in w[P])this.terminals_[W]&&W>z&&B.push("'"+this.terminals_[W]+"'");y.showPosition?Z="Parse error on line "+(I+1)+`:
|
|
2
|
+
`+y.showPosition()+`
|
|
3
|
+
Expecting `+B.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Z="Parse error on line "+(I+1)+": Unexpected "+(S==G?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Z,{text:y.match,token:this.terminals_[S]||S,line:y.yylineno,loc:$,expected:B})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(T[0]){case 1:c.push(S),g.push(y.yytext),o.push(y.yylloc),c.push(T[1]),S=null,H=y.yyleng,k=y.yytext,I=y.yylineno,$=y.yylloc;break;case 2:if(L=this.productions_[T[1]][1],C.$=g[g.length-L],C._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},V&&(C._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),U=this.performAction.apply(C,[k,H,I,b.yy,T[1],g,o].concat(M)),typeof U<"u")return U;L&&(c=c.slice(0,-1*L*2),g=g.slice(0,-1*L),o=o.slice(0,-1*L)),c.push(this.productions_[T[1]][0]),g.push(C.$),o.push(C._$),D=w[c[c.length-2]][c[c.length-1]],c.push(D);break;case 3:return!0}}return!0},"parse")},x=(function(){var m={EOF:1,parseError:n.__name(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:n.__name(function(s,a){return this.yy=a||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},"showPosition"),test_match:n.__name(function(s,a){var c,u,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),u=s[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],c=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in g)this[o]=g[o];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),o=0;o<g.length;o++)if(c=this._input.match(this.rules[g[o]]),c&&(!a||c[0].length>a[0].length)){if(a=c,u=o,this.options.backtrack_lexer){if(s=this.test_match(c,g[o]),s!==!1)return s;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(s=this.test_match(a,g[u]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n.__name(function(){var a=this.next();return a||this.lex()},"lex"),begin:n.__name(function(a){this.conditionStack.push(a)},"begin"),popState:n.__name(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n.__name(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:n.__name(function(a){this.begin(a)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n.__name(function(a,c,u,g){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return m})();p.lexer=x;function v(){this.yy={}}return n.__name(v,"Parser"),v.prototype=p,p.Parser=v,new v})();J.parser=J;var _t=J,it={};n.__export(it,{addEvent:()=>ut,addSection:()=>ot,addTask:()=>dt,addTaskOrg:()=>pt,clear:()=>lt,default:()=>ft,getCommonDb:()=>at,getSections:()=>ct,getTasks:()=>ht});var R="",st=0,K=[],O=[],F=[],at=n.__name(()=>n.commonDb_exports,"getCommonDb"),lt=n.__name(function(){K.length=0,O.length=0,R="",F.length=0,n.clear()},"clear"),ot=n.__name(function(r){R=r,K.push(r)},"addSection"),ct=n.__name(function(){return K},"getSections"),ht=n.__name(function(){let r=et();const t=100;let e=0;for(;!r&&e<t;)r=et(),e++;return O.push(...F),O},"getTasks"),dt=n.__name(function(r,t,e){const l={id:st++,section:R,type:R,task:r,score:t||0,events:e?[e]:[]};F.push(l)},"addTask"),ut=n.__name(function(r){F.find(e=>e.id===st-1).events.push(r)},"addEvent"),pt=n.__name(function(r){const t={section:R,type:R,description:r,task:r,classes:[]};O.push(t)},"addTaskOrg"),et=n.__name(function(){const r=n.__name(function(e){return F[e].processed},"compileTask");let t=!0;for(const[e,l]of F.entries())r(e),t=t&&l.processed;return t},"compileTasks"),ft={clear:lt,getCommonDb:at,addSection:ot,getSections:ct,getTasks:ht,addTask:dt,addTaskOrg:pt,addEvent:ut},mt=12,j=n.__name(function(r,t){const e=r.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),xt=n.__name(function(r,t){const l=r.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=r.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(f){const p=tt.d3arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}n.__name(d,"smile");function h(f){const p=tt.d3arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}n.__name(h,"sad");function _(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.__name(_,"ambivalent"),t.score>3?d(i):t.score<3?h(i):_(i),l},"drawFace"),kt=n.__name(function(r,t){const e=r.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),gt=n.__name(function(r,t){const e=t.text.replace(/<br\s*\/?>/gi," "),l=r.append("text");l.attr("x",t.x),l.attr("y",t.y),l.attr("class","legend"),l.style("text-anchor",t.anchor),t.class!==void 0&&l.attr("class",t.class);const i=l.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),l},"drawText"),vt=n.__name(function(r,t){function e(i,d,h,_,f){return i+","+d+" "+(i+h)+","+d+" "+(i+h)+","+(d+_-f)+" "+(i+h-f*1.2)+","+(d+_)+" "+i+","+(d+_)}n.__name(e,"genPoints");const l=r.append("polygon");l.attr("points",e(t.x,t.y,50,20,7)),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gt(r,t)},"drawLabel"),bt=n.__name(function(r,t,e){const l=r.append("g"),i=Q();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,j(l,i),yt(e)(t.text,l,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),nt=-1,wt=n.__name(function(r,t,e){const l=t.x+e.width/2,i=r.append("g");nt++,i.append("line").attr("id","task"+nt).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),xt(i,{cx:l,cy:300+(5-t.score)*30,score:t.score});const h=Q();h.x=t.x,h.y=t.y,h.fill=t.fill,h.width=e.width,h.height=e.height,h.class="task task-type-"+t.num,h.rx=3,h.ry=3,j(i,h),yt(e)(t.task,i,h.x,h.y,h.width,h.height,{class:"task"},e,t.colour)},"drawTask"),St=n.__name(function(r,t){j(r,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Et=n.__name(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Q=n.__name(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),yt=(function(){function r(i,d,h,_,f,p,x,v){const m=d.append("text").attr("x",h+f/2).attr("y",_+p/2+5).style("font-color",v).style("text-anchor","middle").text(i);l(m,x)}n.__name(r,"byText");function t(i,d,h,_,f,p,x,v,m){const{taskFontSize:s,taskFontFamily:a}=v,c=i.split(/<br\s*\/?>/gi);for(let u=0;u<c.length;u++){const g=u*s-s*(c.length-1)/2,o=d.append("text").attr("x",h+f/2).attr("y",_).attr("fill",m).style("text-anchor","middle").style("font-size",s).style("font-family",a);o.append("tspan").attr("x",h+f/2).attr("dy",g).text(c[u]),o.attr("y",_+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(o,x)}}n.__name(t,"byTspan");function e(i,d,h,_,f,p,x,v){const m=d.append("switch"),a=m.append("foreignObject").attr("x",h).attr("y",_).attr("width",f).attr("height",p).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,m,h,_,f,p,x,v),l(a,x)}n.__name(e,"byFo");function l(i,d){for(const h in d)h in d&&i.attr(h,d[h])}return n.__name(l,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?e:i.textPlacement==="old"?r:t}})(),Tt=n.__name(function(r){r.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function X(r,t){r.each(function(){var e=n.select(this),l=e.text().split(/(\s+|<br>)/).reverse(),i,d=[],h=1.1,_=e.attr("y"),f=parseFloat(e.attr("dy")),p=e.text(null).append("tspan").attr("x",0).attr("y",_).attr("dy",f+"em");for(let x=0;x<l.length;x++)i=l[l.length-1-x],d.push(i),p.text(d.join(" ").trim()),(p.node().getComputedTextLength()>t||i==="<br>")&&(d.pop(),p.text(d.join(" ").trim()),i==="<br>"?d=[""]:d=[i],p=e.append("tspan").attr("x",0).attr("y",_).attr("dy",h+"em").text(i))})}n.__name(X,"wrap");var It=n.__name(function(r,t,e,l){const i=e%mt-1,d=r.append("g");t.section=i,d.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+i));const h=d.append("g"),_=d.append("g"),p=_.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,t.width).node().getBBox(),x=l.fontSize?.replace?l.fontSize.replace("px",""):l.fontSize;return t.height=p.height+x*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,_.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),$t(h,t,i,l),t},"drawNode"),Nt=n.__name(function(r,t,e){const l=r.append("g"),d=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,t.width).node().getBBox(),h=e.fontSize?.replace?e.fontSize.replace("px",""):e.fontSize;return l.remove(),d.height+h*1.1*.5+t.padding},"getVirtualNodeHeight"),$t=n.__name(function(r,t,e){r.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),r.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),A={drawRect:j,drawCircle:kt,drawSection:bt,drawText:gt,drawLabel:vt,drawTask:wt,drawBackgroundRect:St,getTextObj:Et,getNoteRect:Q,initGraphics:Tt,drawNode:It,getVirtualNodeHeight:Nt},Lt=n.__name(function(r,t,e,l){const i=n.getConfig2(),d=i.timeline?.leftMargin??50;n.log.debug("timeline",l.db);const h=i.securityLevel;let _;h==="sandbox"&&(_=n.select("#i"+t));const p=(h==="sandbox"?n.select(_.nodes()[0].contentDocument.body):n.select("body")).select("#"+t);p.append("g");const x=l.db.getTasks(),v=l.db.getCommonDb().getDiagramTitle();n.log.debug("task",x),A.initGraphics(p);const m=l.db.getSections();n.log.debug("sections",m);let s=0,a=0,c=0,u=0,g=50+d,o=50;u=50;let w=0,k=!0;m.forEach(function(M){const y={number:w,descr:M,section:w,width:150,padding:20,maxHeight:s},b=A.getVirtualNodeHeight(p,y,i);n.log.debug("sectionHeight before draw",b),s=Math.max(s,b+20)});let I=0,H=0;n.log.debug("tasks.length",x.length);for(const[M,y]of x.entries()){const b={number:M,descr:y,section:y.section,width:150,padding:20,maxHeight:a},N=A.getVirtualNodeHeight(p,b,i);n.log.debug("taskHeight before draw",N),a=Math.max(a,N+20),I=Math.max(I,y.events.length);let $=0;for(const V of y.events){const q={descr:V,section:y.section,number:y.section,width:150,padding:20,maxHeight:50};$+=A.getVirtualNodeHeight(p,q,i)}y.events.length>0&&($+=(y.events.length-1)*10),H=Math.max(H,$)}n.log.debug("maxSectionHeight before draw",s),n.log.debug("maxTaskHeight before draw",a),m&&m.length>0?m.forEach(M=>{const y=x.filter(V=>V.section===M),b={number:w,descr:M,section:w,width:200*Math.max(y.length,1)-50,padding:20,maxHeight:s};n.log.debug("sectionNode",b);const N=p.append("g"),$=A.drawNode(N,b,w,i);n.log.debug("sectionNode output",$),N.attr("transform",`translate(${g}, ${u})`),o+=s+50,y.length>0&&rt(p,y,w,g,o,a,i,I,H,s,!1),g+=200*Math.max(y.length,1),o=u,w++}):(k=!1,rt(p,x,w,g,o,a,i,I,H,s,!0));const z=p.node().getBBox();n.log.debug("bounds",z),v&&p.append("text").text(v).attr("x",z.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),c=k?s+a+150:a+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",c).attr("x2",z.width+3*d).attr("y2",c).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),n.setupGraphViewbox(void 0,p,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),rt=n.__name(function(r,t,e,l,i,d,h,_,f,p,x){for(const v of t){const m={descr:v.task,section:e,number:e,width:150,padding:20,maxHeight:d};n.log.debug("taskNode",m);const s=r.append("g").attr("class","taskWrapper"),c=A.drawNode(s,m,e,h).height;if(n.log.debug("taskHeight after draw",c),s.attr("transform",`translate(${l}, ${i})`),d=Math.max(d,c),v.events){const u=r.append("g").attr("class","lineWrapper");let g=d;i+=100,g=g+Mt(r,v.events,e,l,i,h),i-=100,u.append("line").attr("x1",l+190/2).attr("y1",i+d).attr("x2",l+190/2).attr("y2",i+d+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,x&&!h.timeline?.disableMulticolor&&e++}i=i-10},"drawTasks"),Mt=n.__name(function(r,t,e,l,i,d){let h=0;const _=i;i=i+100;for(const f of t){const p={descr:f,section:e,number:e,width:150,padding:20,maxHeight:50};n.log.debug("eventNode",p);const x=r.append("g").attr("class","eventWrapper"),m=A.drawNode(x,p,e,d).height;h=h+m,x.attr("transform",`translate(${l}, ${i})`),i=i+10+m}return i=_,h},"drawEvents"),Ht={setConf:n.__name(()=>{},"setConf"),draw:Lt},Pt=n.__name(r=>{let t="";for(let e=0;e<r.THEME_COLOR_LIMIT;e++)r["lineColor"+e]=r["lineColor"+e]||r["cScaleInv"+e],n.isDark(r["lineColor"+e])?r["lineColor"+e]=n.lighten(r["lineColor"+e],20):r["lineColor"+e]=n.darken(r["lineColor"+e],20);for(let e=0;e<r.THEME_COLOR_LIMIT;e++){const l=""+(17-3*e);t+=`
|
|
7
|
+
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
|
8
|
+
fill: ${r["cScale"+e]};
|
|
9
|
+
}
|
|
10
|
+
.section-${e-1} text {
|
|
11
|
+
fill: ${r["cScaleLabel"+e]};
|
|
12
|
+
}
|
|
13
|
+
.node-icon-${e-1} {
|
|
14
|
+
font-size: 40px;
|
|
15
|
+
color: ${r["cScaleLabel"+e]};
|
|
16
|
+
}
|
|
17
|
+
.section-edge-${e-1}{
|
|
18
|
+
stroke: ${r["cScale"+e]};
|
|
19
|
+
}
|
|
20
|
+
.edge-depth-${e-1}{
|
|
21
|
+
stroke-width: ${l};
|
|
22
|
+
}
|
|
23
|
+
.section-${e-1} line {
|
|
24
|
+
stroke: ${r["cScaleInv"+e]} ;
|
|
25
|
+
stroke-width: 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lineWrapper line{
|
|
29
|
+
stroke: ${r["cScaleLabel"+e]} ;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
`}return t},"genSections"),At=n.__name(r=>`
|
|
39
|
+
.edge {
|
|
40
|
+
stroke-width: 3;
|
|
41
|
+
}
|
|
42
|
+
${Pt(r)}
|
|
43
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
44
|
+
fill: ${r.git0};
|
|
45
|
+
}
|
|
46
|
+
.section-root text {
|
|
47
|
+
fill: ${r.gitBranchLabel0};
|
|
48
|
+
}
|
|
49
|
+
.icon-container {
|
|
50
|
+
height:100%;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
.edge {
|
|
56
|
+
fill: none;
|
|
57
|
+
}
|
|
58
|
+
.eventWrapper {
|
|
59
|
+
filter: brightness(120%);
|
|
60
|
+
}
|
|
61
|
+
`,"getStyles"),Ct=At,Rt={db:it,renderer:Ht,parser:_t,styles:Ct};exports.diagram=Rt;
|